gams.control.execution.GamsModifier Class Reference
Instances of this class are input to GamsModelInstance.instantiate() More...
Public Member Functions | |
def | __init__ (self, gams_symbol, update_action=None, data_symbol=None, update_type=SymbolUpdateType._Inherit) |
Constructor. | |
Detailed Description
Instances of this class are input to GamsModelInstance.instantiate()
A GamsModifier consists either of a GamsParameter or a triple: A GamsVariable or GamsEquation to be modified, the modification action (e.g. . Upper, Lower or Fixed for updating bounds of a variable, or Primal/Dual for updating the level/marginal of a variable or equation mainly used for starting non-linear models from different starting points), and a GamsParameter that holds the data for modification. In addition the UpdateType can be defined (if ommitted the type defined in the Solve call is used).
Constructor & Destructor Documentation
◆ __init__()
def gams.control.execution.GamsModifier.__init__ | ( | self, | |
gams_symbol, | |||
update_action = None , |
|||
data_symbol = None , |
|||
update_type = SymbolUpdateType._Inherit |
|||
) |
Constructor.
- Parameters
-
gams_symbol Symbol in the GAMS model to be modified. This can be a GamsParameter, GamsVariable or GamsEquation. If a variable or an equation is specified a data_symbol and an update_action have to be specified as well. update_action Modification action data_symbol Parameter containing the data for the modification update_type Symbol Update Type (default: Inherit from model instance)