OptimizationSystem
System Constructors
ModelingToolkit.OptimizationSystem — Typestruct OptimizationSystem <: ModelingToolkit.AbstractSystemA scalar equation for optimization.
Fields
opVector of equations defining the system.
statesUnknown variables.
psParameters.
observedequality_constraintsinequality_constraintsnameName: the name of the system
systemssystems: The internal systems
default_u0default_u0: The default initial conditions to use when initial conditions are not supplied in
ODEProblem.
default_pdefault_p: The default parameters to use when parameters are not supplied in
ODEProblem.
Examples
@variables x y z
@parameters σ ρ β
op = σ*(y-x) + x*(ρ-z)-y + x*y - β*z
os = OptimizationSystem(eqs, [x,y,z],[σ,ρ,β])Composition and Accessor Functions
sys.eqsorequations(sys): The equation to be minimized.sys.statesorstates(sys): The set of states for the optimization.sys.parametersorparameters(sys): The parameters for the optimization.
Transformations
Applicable Calculation and Generation Functions
calculate_gradient
calculate_hessian
generate_gradient
generate_hessian
hessian_sparsityProblem Constructors
SciMLBase.OptimizationProblem — Typefunction DiffEqBase.OptimizationProblem{iip}(sys::OptimizationSystem,
parammap=DiffEqBase.NullParameters();
u0=nothing, lb=nothing, ub=nothing,
grad = false,
hess = false, sparse = false,
checkbounds = false,
linenumbers = true, parallel=SerialForm(),
kwargs...) where iipGenerates an OptimizationProblem from an OptimizationSystem and allows for automatically symbolically calculating numerical enhancements.