Loading...
Searching...
No Matches
matlab.gams.control.Modifier Class Reference

Input to ModelInstance.instantiate. More...

Public Member Functions

 Modifier (varargin)
 Constructs a new Modifier instance.
 

Public Attributes

gams.control.Parameter dataSymbol
 (read only) Symbol containing the data for the modification
 
gams.control.Symbol gamsSymbol
 (read only) Symbol instance in the GAMS model to be modified
 
gams.control.globals.UpdateAction updAction
 (read only) Type of modification
 
gams.control.globals.SymbolUpdateType updateType
 (read only) Symbol update type
 

Detailed Description

Input to ModelInstance.instantiate.

A Modifier consists either of a Parameter or a triple: A Variable or Equation 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 Parameter that holds the data for modification. In addition the UpdateType can be defined (if omitted the type defined in the Solve call is used).

See also
ModelInstance

Constructor & Destructor Documentation

◆ Modifier()

matlab.gams.control.Modifier.Modifier ( varargin  )

Constructs a new Modifier instance.

Valid VARARGIN signatures:

Arguments:

  • gamsParam: Parameter in the GAMS model to be modified with data for modification
  • gamsSymbol: Symbol in the GAMS model to be modified
  • dataSymbol: Parameter containing the data for the modification
  • updateAction: Modification action
  • updateType: Modification type
See also
globals.UpdateAction, globals.SymbolUpdateType, ModelInstance, Symbol, Parameter