This tutorial explains how to solve optimal control problems for which the model equation contains not only differential, but also algebraic states.
For the general DAE formulation we summarize the differential and algebraic states of the DAE in one vector x . Moreover, we denote by u the control input, by p a constant parameter, and by T the time horizon length of an DAE optimization problem. The general problem formulation reads now as follows:
Here, the function F denotes the model equation, Φ the objective functional, h the path constraints, and r the boundary constraints of the optimization problem.
Remarks:
In this case, we say that the DAE is semi-implicit.
for a matrix valued function M. However, in ACADO linear dependencies are automatically detected such that from the user point of view, we do not have to make a difference between linear and fully-implicit DAEs.
The following piece of code illustrates how to setup a simple DAE optimization problem for the case that the DAE is semi-implicit:
Running this example, the corresponding Gnuplot output should look as follows:
work in progress
Next example: Optimal Control of Discrete-Time Systems