reduceDAEIndex
Convert system of first-order differential algebraic equations to equivalent system of differential index 1
Syntax
Description
[
converts a high-index system of first-order differential algebraic equations
newEqs,newVars]
= reduceDAEIndex(eqs,vars)eqs to an equivalent system newEqs of
differential index 1.
reduceDAEIndex keeps the original equations and variables and
introduces new variables and equations. After conversion,
reduceDAEIndex checks the differential index of the new system by
calling isLowIndexDAE. If the index of newEqs is 2
or higher, then reduceDAEIndex issues a warning.
Examples
Input Arguments
Output Arguments
Algorithms
The implementation of reduceDAEIndex uses the Pantelides algorithm.
This algorithm reduces higher-index systems to lower-index systems by selectively adding
differentiated forms of the original equations. The Pantelides algorithm can underestimate the
differential index of a new system, and therefore, can fail to reduce the differential index
to 1. In this case, reduceDAEIndex issues a warning
and, for the syntax with four output arguments, returns the value of
oldIndex as NaN. The
reduceDAEToODE function uses more reliable, but slower Gaussian
elimination. Note that reduceDAEToODE requires the DAE system to be
semilinear.
Version History
Introduced in R2014b