decic
Find consistent initial conditions for first-order implicit ODE system with algebraic constraints
Description
[
finds consistent initial conditions for the system of first-order implicit ordinary
differential equations with algebraic constraints returned by the
y0
,yp0
]
= decic(eqs
,vars
,constraintEqs
,t0
,y0_est
,fixedVars
,yp0_est
,options
)reduceDAEToODE
function.
The call [eqs,constraintEqs] = reduceDAEToODE(DA_eqs,vars)
reduces the system of differential algebraic equations DA_eqs
to
the system of implicit ODEs eqs
. It also returns constraint
equations encountered during system reduction. For the variables of this ODE system
and their derivatives, decic
finds consistent initial
conditions y0
, yp0
at the time
t0
.
Substituting the numerical values y0
,
yp0
into the differential equations subs(eqs, [t;
vars(t); diff(vars(t))], [t0; y0; yp0])
and the constraint equations
subs(constr, [t; vars(t); diff(vars(t))], [t0; y0; yp0])
produces zero vectors. Here, vars
must be a column
vector.
y0_est
specifies numerical estimates for the values of the
variables vars
at the time t0
, and
fixedVars
indicates the values in
y0_est
that must not change during the numerical search.
The optional argument yp0_est
lets you specify numerical
estimates for the values of the derivatives of the variables
vars
at the time t0
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2014b