Phases

DynOptInterface.AbstractDynamicFunctionType
AbstractDynamicFunction

Supertype for (scalar-valued) dynamic functions.

That is, expressions that contain a phase parameter $t^{(i)}$. Each dynamic function must be defined on one (and only one) phase.

source

Phases in Models

Phase Attributes

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

Indicate whether model supports the phase attribute attr.

source
MathOptInterface.setMethod
MOI.set(
    model::MOI.ModelLike,
    attr::AbstractPhaseAttribute,
    phase::PhaseIndex,
    value::Any,
)

Assign value to the attribute attr of phase phase in model model.

source
MathOptInterface.getMethod
MOI.get(
    model::MOI.ModelLike,
    attr::AbstractPhaseAttribute,
    phase::PhaseIndex,
)

Return the value of the attribute attr set to phase phase in 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