EOptInterface
Documentation for EOptInterface.
EOptInterface.decision_varsEOptInterface.full_solutionEOptInterface.register_nlsystemEOptInterface.register_odesystem
EOptInterface.decision_vars — Method
decision_vars(sys)Returns the decision variables for an optimization problem formulated from a ModelingToolkit system.
EOptInterface.full_solution — Method
full_solution(model, sys)Returns a dictionary of optimal solution values for the observed variables of an algebraic ModelingToolkit system if the JuMP model is solved.
EOptInterface.register_nlsystem — Method
register_nlsystem(model, sys, obj, ineqs)Automatically formulates algebraic JuMP constraints and objective function from an algebraic ModelingToolkit system and user-provided constraints and objective symbolic expressions.
Arguments
model::JuMP.Model: the JuMP modelsys::ModelingToolkit.System: the ModelingToolkit systemobj::Symbolics.Num: a symbolic expression of the objective function using the ModelingToolkit system variablesineqs::Vector{Symbolics.Num}: a vector of symbolic expressions of inequality constraints using the ModelingToolkit system variables
EOptInterface.register_odesystem — Method
register_odesystem(model, sys, tspan, tstep, integrator)Automatically applies forward transcription and registers the discretized ODE ModelingToolkit system as algebraic JuMP constraints.
Arguments
model::JuMP.Model: the JuMP modelsys::ModelingToolkit.System: the ModelingToolkit systemtspan::Tuple{Real,Real}: the time span over which the dynamic model is simulatedtstep::Real: the time step used in the integration schemeintegrator::String: integration scheme used in discretization,"EE"for explicit Euler or"IE"for implicit Euler