Dynamic Variables

Dynamic Variables in Models

Dynamic Variable Attributes

MathOptInterface.supportsMethod
MOI.supports(
    model::MOI.ModelLike,
    attr::AbstractDynamicVariableAttribute,
)::Bool

Indicate whether model supports the dynamic variable attribute attr.

source
MathOptInterface.setMethod
MOI.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.

source
MathOptInterface.getMethod
MOI.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.

source