optidynset

Create or edit OPTI dynamic optimization options structure

Syntax

options = optidynset('param1',value1,'param2',value2,...)

optidynset

options = optidynset

options = optidynset(oldopts,'param1',value1,...)

Description

The function optidynset creates an options structure that you can pass to optiset for customizing the building and solving of a dynamic optimization problem.

options = optidynset('param1',value1,'param2',value2,...) creates a OPTI dynamic optimization options structure in which the specified parameters (param) have the specified values (value).

optidynset with no input or output arguments displays a complete list of parameters with their valid names.

options = optidynset with no input arguments creates a default options structure

options = optidynset(oldopts,'param1',value1,...) updates the existing object structure, oldopts, with the new values specified.

Options

The following table lists the available options for optidynset:

Parameter Value Description Default
integrator string ODE Integrator 'ode45'
sensitivity string Sensitivity implementation ('ND', 'AD', 'User', 'None') [] (defaults to ND if not supplied)
dfdz function handle Jacobian of ODE with respect to state variables (z) []
dfdp function handle Jacobian of ODE with respect to parameters (p) []
stateIndex double vector Indices of states to fit to measured data []
initialT double scalar Initial time to start the ODE integrator []
odeMaxTime double scalar Maximum time the ODE integrator can run per call [sec] 30
odeOpts structure The rounding tolerance on the absolute value of an integer in a mixed integer problem []