gtopt::VariableScale struct

Scale definition for an LP variable.

Convention: physical_value = LP_value × scale.

When uid is set, the scale applies only to the element with that UID. When uid is absent, the scale applies to all elements of the given class.

Public variables

Name class_name
Element class (e.g. "Bus", "Reservoir", "Battery")
Name name
Element name (informational, not used for lookup)
Real scale
physical = LP × scale
Uid uid
Element UID (unknown_uid = all elements)
Name variable
Variable name (e.g. "theta", "volume", "energy")