Dynamic Variables
DynOptInterface.DynamicVariableIndex — TypeDynamicVariableIndex(value::Int64, phase::PhaseIndex)Represent the dynamic variable $\boldsymbol{y}_j(\cdot)$ in an expression.
It is a subtype of AbstractDynamicFunction. To allow for deletion, indices need not be consecutive.
Dynamic Variables in Models
DynOptInterface.supports_dynamic_variables — Functionsupports_dynamic_variables(model::MOI.ModelLike)::BoolIndicate whether model supports dynamic variables.
DynOptInterface.UnsupportedDynamicVariablesError — TypeUnsupportedDynamicVariablesError(message::String)The model does not support dynamic variables.
That is, supports_dynamic_variables returns false.
DynOptInterface.add_dynamic_variable — Functionadd_dynamic_variable(model::MOI.ModelLike, phase::PhaseIndex)::DynamicVariableIndexAdd a dynamic variable to model, returning a DynamicVariableIndex.
An AddDynamicVariableNotAllowedError is thrown if a dynamic variable cannot be added to model in its current state.
DynOptInterface.AddDynamicVariableNotAllowedError — TypeAddDynamicVariableNotAllowedError(message::String)Dynamic variables cannot be added to the model in its current state.
MathOptInterface.is_valid — MethodMOI.is_valid(model::MOI.ModelLike, dyn_var::DynamicVariableIndex)::BoolIndicate whether dyn_var refers to a valid DynamicVariableIndex in model.
DynOptInterface.InvalidDynamicVariableError — TypeInvalidDynamicVariableError(dyn_var::DynamicVariableIndex)The dynamic variable dyn_var is not valid in the model.
Dynamic Variable Attributes
DynOptInterface.AbstractDynamicVariableAttribute — TypeAbstractDynamicVariableAttributeSupertype for dynamic variable attributes.
MathOptInterface.supports — MethodMOI.supports(
model::MOI.ModelLike,
attr::AbstractDynamicVariableAttribute,
)::BoolIndicate whether model supports the dynamic variable attribute attr.
MathOptInterface.set — MethodMOI.set(
model::MOI.ModelLike,
attr::AbstractDynamicVariableAttribute,
dyn_var::DynamicVariableIndex,
value::Any,
)Assign value to the attribute attr of dynamic variable dyn_var in model model.
MathOptInterface.get — MethodMOI.get(
model::MOI.ModelLike,
attr::AbstractDynamicVariableAttribute,
dyn_var::DynamicVariableIndex,
)Return the value of the attribute attr set to dynamic variable dyn_var in model model.
If the attribute attr is not supported by model then an error should be thrown. If the attribute is supported but has not been set, nothing is returned.
DynOptInterface.DynamicVariableName — TypeDynamicVariableNameA dynamic variable attribute for a String identifying a dynamic variable.
DynOptInterface.DynamicVariableStart — TypeDynamicVariableStartA dynamic variable attribute for the start of the dynamic variable.
The start object must be a subtype of AbstractDynamicSolution.
DynOptInterface.DynamicVariableSolution — TypeDynamicVariableSolutionA dynamic variable attribute for the solution of the dynamic variable.
The solution object must be a subtype of AbstractDynamicSolution.