OptimizationSystem
System Constructors
ModelingToolkit.OptimizationSystem — Typestruct OptimizationSystem <: AbstractTimeIndependentSystemA scalar equation for optimization.
Fields
opVector of equations defining the system.
statesUnknown variables.
psParameters.
var_to_nameArray variables.
observedequality_constraintsinequality_constraintsnameName: the name of the system. These are required to have unique names.
systemssystems: The internal systems
defaultsdefaults: The default values to use when initial conditions and/or 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
get_eqs(sys)orequations(sys): The equation to be minimized.get_states(sys)orstates(sys): The set of states for the optimization.get_ps(sys)orparameters(sys): The parameters for the optimization.
Transformations
Analyses
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.