Phases
DynOptInterface.AbstractDynamicFunction — TypeAbstractDynamicFunctionSupertype 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.
DynOptInterface.PhaseIndex — TypePhaseIndex(value::Int64)Represent the phase parameter $t^{(i)}$ in an expression.
It is a subtype of AbstractDynamicFunction. To allow for deletion, index values need not be consecutive.
DynOptInterface.phase_index — Functionphase_index(dyn_fun::AbstractDynamicFunction)::PhaseIndexReturn the PhaseIndex $t^{(i)}$ of a dynamic function dyn_fun.
DynOptInterface.NonUniquePhaseError — TypeNonUniquePhaseError(message::String)A dynamic function was not defined on one (and only one) phase.
Phases in Models
DynOptInterface.supports_phases — Functionsupports_phases(model::MOI.ModelLike)::BoolIndicate whether model supports phases.
DynOptInterface.UnsupportedPhasesError — TypeUnsupportedPhasesError(message::String)The model does not support phases, that is, supports_phases returns false.
DynOptInterface.add_phase — Functionadd_phase(model::MOI.ModelLike)::PhaseIndexAdd a phase to model, returning a PhaseIndex.
An AddPhaseNotAllowedError is thrown if a phase cannot be added to the model in its current state.
DynOptInterface.AddPhaseNotAllowedError — TypeAddPhaseNotAllowedError(message::String)Phases cannot be added to the model in its current state.
MathOptInterface.is_valid — MethodMOI.is_valid(model::MOI.ModelLike, phase::PhaseIndex)::BoolIndicate whether phase refers to a valid PhaseIndex in model.
DynOptInterface.InvalidPhaseError — TypeInvalidPhaseError(phase::PhaseIndex)The phase phase is not valid in the model.
Phase Attributes
DynOptInterface.AbstractPhaseAttribute — TypeAbstractPhaseAttributeSupertype for phase attributes.
MathOptInterface.supports — MethodMOI.supports(
model::MOI.ModelLike,
attr::AbstractPhaseAttribute,
)::BoolIndicate whether model supports the phase attribute attr.
MathOptInterface.set — MethodMOI.set(
model::MOI.ModelLike,
attr::AbstractPhaseAttribute,
phase::PhaseIndex,
value::Any,
)Assign value to the attribute attr of phase phase in model model.
MathOptInterface.get — MethodMOI.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.
DynOptInterface.PhaseName — TypePhaseNameA phase attribute for a String identifying a phase.
DynOptInterface.PhaseInitialStart — TypePhaseInitialStartA phase attribute for the start value of the initial phase boundary.
DynOptInterface.PhaseFinalStart — TypePhaseFinalStartA phase attribute for the start value of the final phase boundary.
DynOptInterface.PhaseInitialSolution — TypePhaseInitialSolutionA phase attribute for the solution of the initial phase boundary.
DynOptInterface.PhaseFinalSolution — TypePhaseFinalSolutionA phase attribute for the solution of the final phase boundary.