Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions. More...
#include <differential_equation.hpp>
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.
The class DifferentialEquation allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.
Definition at line 55 of file differential_equation.hpp.
Default constructor.
Definition at line 50 of file differential_equation.cpp.
DifferentialEquation::DifferentialEquation | ( | const double & | tStart, |
const double & | tEnd | ||
) |
Default constructor.
Definition at line 60 of file differential_equation.cpp.
DifferentialEquation::DifferentialEquation | ( | const double & | tStart, |
const Parameter & | tEnd | ||
) |
Default constructor.
Definition at line 70 of file differential_equation.cpp.
DifferentialEquation::DifferentialEquation | ( | const Parameter & | tStart, |
const double & | tEnd | ||
) |
Default constructor.
Definition at line 82 of file differential_equation.cpp.
DifferentialEquation::DifferentialEquation | ( | const Parameter & | tStart, |
const Parameter & | tEnd | ||
) |
Default constructor.
Definition at line 94 of file differential_equation.cpp.
DifferentialEquation::DifferentialEquation | ( | const DifferentialEquation & | arg | ) |
Copy constructor (deep copy).
Definition at line 154 of file differential_equation.cpp.
DifferentialEquation::~DifferentialEquation | ( | ) | [virtual] |
Destructor.
Definition at line 162 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::addAlgebraic | ( | const Expression & | arg | ) |
Loading Expressions (deep copy).
Definition at line 274 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::addAlgebraic | ( | const double & | arg | ) |
Loading Expressions (deep copy).
Definition at line 282 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::addAlgebraic | ( | const DVector & | arg | ) |
Loading Symbolic DVector (deep copy).
Definition at line 302 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::addAlgebraic | ( | const DMatrix & | arg | ) |
Loading Symbolic DMatrix (deep copy).
Definition at line 325 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::addDifferential | ( | const Expression & | arg | ) |
Loading Expressions (deep copy).
Definition at line 237 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::addDifferential | ( | const double & | arg | ) |
Loading Expressions (deep copy).
Definition at line 266 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::addDifferential | ( | const DVector & | arg | ) |
Loading Symbolic DVector (deep copy).
Definition at line 291 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::addDifferential | ( | const DMatrix & | arg | ) |
Loading Symbolic DMatrix (deep copy).
Definition at line 313 of file differential_equation.cpp.
DifferentialEquation * DifferentialEquation::clone | ( | ) | const [virtual] |
Clone constructor (deep copy).
Reimplemented in DiscretizedDifferentialEquation.
Definition at line 191 of file differential_equation.cpp.
void DifferentialEquation::copy | ( | const DifferentialEquation & | arg | ) | [protected] |
Protected version of the copy constructor.
Definition at line 120 of file differential_equation.cpp.
int* DifferentialEquation::getComponents | ( | ) | const [inline] |
DVector DifferentialEquation::getDifferentialStateComponents | ( | ) | const [inline] |
double DifferentialEquation::getEndTime | ( | ) | const [inline] |
Returns the end time of the horizon of the differential equation
or +INFTY for the case that the start time is not defined.
int DifferentialEquation::getEndTimeIdx | ( | ) | const [inline] |
Returns the index of the parameter associated with the start time
of the time horizon of the differential equation or -1 for the
that the start time is constant
Definition at line 346 of file differential_equation.cpp.
int DifferentialEquation::getNumAlgebraicEquations | ( | ) | const [inline] |
Returns the number of algebraic equations
int DifferentialEquation::getNumDynamicEquations | ( | ) | const [inline] |
Returns the number of dynamic equations
Expression DifferentialEquation::getODEexpansion | ( | const int & | order | ) | const |
Returning an Expression that contains a Taylor expansion
of the ODE-solution trajectory.
order | the order of Taylor expansion. |
Definition at line 402 of file differential_equation.cpp.
double DifferentialEquation::getStartTime | ( | ) | const [inline] |
Returns the start time of the horizon of the differential equation
or -INFTY for the case that the start time is not defined.
int DifferentialEquation::getStartTimeIdx | ( | ) | const [inline] |
Returns the index of the parameter associated with the start time
of the time horizon of the differential equation or -1 for the
that the start time is constant
int DifferentialEquation::getStateEnumerationIndex | ( | int | index_ | ) | [inline] |
double DifferentialEquation::getStepLength | ( | ) | const [virtual] |
Always returns -INFTY in the time-continuous case.
Definition at line 433 of file differential_equation.cpp.
Definition at line 351 of file differential_equation.cpp.
BooleanType DifferentialEquation::isDAE | ( | ) | const |
Ask whether the differential equation is a DAE.
Definition at line 388 of file differential_equation.cpp.
BooleanType DifferentialEquation::isDiscretized | ( | ) | const [virtual] |
Ask whether the differential equation is discretized (in time).
Definition at line 427 of file differential_equation.cpp.
BooleanType DifferentialEquation::isImplicit | ( | ) | const [inline] |
Ask whether the differential equation is given in implicit form.
BooleanType DifferentialEquation::isODE | ( | ) | const |
Ask whether the differential equation is a ODE.
Definition at line 395 of file differential_equation.cpp.
BooleanType DifferentialEquation::makeImplicit | ( | ) | [virtual] |
Adds DifferentialStateDerivative if the differential
equation is an ODE.
Definition at line 414 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::operator<< | ( | const Expression & | arg | ) |
Loading Expressions (deep copy).
Reimplemented from Function.
Definition at line 198 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::operator<< | ( | const int & | arg | ) |
Loading Expressions (deep copy).
Definition at line 225 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::operator= | ( | const DifferentialEquation & | arg | ) |
Assignment operator (deep copy).
Definition at line 173 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::operator== | ( | const Expression & | arg | ) |
Loading Expressions (deep copy).
Definition at line 359 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::operator== | ( | const double & | arg | ) |
Loading Expressions (deep copy).
Definition at line 366 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::operator== | ( | const DVector & | arg | ) |
Loading Symbolic DVector (deep copy).
Definition at line 373 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::operator== | ( | const DMatrix & | arg | ) |
Loading Symbolic DMatrix (deep copy).
Definition at line 380 of file differential_equation.cpp.
DifferentialEquation & DifferentialEquation::operator== | ( | const Lyapunov & | arg | ) |
Definition at line 337 of file differential_equation.cpp.
void DifferentialEquation::setup | ( | ) | [protected] |
Setup routine (for internal use only)
Definition at line 107 of file differential_equation.cpp.
int* DifferentialEquation::component [protected] |
Definition at line 267 of file differential_equation.hpp.
int DifferentialEquation::counter [protected] |
Definition at line 266 of file differential_equation.hpp.
DifferentialEquationType DifferentialEquation::det [protected] |
Definition at line 262 of file differential_equation.hpp.
BooleanType DifferentialEquation::is_discretized [protected] |
Definition at line 264 of file differential_equation.hpp.
BooleanType DifferentialEquation::is_implicit [protected] |
Definition at line 263 of file differential_equation.hpp.
Lyapunov DifferentialEquation::lyap [protected] |
Definition at line 273 of file differential_equation.hpp.
double DifferentialEquation::stepLength [protected] |
Definition at line 272 of file differential_equation.hpp.
Parameter* DifferentialEquation::T1 [protected] |
Definition at line 269 of file differential_equation.hpp.
double DifferentialEquation::t1 [protected] |
Definition at line 270 of file differential_equation.hpp.
Parameter * DifferentialEquation::T2 [protected] |
Definition at line 269 of file differential_equation.hpp.
double DifferentialEquation::t2 [protected] |
Definition at line 270 of file differential_equation.hpp.