<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mintoc.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MadeleineSchroeter</id>
	<title>mintOC - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://mintoc.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MadeleineSchroeter"/>
	<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Special:Contributions/MadeleineSchroeter"/>
	<updated>2026-06-09T07:58:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://mintoc.de/index.php?title=Category:JModelica&amp;diff=1925</id>
		<title>Category:JModelica</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Category:JModelica&amp;diff=1925"/>
		<updated>2016-04-15T12:25:17Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;JModelica.org is an extensible Modelica-based open source platform for optimization, simulation and analysis of&lt;br /&gt;
complex dynamic systems. JModelica supports the modeling language Modelica and it&#039;s extension Optimica. It was developed by the Modelon AB and the Department of Automatic Control at Lund University, Sweden.&lt;br /&gt;
&lt;br /&gt;
== Availibility ==&lt;br /&gt;
JModelica is an open source platform and comes with all third party requirements. Installation on Windows can be done via binarys, on Linux systems a compilation from source is required.&lt;br /&gt;
&lt;br /&gt;
== Technical Details ==&lt;br /&gt;
&lt;br /&gt;
The software package relies on the modeling languange Modelica and supports it&#039;s extension Optimica. The software uses the Phyton language to run problems and the Phyton packages Numpy and Scipy provide support for numerical computation. The software is extensible in several ways.&lt;br /&gt;
&lt;br /&gt;
== Supported Problem Classes ==&lt;br /&gt;
&lt;br /&gt;
* NLP, LP, QP&lt;br /&gt;
* Optimal Control Problems with ODEs or DAEs&lt;br /&gt;
* Minimum Time Problems&lt;br /&gt;
* Optimal Design&lt;br /&gt;
* Model Calibration&lt;br /&gt;
* Parameter Estimation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Algorithms ==&lt;br /&gt;
&lt;br /&gt;
JModelica uses two different Algorithms. The Dynamic optimization of DAEs using direct collocation with CasADI is the default Algorithm and is used for optimization purposes. The Derivative free calibration and optimization of ODEs with FMUs is used for simulation puproses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;http://www.jmodelica.org/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--List of all categories this page is part of. List characterization of solution behavior, model properties, ore presence of implementation details (e.g., AMPL for AMPL model) here --&amp;gt;&lt;br /&gt;
[[Category: Implementation]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=F-8_aircraft_(JModelica)&amp;diff=1874</id>
		<title>F-8 aircraft (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=F-8_aircraft_(JModelica)&amp;diff=1874"/>
		<updated>2016-03-15T12:47:37Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the model formulation of the MIOCP [[F-8 aircraft]] in [http://jmodelica.org JModelica] format. &lt;br /&gt;
&lt;br /&gt;
=== JModelica ===&lt;br /&gt;
&lt;br /&gt;
The model in JModelica code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;optimica&amp;quot;&amp;gt;&lt;br /&gt;
// The F-8 aircraft control problem is based on a very simple aircraft model.&lt;br /&gt;
// (c) Sebastian Sager, 2005-2009&lt;br /&gt;
// More info on http://mintoc.de/index.php/F-8_aircraft&lt;br /&gt;
&lt;br /&gt;
 optimization F8_aircraft_opt (objective = tf,&lt;br /&gt;
                         startTime = 0,&lt;br /&gt;
                         finalTime = 1)&lt;br /&gt;
 &lt;br /&gt;
    // Parameters&lt;br /&gt;
    parameter Real ksi=0.05236;&lt;br /&gt;
    parameter Real tf(free=true,min=0.1);&lt;br /&gt;
 &lt;br /&gt;
    // The states&lt;br /&gt;
    Real x0(start=0.4655, fixed=true); //angle of attack&lt;br /&gt;
    Real x1(start=0, fixed=true); //pitch angle&lt;br /&gt;
    Real x2(start=0, fixed=true); //pitch rate&lt;br /&gt;
 &lt;br /&gt;
    // The control signal&lt;br /&gt;
    input Real  w(min=0,max=1);&lt;br /&gt;
 &lt;br /&gt;
  equation&lt;br /&gt;
 &lt;br /&gt;
    der(x0)= 1*tf*(-0.877*x0 + x2 - 0.088*x0*x2 + 0.47*x0^2 - 0.019*x1^2 -x0^2*x2 + 3.846*x0^3-(0.215*ksi-0.28*x0^2*ksi -0.47*x0*ksi^2 - 0.63*ksi^3)*w-(-0.215*ksi + 0.28*x0^2 -0.47*x0*ksi^2 + 0.63*ksi^3)*(1-w));&lt;br /&gt;
    der(x1) = 1*tf*x2;&lt;br /&gt;
    der(x2) = 1*tf*(-4.208*x0 - 0.396*x2 - 0.47*x0^2 - 3.564*x0^3+20.967*ksi - 6.265*x0^2*ksi + 46*x0*ksi^2 -61.4*ksi^3-(20.967*ksi - 6.265*x0^2*ksi - 61.4*ksi^3)*2*w);&lt;br /&gt;
&lt;br /&gt;
  constraint&lt;br /&gt;
    x0(finalTime)=0;&lt;br /&gt;
    x1(finalTime)=0;&lt;br /&gt;
    x2(finalTime)=0;&lt;br /&gt;
 &lt;br /&gt;
  end F8_aircraft_opt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Fuller%27s_problem&amp;diff=1873</id>
		<title>Fuller&#039;s problem</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Fuller%27s_problem&amp;diff=1873"/>
		<updated>2016-03-15T12:46:50Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Dimensions&lt;br /&gt;
|nd        = 1&lt;br /&gt;
|nx        = 2&lt;br /&gt;
|nw        = 1&lt;br /&gt;
|nre       = 4&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The first control problem with an optimal [[:Category:Chattering|chattering]] solution was given by &amp;lt;bib id=&amp;quot;Fuller1963&amp;quot; /&amp;gt;. An optimal trajectory does exist for all initial and terminal values in a vicinity of the origin. As Fuller showed, this optimal trajectory contains a bang-bang control function that switches infinitely often.&lt;br /&gt;
&lt;br /&gt;
The mathematical equations form a small-scale [[:Category:ODE model|ODE model]]. The interior point equality conditions fix initial and terminal values of the differential states.&lt;br /&gt;
&lt;br /&gt;
== Mathematical formulation ==&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;t \in [t_0, t_f]&amp;lt;/math&amp;gt; almost everywhere the mixed-integer optimal control problem is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{llcl}&lt;br /&gt;
 \displaystyle \min_{x, w} &amp;amp; \int_{0}^{1} x_0^2 &amp;amp; \; \mathrm{d} t \\[1.5ex]&lt;br /&gt;
 \mbox{s.t.} &amp;amp; \dot{x}_0 &amp;amp; = &amp;amp; x_1, \\&lt;br /&gt;
 &amp;amp; \dot{x}_1 &amp;amp; = &amp;amp; 1 - 2 \; w, \\[1.5ex]&lt;br /&gt;
 &amp;amp; x(0) &amp;amp;=&amp;amp; x_S, \\&lt;br /&gt;
 &amp;amp; x(t_f) &amp;amp;=&amp;amp; x_T, \\&lt;br /&gt;
 &amp;amp; w(t) &amp;amp;\in&amp;amp;  \{0, 1\}.&lt;br /&gt;
\end{array} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
We use &amp;lt;math&amp;gt;x_S = x_T = (0.01, 0)^T&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Reference Solutions ==&lt;br /&gt;
&lt;br /&gt;
===Solutions obtained with optimica===&lt;br /&gt;
&lt;br /&gt;
The solution found for the relaxed Fuller&#039;s problem with optimica using the solver Ipopt (with the linear solver MA27) is obtained with 12 iterations and the objective is 1.5296058259296967e-05.&lt;br /&gt;
[[File:Fullerspng.png|left|200px|thumb|alt=a graph with the optimal solution of the Fuller&#039;s Problem with Optimica and Ipopt|Solution of the Fuller&#039;s Problem with Optimica and Ipopt]]&lt;br /&gt;
&amp;lt;br  /&amp;gt;&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both;&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
The optimal trajectory for the relaxed control problem on an equidistant grid $\mathcal{G}^0$ with $n_\mathrm{ms} = 19$ is shown in the top row of figure \ref{GCSEX3}. Note that this solution is not bang--bang due to the discretization of the control space. Even if this discretization is made very fine, a trajectory with $w(t) = 0.5$ on an interval in the middle of $[0,1]$ will be found as a minimum. &lt;br /&gt;
&lt;br /&gt;
The switching time optimization method yields an objective value of $1.89 \; 10^{-4}$. As the objective function value of the relaxed problem is smaller, $\Phi^{\mathrm{RL}} = 1.53 \; 10^{-5}$, one might want to reduce the function value further, e.g. closer than $\varepsilon = 10^{-6}$ to $\Phi^{\mathrm{RL}}$. If we apply algorithm \ref{AlgMIOC}, we obtain the trajectory shown in the bottommost row of figure \ref{GCSEX3} that yields an objective function value of $1.52 \; 10^{-5}$ and switches $35$ times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Reference solution plots&amp;quot; widths=&amp;quot;180px&amp;quot; heights=&amp;quot;140px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
 Image:lotkaRelaxedControls.png| Optimal relaxed control determined by an indirect approach and by a direct approach on different control discretization grids.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Muscod | Muscod code]] at [[Fuller&#039;s Problem (Muscod)]]&lt;br /&gt;
* [[:Category:optimica | optimica]] at [[Fuller&#039;s Problem (optimica)]]&lt;br /&gt;
* [[:Category:JModelica | JModelica]] at [[Fuller&#039;s Problem (JModelica)]]&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous and further reading ==&lt;br /&gt;
&lt;br /&gt;
An extensive analytical investigation of this problem and a discussion of the ubiquity of Fuller&#039;s problem can be found in &amp;lt;bib id=&amp;quot;Zelikin1994&amp;quot; /&amp;gt;, a recent investigation of chattering controls in relay feedback systems in &amp;lt;bib id=&amp;quot;Johansson2002&amp;quot; /&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;biblist /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--List of all categories this page is part of. List characterization of solution behavior, model properties, ore presence of implementation details (e.g., AMPL for AMPL model) here --&amp;gt;&lt;br /&gt;
[[Category:MIOCP]]&lt;br /&gt;
[[Category:ODE model]]&lt;br /&gt;
[[Category:Tracking objective]]&lt;br /&gt;
[[Category:Chattering]]&lt;br /&gt;
[[Category:Bang bang]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Fuller%27s_Problem_(JModelica)&amp;diff=1872</id>
		<title>Fuller&#039;s Problem (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Fuller%27s_Problem_(JModelica)&amp;diff=1872"/>
		<updated>2016-03-15T12:45:36Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: Created page with &amp;quot;This page contains the model formulation of the MIOCP Fuller&amp;#039;s problem in [http://jmodelica.org JModelica] format.   === JModelica ===  The model in JModelica code.  &amp;lt;sour...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the model formulation of the MIOCP [[Fuller&#039;s problem]] in [http://jmodelica.org JModelica] format. &lt;br /&gt;
&lt;br /&gt;
=== JModelica ===&lt;br /&gt;
&lt;br /&gt;
The model in JModelica code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;optimica&amp;quot;&amp;gt;&lt;br /&gt;
// Fuller&#039;s problem for an optimal chattering solution.&lt;br /&gt;
// (c) Sebastian Sager, 2005-2009&lt;br /&gt;
// More info on http://mintoc.de/index.php/Fuller&#039;s_Problem&lt;br /&gt;
&lt;br /&gt;
 optimization fuller_opt (objective = cost(finalTime),&lt;br /&gt;
                         startTime = 0,&lt;br /&gt;
                         finalTime = 1)&lt;br /&gt;
 &lt;br /&gt;
    // Differential states&lt;br /&gt;
    Real x0(start=0.01, fixed=true);&lt;br /&gt;
    Real x1(start=0, fixed=true);&lt;br /&gt;
    Real cost(start=0, fixed=true);&lt;br /&gt;
 &lt;br /&gt;
    // The control signal&lt;br /&gt;
    input Real u(free=true);&lt;br /&gt;
 &lt;br /&gt;
  equation&lt;br /&gt;
    der(x0) = x1;&lt;br /&gt;
    der(x1) = 1-2*u;&lt;br /&gt;
    der(cost) = x0^2;&lt;br /&gt;
  constraint &lt;br /&gt;
     u&amp;lt;=1;&lt;br /&gt;
     u&amp;gt;=0;&lt;br /&gt;
     x0(finalTime)=0.01;&lt;br /&gt;
     x1(finalTime)=0;&lt;br /&gt;
  end fuller_opt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=F-8_aircraft&amp;diff=1871</id>
		<title>F-8 aircraft</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=F-8_aircraft&amp;diff=1871"/>
		<updated>2016-03-15T12:38:45Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Dimensions&lt;br /&gt;
|nd        = 1&lt;br /&gt;
|nx        = 3&lt;br /&gt;
|nw        = 1&lt;br /&gt;
|nre       = 6&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The F-8 aircraft control problem is based on a very simple aircraft model. The control problem was introduced by Kaya and Noakes and aims at controlling an aircraft in a time-optimal way from an initial state to a terminal state.&lt;br /&gt;
&lt;br /&gt;
The mathematical equations form a small-scale [[:Category:ODE model|ODE model]]. The interior point equality conditions fix both initial and terminal values of the differential states.&lt;br /&gt;
&lt;br /&gt;
The optimal, relaxed control function shows [[:Category:Bang bang|bang bang]] behavior. The problem is furthermore interesting as it should be reformulated equivalently.&lt;br /&gt;
&lt;br /&gt;
== Mathematical formulation ==&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;t \in [0, T]&amp;lt;/math&amp;gt; almost everywhere the mixed-integer optimal control problem is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{llcl}&lt;br /&gt;
 \displaystyle \min_{x, w, T} &amp;amp; T \\[1.5ex]&lt;br /&gt;
 \mbox{s.t.} &amp;amp; \dot{x}_0 &amp;amp;=&amp;amp; -0.877 \; x_0 + x_2 - 0.088 \; x_0 \; x_2 + 0.47 \; x_0^2 - 0.019 \; x_1^2 - x_0^2 \; x_2 + 3.846 \; x_0^3 \\&lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;           - 0.215 \; w + 0.28 \; x_0^2 \; w + 0.47 \; x_0 \; w^2 + 0.63 \; w^3 \\ &lt;br /&gt;
&amp;amp; \dot{x}_1 &amp;amp;=&amp;amp; x_2 \\&lt;br /&gt;
&amp;amp; \dot{x}_2 &amp;amp;=&amp;amp; -4.208 \; x_0 - 0.396 \; x_2 - 0.47 \; x_0^2 - 3.564 \; x_0^3 \\&lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;            - 20.967 \; w + 6.265 \; x_0^2 \; w + 46 \; x_0 \; w^2 + 61.4 \; w^3 \\ &lt;br /&gt;
 &amp;amp; x(0) &amp;amp;=&amp;amp; (0.4655,0,0)^T, \\&lt;br /&gt;
 &amp;amp; x(T) &amp;amp;=&amp;amp; (0,0,0)^T, \\&lt;br /&gt;
 &amp;amp; w(t) &amp;amp;\in&amp;amp; \{-0.05236,0.05236\}.&lt;br /&gt;
\end{array} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x_0&amp;lt;/math&amp;gt; is the angle of attack in radians, &amp;lt;math&amp;gt;x_1&amp;lt;/math&amp;gt; is the pitch angle, &amp;lt;math&amp;gt;x_2&amp;lt;/math&amp;gt; is the pitch rate in rad/s, and the control function &amp;lt;math&amp;gt;w = w(t)&amp;lt;/math&amp;gt; is the tail deflection angle in radians. This model goes back to Garrard&amp;lt;bib id=&amp;quot;Garrard1977&amp;quot; /&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In the control problem, both initial and terminal values of the differential states are fixed.&lt;br /&gt;
&lt;br /&gt;
== Reformulation ==&lt;br /&gt;
&lt;br /&gt;
The control w(t) is restricted to take values from a finite set only. Hence, the control problem can be reformulated equivalently to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{llcl}&lt;br /&gt;
 \displaystyle \min_{x, w, T} &amp;amp; T \\[1.5ex]&lt;br /&gt;
 \mbox{s.t.} &amp;amp; \dot{x}_0 &amp;amp;=&amp;amp; -0.877 \; x_0 + x_2 - 0.088 \; x_0 \; x_2 + 0.47 \; x_0^2 - 0.019 \; x_1^2 - x_0^2 \; x_2 + 3.846 \; x_0^3 \\&lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;           - \left( 0.215 \; \xi - 0.28 \; x_0^2 \; \xi - 0.47 \; x_0 \; \xi^2 - 0.63 \; \xi^3 \right) \; w \\ &lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;           - \left( - 0.215 \; \xi + 0.28 \; x_0^2 \; \xi - 0.47 \; x_0 \; \xi^2 + 0.63 \; \xi^3 \right) \; (1 - w) \\ &lt;br /&gt;
&amp;amp;           &amp;amp;=&amp;amp; -0.877 \; x_0 + x_2 - 0.088 \; x_0 \; x_2 + 0.47 \; x_0^2 - 0.019 \; x_1^2 - x_0^2 \; x_2 + 3.846 \; x_0^3 \\&lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;           + 0.215 \; \xi - 0.28 \; x_0^2 \; \xi + 0.47 \; x_0 \; \xi^2 - 0.63 \; \xi^3 \\ &lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;           - \left( 0.215 \; \xi - 0.28 \; x_0^2 \; \xi - 0.63 \; \xi^3 \right) \; 2 w \\ &lt;br /&gt;
&amp;amp; \dot{x}_1 &amp;amp;=&amp;amp; x_2 \\&lt;br /&gt;
&amp;amp; \dot{x}_2 &amp;amp;=&amp;amp; -4.208 \; x_0 - 0.396 \; x_2 - 0.47 \; x_0^2 - 3.564 \; x_0^3 \\&lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;           - \left( 20.967 \; \xi - 6.265 \; x_0^2 \; \xi -46 \; x_0 \; \xi^2 - 61.4 \; \xi^3 \right) \; w \\ &lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;           - \left( - 20.967 \; \xi + 6.265 \; x_0^2 \; \xi -46 \; x_0 \; \xi^2 + 61.4 \; \xi^3 \right) \; (1 - w) \\ &lt;br /&gt;
&amp;amp;           &amp;amp;=&amp;amp; -4.208 \; x_0 - 0.396 \; x_2 - 0.47 \; x_0^2 - 3.564 \; x_0^3 \\&lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;           + 20.967 \; \xi - 6.265 \; x_0^2 \; \xi + 46 \; x_0 \; \xi^2 - 61.4 \; \xi^3 \\ &lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;           - \left( 20.967 \; \xi - 6.265 \; x_0^2 \; \xi - 61.4 \; \xi^3 \right) \; 2 w \\ &lt;br /&gt;
 &amp;amp; x(0) &amp;amp;=&amp;amp; (0.4655,0,0)^T, \\&lt;br /&gt;
 &amp;amp; x(T) &amp;amp;=&amp;amp; (0,0,0)^T, \\&lt;br /&gt;
 &amp;amp; w(t) &amp;amp;\in&amp;amp; \{0,1\},&lt;br /&gt;
\end{array} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with &amp;lt;math&amp;gt;\xi = 0.05236&amp;lt;/math&amp;gt;. Note that there is a bijection between optimal solutions of the two problems.&lt;br /&gt;
&lt;br /&gt;
== Reference solutions ==&lt;br /&gt;
&lt;br /&gt;
We provide here a comparison of different solutions reported in the literature. The numbers show the respective lengths &amp;lt;math&amp;gt;t_i - t_{i-1}&amp;lt;/math&amp;gt; of the switching arcs with the value of &amp;lt;math&amp;gt;w(t)&amp;lt;/math&amp;gt; on the upper or lower bound (given in the second column). &#039;&#039;Claim&#039;&#039; denotes what is stated in the respective publication, &#039;&#039;Simulation&#039;&#039; shows values obtained by a simulation with a Runge-Kutta-Fehlberg method of 4th/5th order and an integration tolerance of &amp;lt;math&amp;gt;10^{-8}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|- bgcolor=#c7c7c7&lt;br /&gt;
! Arc !! w(t) !! Lee et al.&amp;lt;bib id=&amp;quot;Lee1997a&amp;quot; /&amp;gt; !! Kaya&amp;lt;bib id=&amp;quot;Kaya2003&amp;quot; /&amp;gt; !! Sager&amp;lt;bib id=&amp;quot;Sager2005&amp;quot; /&amp;gt; !! [[User:MartinSchlueter | Schlueter]]/[[User:Matthias.gerdts | Gerdts]] !! Sager&lt;br /&gt;
|- &lt;br /&gt;
| align=center | 1 || align=center | 1 || 0.00000 || 0.10292 || 0.10235 || 0.0 || 1.13492&lt;br /&gt;
|-&lt;br /&gt;
| align=center | 2 || align=center | 0 || 2.18800 || 1.92793 || 1.92812 || 0.608750 || 0.34703&lt;br /&gt;
|-&lt;br /&gt;
| align=center | 3 || align=center | 1 || 0.16400 || 0.16687 || 0.16645 || 3.136514 || 1.60721&lt;br /&gt;
|-&lt;br /&gt;
| align=center | 4 || align=center | 0 || 2.88100 || 2.74338 || 2.73071 || 0.654550 || 0.69169&lt;br /&gt;
|-&lt;br /&gt;
| align=center | 5 || align=center | 1 || 0.33000 || 0.32992 || 0.32994 || 0.0 || 0.0&lt;br /&gt;
|-&lt;br /&gt;
| align=center | 6 || align=center | 0 || 0.47200 || 0.47116 || 0.47107 || 0.0 || 0.0&lt;br /&gt;
|-&lt;br /&gt;
| Claim: Infeasibility || align=center | - || 1.00E-10 || 7.30E-06 || 5.90E-06 || 3.29169e-06 || 2.21723e-07&lt;br /&gt;
|-&lt;br /&gt;
| Claim: Objective     || align=center | - || 6.03500 || 5.74217 || 5.72864 || 4.39981 || 3.78086&lt;br /&gt;
|- style=&amp;quot;font-style:italic;background-color:#ffffcc;&amp;quot;&lt;br /&gt;
! Simulation: Infeasibility   || align=center | - || 1.75E-03 || 1.64E-03 || 5.90E-06 || 3.29169e-06 || 2.21723e-07&lt;br /&gt;
|- style=&amp;quot;font-style:italic;background-color:#ffffcc;&amp;quot;&lt;br /&gt;
! Simulation: Objective       || align=center | - || 6.03500 || 5.74218 || 5.72864 || 4.39981 || 3.78086&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The best known optimal objective value of this  problem given is given by &amp;lt;math&amp;gt;T = 3.78086&amp;lt;/math&amp;gt;. The corresponding solution is shown in the rightmost plot. The solution of bang-bang type switches three times, starting with &amp;lt;math&amp;gt;w(t) = 1&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Reference solution plots&amp;quot; widths=&amp;quot;240px&amp;quot; heights=&amp;quot;167px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
 Image:f8aircraftRelaxedCoarse.png| Locally optimal relaxed control on a coarse control discretization grid and corresponding differential states.&lt;br /&gt;
 Image:f8aircraftRelaxedFine.png| Locally optimal relaxed control on a fine, adaptively chosen control discretization grid and corresponding differential states.&lt;br /&gt;
 Image:f8aircraftInteger.png| Integer control and corresponding differential states from Sager&amp;lt;bib id=&amp;quot;Sager2005&amp;quot; /&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
 Image:f8aircraftSchlueter.png| Integer control and corresponding differential states from [[User:MartinSchlueter | Schlueter]]/[[User:Matthias.gerdts | Gerdts]] solution.&lt;br /&gt;
 Image:f8aircraftSager2009.png| Best known integer control and corresponding differential states from Sager solution.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Optimica ===&lt;br /&gt;
&lt;br /&gt;
Objective     : 5.12799232&lt;br /&gt;
infeasibility : 6.2235588037251599e-10&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Obtained solution plots&amp;quot; widths=&amp;quot;240px&amp;quot; heights=&amp;quot;167px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
Image:f8aircraft1.png| (Probably sub-)Optimal control.&lt;br /&gt;
Image:f8aircraft2.png| Corresponding differential states.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
&lt;br /&gt;
Model descriptions are available in&lt;br /&gt;
&lt;br /&gt;
* [[:Category:AMPL | AMPL]] at [[F-8 aircraft (AMPL)]]&lt;br /&gt;
* [[:Category:Muscod | Muscod code]] at [[F-8 aircraft (Muscod)]]&lt;br /&gt;
* [[:Category:optimica | optimica]] at [[F-8 aircraft (optimica)]]&lt;br /&gt;
* [[:Category:JModelica | JModelica]] at [[F-8 aircraft (JModelica)]]&lt;br /&gt;
&lt;br /&gt;
== Variants ==&lt;br /&gt;
&lt;br /&gt;
* a prescribed time grid for the control function, see [[F-8 aircraft (AMPL)]],&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous and Further Reading ==&lt;br /&gt;
See &amp;lt;bib id=&amp;quot;Kaya2003&amp;quot; /&amp;gt; and &amp;lt;bib id=&amp;quot;Sager2005&amp;quot; /&amp;gt; for details.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;biblist /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--List of all categories this page is part of. List characterization of solution behavior, model properties, ore presence of implementation details (e.g., AMPL for AMPL model) here --&amp;gt;&lt;br /&gt;
[[Category:Bang bang]]&lt;br /&gt;
[[Category:MIOCP]]&lt;br /&gt;
[[Category:ODE model]]&lt;br /&gt;
[[Category:Aeronautics]]&lt;br /&gt;
[[Category:Outer convexification]]&lt;br /&gt;
[[Category: Minimum time]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=F-8_aircraft_(JModelica)&amp;diff=1870</id>
		<title>F-8 aircraft (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=F-8_aircraft_(JModelica)&amp;diff=1870"/>
		<updated>2016-03-15T12:29:10Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: Created page with &amp;quot;This page contains the model formulation of the MIOCP F-8 aircraft in [http://jmodelica.org JModelica] format.   === JModelica ===  The model in JModelica code.  &amp;lt;source l...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the model formulation of the MIOCP [[F-8 aircraft]] in [http://jmodelica.org JModelica] format. &lt;br /&gt;
&lt;br /&gt;
=== JModelica ===&lt;br /&gt;
&lt;br /&gt;
The model in JModelica code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;optimica&amp;quot;&amp;gt;&lt;br /&gt;
// The F-8 aircraft control problem is based on a very simple aircraft model.&lt;br /&gt;
// (c) Sebastian Sager, 2005-2009&lt;br /&gt;
// More info on http://mintoc.de/index.php/F-8_aircraft&lt;br /&gt;
&lt;br /&gt;
 optimization F8_aircraft_opt (objective = tf,&lt;br /&gt;
                         startTime = 0,&lt;br /&gt;
                         finalTime = 1)&lt;br /&gt;
 &lt;br /&gt;
    // Parameters&lt;br /&gt;
    parameter Real ksi=0.05236;&lt;br /&gt;
    parameter Real tf(free=true,min=0.1);&lt;br /&gt;
 &lt;br /&gt;
    // The states&lt;br /&gt;
    Real x0(start=0.4655, fixed=true); //angle of attack&lt;br /&gt;
    Real x1(start=0, fixed=true); //pitch angle&lt;br /&gt;
    Real x2(start=0, fixed=true); //pitch rate&lt;br /&gt;
 &lt;br /&gt;
    // The control signal&lt;br /&gt;
    input Real  w(min=0,max=1);&lt;br /&gt;
 &lt;br /&gt;
  equation&lt;br /&gt;
 &lt;br /&gt;
    der(x0)= 1*tf*(-0.877*x0 + x2 - 0.088*x0*x2 + 0.47*x0^2 - 0.019*x1^2 -x0^2*x2 + 3.846*x0^3-(0.215*ksi-0.28*x0^2*ksi -0.47*x0*ksi^2 - 0.63*ksi^3)*w-(-0.215*ksi + 0.28*x0^2 -0.47*x0*ksi^2 + 0.63*ksi^3)*(1-w));&lt;br /&gt;
    der(x1) = 1*tf*x2;&lt;br /&gt;
    der(x2) = 1*tf*(-4.208*x0 - 0.396*x2 - 0.47*x0^2 - 3.564*x0^3+20.967*ksi - 6.265*x0^2*ksi + 46*x0*ksi^2 -61.4*ksi^3-(20.967*ksi - 6.265*x0^2*ksi - 61.4*ksi^3)*2*w);&lt;br /&gt;
&lt;br /&gt;
  constraint&lt;br /&gt;
    x0(finalTime)=0;&lt;br /&gt;
    x1(finalTime)=0;&lt;br /&gt;
    x2(finalTime)=0;&lt;br /&gt;
 &lt;br /&gt;
  end F8_aircraft_opt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
end F8_aircraft_pack;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Lotka_Volterra_fishing_problem_(JModelica)&amp;diff=1278</id>
		<title>Lotka Volterra fishing problem (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Lotka_Volterra_fishing_problem_(JModelica)&amp;diff=1278"/>
		<updated>2016-01-18T10:17:55Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the model formulation of the MIOCP Lotka Volterra fishing problem in JModelica format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== JModelica ==&lt;br /&gt;
&lt;br /&gt;
The model for compilation with JModelica.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;optimica&amp;quot;&amp;gt;&lt;br /&gt;
//--------------------------------------------------------------------&lt;br /&gt;
//Lotka Volterra Fishing Problem&lt;br /&gt;
// (c) Madeleine Schroeter&lt;br /&gt;
//--------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
  optimization lotka(objective = cost(finalTime), startTime = 0, finalTime = 12)&lt;br /&gt;
    &amp;quot;Steady State Solution with u=0&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Real cost(start=0, min=0, max=25) &amp;quot;Integrated Deviation&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
    // Differential state variables&lt;br /&gt;
    Real x0(min=0, max=20.0) &amp;quot;Biomass of Prey&amp;quot;;&lt;br /&gt;
    Real x1(min=0, max=20.0) &amp;quot;Biomass of Predator&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
    // Control functions&lt;br /&gt;
    input Real u(free=true, min=0,max=1);&lt;br /&gt;
 &lt;br /&gt;
    constant Real ref0 = 1.0 &amp;quot;Steady State Prey&amp;quot;;&lt;br /&gt;
    constant Real ref1 = 1.0 &amp;quot;Steady State Predator&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
  equation&lt;br /&gt;
    der(x0) =  x0 - x0*x1 - 0.4*x0*u;&lt;br /&gt;
    der(x1) = -x1 + x0*x1 - 0.2*x1*u;&lt;br /&gt;
    der(cost) = (x0 - ref0)*(x0 - ref0) + (x1 - ref1)*(x1 - ref1); // Quadratic deviation&lt;br /&gt;
 &lt;br /&gt;
  constraint&lt;br /&gt;
 	x0(0)=0.5;&lt;br /&gt;
	x1(0)=0.7;&lt;br /&gt;
  end lotka;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Python run file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#Import the function for transfering a model to CasADiInterface&lt;br /&gt;
from pyjmi import transfer_optimization_problem&lt;br /&gt;
&lt;br /&gt;
op=transfer_optimization_problem(&amp;quot;lotka&amp;quot;, &amp;quot;lotka.mop&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
res=op.optimize()&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Lotka_Volterra_fishing_problem_(JModelica)&amp;diff=1277</id>
		<title>Lotka Volterra fishing problem (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Lotka_Volterra_fishing_problem_(JModelica)&amp;diff=1277"/>
		<updated>2016-01-18T10:17:00Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the model formulation of the MIOCP Lotka Volterra fishing problem in JModelica format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== JModelica ==&lt;br /&gt;
&lt;br /&gt;
The model for compilation with JModelica.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;optimica&amp;quot;&amp;gt;&lt;br /&gt;
//--------------------------------------------------------------------&lt;br /&gt;
//Lotka Volterra Fishing Problem&lt;br /&gt;
// (c) Madeleine Schroeter&lt;br /&gt;
//--------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
  optimization lotka(objective = cost(finalTime), startTime = 0, finalTime = 12)&lt;br /&gt;
    &amp;quot;Steady State Solution with u=0&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Real cost(start=0, min=0, max=25) &amp;quot;Integrated Deviation&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
    // Differential state variables&lt;br /&gt;
    Real x0(min=0, max=20.0) &amp;quot;Biomass of Prey&amp;quot;;&lt;br /&gt;
    Real x1(min=0, max=20.0) &amp;quot;Biomass of Predator&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
    // Control functions&lt;br /&gt;
    input Real u(free=true, min=0,max=1);&lt;br /&gt;
 &lt;br /&gt;
    constant Real ref0 = 1.0 &amp;quot;Steady State Prey&amp;quot;;&lt;br /&gt;
    constant Real ref1 = 1.0 &amp;quot;Steady State Predator&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
  equation&lt;br /&gt;
    der(x0) =  x0 - x0*x1 - 0.4*x0*u;&lt;br /&gt;
    der(x1) = -x1 + x0*x1 - 0.2*x1*u;&lt;br /&gt;
    der(cost) = (x0 - ref0)*(x0 - ref0) + (x1 - ref1)*(x1 - ref1); // Quadratic deviation&lt;br /&gt;
 &lt;br /&gt;
  constraint&lt;br /&gt;
 	x0(0)=0.5;&lt;br /&gt;
	x1(0)=0.7;&lt;br /&gt;
  end lotka;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The run file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#Import the function for transfering a model to CasADiInterface&lt;br /&gt;
from pyjmi import transfer_optimization_problem&lt;br /&gt;
&lt;br /&gt;
op=transfer_optimization_problem(&amp;quot;lotka&amp;quot;, &amp;quot;lotka.mop&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
res=op.optimize()&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Lotka_Volterra_fishing_problem_(JModelica)&amp;diff=1276</id>
		<title>Lotka Volterra fishing problem (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Lotka_Volterra_fishing_problem_(JModelica)&amp;diff=1276"/>
		<updated>2016-01-18T10:15:00Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: Created page with &amp;quot;This page contains the model formulation of the MIOCP Lotka Volterra fishing problem in JModelica format.   == JModelica ==  The model for compilation with JModelica.  &amp;lt;source...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the model formulation of the MIOCP Lotka Volterra fishing problem in JModelica format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== JModelica ==&lt;br /&gt;
&lt;br /&gt;
The model for compilation with JModelica.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;optimica&amp;quot;&amp;gt;&lt;br /&gt;
//--------------------------------------------------------------------&lt;br /&gt;
//Lotka Volterra Fishing Problem&lt;br /&gt;
// (c) Madeleine Schroeter&lt;br /&gt;
//--------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
  optimization lotka(objective = cost(finalTime), startTime = 0, finalTime = 12)&lt;br /&gt;
    &amp;quot;Steady State Solution with u=0&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
    Real cost(start=0, min=0, max=25) &amp;quot;Integrated Deviation&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
    // Differential state variables&lt;br /&gt;
    Real x0(min=0, max=20.0) &amp;quot;Biomass of Prey&amp;quot;;&lt;br /&gt;
    Real x1(min=0, max=20.0) &amp;quot;Biomass of Predator&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
    // Control functions&lt;br /&gt;
    input Real u(free=true, min=0,max=1);&lt;br /&gt;
 &lt;br /&gt;
    constant Real ref0 = 1.0 &amp;quot;Steady State Prey&amp;quot;;&lt;br /&gt;
    constant Real ref1 = 1.0 &amp;quot;Steady State Predator&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
  equation&lt;br /&gt;
    der(x0) =  x0 - x0*x1 - 0.4*x0*u;&lt;br /&gt;
    der(x1) = -x1 + x0*x1 - 0.2*x1*u;&lt;br /&gt;
    der(cost) = (x0 - ref0)*(x0 - ref0) + (x1 - ref1)*(x1 - ref1); // Quadratic deviation&lt;br /&gt;
 &lt;br /&gt;
  constraint&lt;br /&gt;
 	x0(0)=0.5;&lt;br /&gt;
	x1(0)=0.7;&lt;br /&gt;
  end lotka;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1222</id>
		<title>Van der Pol Oscillator (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1222"/>
		<updated>2016-01-12T19:57:01Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the source code to solve the Van der Pol Oscillator problem with JModelica. The automatic differentiation tool CasADI and the solver IPOPT were used to solve the problem.&lt;br /&gt;
&lt;br /&gt;
Model file (VDP_Opt.mop)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Optimica&amp;quot;&amp;gt;&lt;br /&gt;
//-------------------------------------------------------------------------&lt;br /&gt;
//Van der Pol Oscillator with direct collocation using JModelica&lt;br /&gt;
//(c) Madeleine Schroter&lt;br /&gt;
//--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
optimization VDP_Opt(objectiveIntegrand = y^2+x^2+u^2, startTime = 0, finalTime = 20)&lt;br /&gt;
&lt;br /&gt;
//The states&lt;br /&gt;
Real x(start=1, fixed=true); //position coordinate&lt;br /&gt;
Real y(start=0, fixed=true); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//The control signal&lt;br /&gt;
input Real u; //damping of the oscillation&lt;br /&gt;
&lt;br /&gt;
equation&lt;br /&gt;
der(y) = (1-x^2) * y - x +u;&lt;br /&gt;
der(x) = y;&lt;br /&gt;
&lt;br /&gt;
constraint&lt;br /&gt;
u&amp;lt;=0.75;&lt;br /&gt;
&lt;br /&gt;
end VDP_Opt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run file&lt;br /&gt;
&amp;lt;source lang =&amp;quot;Python&amp;quot;&amp;gt;&lt;br /&gt;
#Import the function for transfering a model to CasADiInterface&lt;br /&gt;
from pyjmi import transfer_optimization_problem&lt;br /&gt;
&lt;br /&gt;
op=transfer_optimization_problem(&amp;quot;VDP_Opt&amp;quot;, &amp;quot;VDP_Opt.mop&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
res=op.optimize()&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1221</id>
		<title>Van der Pol Oscillator (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1221"/>
		<updated>2016-01-12T19:56:11Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the source code to solve the Van der Pol Oscillator problem with JModelica. The automatic differentiation tool CasADI and the solver IPOPT were used to solve the problem.&lt;br /&gt;
&lt;br /&gt;
Model file (VDP_Opt.mop)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Python&amp;quot;&amp;gt;&lt;br /&gt;
//-------------------------------------------------------------------------&lt;br /&gt;
//Van der Pol Oscillator with direct collocation using JModelica&lt;br /&gt;
//(c) Madeleine Schroter&lt;br /&gt;
//--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
optimization VDP_Opt(objectiveIntegrand = y^2+x^2+u^2, startTime = 0, finalTime = 20)&lt;br /&gt;
&lt;br /&gt;
//The states&lt;br /&gt;
Real x(start=1, fixed=true); //position coordinate&lt;br /&gt;
Real y(start=0, fixed=true); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//The control signal&lt;br /&gt;
input Real u; //damping of the oscillation&lt;br /&gt;
&lt;br /&gt;
equation&lt;br /&gt;
der(y) = (1-x^2) * y - x +u;&lt;br /&gt;
der(x) = y;&lt;br /&gt;
&lt;br /&gt;
constraint&lt;br /&gt;
u&amp;lt;=0.75;&lt;br /&gt;
&lt;br /&gt;
end VDP_Opt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run file&lt;br /&gt;
&amp;lt;source lang =&amp;quot;Python&amp;quot;&amp;gt;&lt;br /&gt;
#Import the function for transfering a model to CasADiInterface&lt;br /&gt;
from pyjmi import transfer_optimization_problem&lt;br /&gt;
&lt;br /&gt;
op=transfer_optimization_problem(&amp;quot;VDP_Opt&amp;quot;, &amp;quot;VDP_Opt.mop&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
res=op.optimize()&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1220</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1220"/>
		<updated>2016-01-12T18:40:11Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The Optimal Control Problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under [[Van der Pol Oscillator (JModelica)]] The optimal value of the objective function is 3.1762. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Reference solution plots&amp;quot; widths=&amp;quot;180px&amp;quot; heights=&amp;quot;140px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
 Image:VDP_Plot_control.png| Control u over time (damping).&lt;br /&gt;
 Image:VDP_Plot_states.png| Position coordinate x and it&#039;s derivative y.&lt;br /&gt;
 Image:VDP_Plot_derivatives.png| Derivative &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and second derivative &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]  [[Van der Pol Oscillator (JModelica)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
The Problem can be found under the following [https://en.wikipedia.org/wiki/Van_der_Pol_oscillator link] or in the [http://www.jmodelica.org/api-docs/usersguide/1.4.0/ch08s02.html JModelica Users Guide].&lt;br /&gt;
&lt;br /&gt;
[[Category:MIOCP]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1219</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1219"/>
		<updated>2016-01-12T18:37:00Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The Optimal Control Problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under [[Van der Pol Oscillator (JModelica)]] The optimal value of the objective function is 3.1762. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Reference solution plots&amp;quot; widths=&amp;quot;180px&amp;quot; heights=&amp;quot;140px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
 Image:VDP_Plot_control.png| Control u over time (damping).&lt;br /&gt;
 Image:VDP_Plot_states.png| Position coordinate x and it&#039;s derivative y.&lt;br /&gt;
 Image:VDP_Plot_derivatives.png| Derivative &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and second derivative &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]  [[Van der Pol Oscillator (JModelica)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[https://en.wikipedia.org/wiki/Van_der_Pol_oscillator]&lt;br /&gt;
&lt;br /&gt;
[[Category:MIOCP]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1182</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1182"/>
		<updated>2016-01-12T15:09:42Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The Optimal Control Problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under [[Van der Pol Oscillator (JModelica)]] The optimal value of the objective function is 3.1762. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Reference solution plots&amp;quot; widths=&amp;quot;180px&amp;quot; heights=&amp;quot;140px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
 Image:VDP_Plot_control.png| Control u over time (damping).&lt;br /&gt;
 Image:VDP_Plot_states.png| Position coordinate x and it&#039;s derivative y.&lt;br /&gt;
 Image:VDP_Plot_derivatives.png| Derivative &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and second derivative &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]  [[Van der Pol Oscillator (JModelica)]]&lt;br /&gt;
[[Category:MIOCP]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1181</id>
		<title>Van der Pol Oscillator (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1181"/>
		<updated>2016-01-12T13:29:41Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the source code to solve the Van der Pol Oscillator problem with JModelica. The automatic differentiation tool CasADI and the solver IPOPT were used to solve the problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Python&amp;quot;&amp;gt;&lt;br /&gt;
//-------------------------------------------------------------------------&lt;br /&gt;
//Van der Pol Oscillator with direct collocation using JModelica&lt;br /&gt;
//(c) Madeleine Schroter&lt;br /&gt;
//--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
optimization VDP_Opt(objectiveIntegrand = y^2+x^2+u^2, startTime = 0, finalTime = 20)&lt;br /&gt;
&lt;br /&gt;
//The states&lt;br /&gt;
Real x(start=1, fixed=true); //position coordinate&lt;br /&gt;
Real y(start=0, fixed=true); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//The control signal&lt;br /&gt;
input Real u; //damping of the oscillation&lt;br /&gt;
&lt;br /&gt;
equation&lt;br /&gt;
der(y) = (1-x^2) * y - x +u;&lt;br /&gt;
der(x) = y;&lt;br /&gt;
&lt;br /&gt;
constraint&lt;br /&gt;
u&amp;lt;=0.75;&lt;br /&gt;
&lt;br /&gt;
end VDP_Opt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Category:JModelica&amp;diff=1180</id>
		<title>Category:JModelica</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Category:JModelica&amp;diff=1180"/>
		<updated>2016-01-12T13:25:20Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;JModelica.org is an extensible Modelica-based open source platform for optimization, simulation and analysis of&lt;br /&gt;
complex dynamic systems. JModelica supports the modeling language Modelica and it&#039;s extension Optimica, for more information see [http://www.jmodelica.org/]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;bibreferences/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--List of all categories this page is part of. List characterization of solution behavior, model properties, ore presence of implementation details (e.g., AMPL for AMPL model) here --&amp;gt;&lt;br /&gt;
[[Category:Problem characterization]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Category:JModelica&amp;diff=1179</id>
		<title>Category:JModelica</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Category:JModelica&amp;diff=1179"/>
		<updated>2016-01-12T13:24:53Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;JModelica.org is an extensible Modelica-based open source platform for optimization, simulation and analysis of&lt;br /&gt;
complex dynamic systems. JModelica supports the modeling language Modelica and it&#039;s extension Optimica, for more inforation see [http://www.jmodelica.org/]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;bibreferences/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--List of all categories this page is part of. List characterization of solution behavior, model properties, ore presence of implementation details (e.g., AMPL for AMPL model) here --&amp;gt;&lt;br /&gt;
[[Category:Problem characterization]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Category:JModelica&amp;diff=1178</id>
		<title>Category:JModelica</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Category:JModelica&amp;diff=1178"/>
		<updated>2016-01-12T13:24:40Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[JModelica.org is an extensible Modelica-based open source platform for optimization, simulation and analysis of&lt;br /&gt;
complex dynamic systems. JModelica supports the modeling language Modelica and it&#039;s extension Optimica, for more inforation see [http://www.jmodelica.org/]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;bibreferences/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--List of all categories this page is part of. List characterization of solution behavior, model properties, ore presence of implementation details (e.g., AMPL for AMPL model) here --&amp;gt;&lt;br /&gt;
[[Category:Problem characterization]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1177</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1177"/>
		<updated>2016-01-12T13:19:50Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The Optimal Control Problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under [[Van der Pol Oscillator (JModelica)]] The optimal value of the objective function is 3.1762. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Reference solution plots&amp;quot; widths=&amp;quot;180px&amp;quot; heights=&amp;quot;140px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
 Image:VDP_Plot_control.png| Control u over time (damping).&lt;br /&gt;
 Image:VDP_Plot_states.png| Position coordinate x and it&#039;s derivative y.&lt;br /&gt;
 Image:VDP_Plot_derivatives.png| Derivative &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and second derivative &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]  [[Van der Pol Oscillator (JModelica)]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1176</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1176"/>
		<updated>2016-01-12T13:19:23Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The Optimal Control Problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under [[Van der Pol Oscillator (JModelica)]] The optimal value of the objective function is 3.1762. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Reference solution plots&amp;quot; widths=&amp;quot;180px&amp;quot; heights=&amp;quot;140px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
 Image:VDP_Plot_control.png| Control u over time (damping).&lt;br /&gt;
 Image:VDP_Plot_states.png| Position coordinate x and it&#039;s derivative y.&lt;br /&gt;
 Image:VDP_Plot_derivatives.png| Derivative &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and second derivative &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]] at [[Van der Pol Oscillator (JModelica)]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1175</id>
		<title>Van der Pol Oscillator (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1175"/>
		<updated>2016-01-12T13:18:27Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the source code to solve the Van der Pol Oscillator problem with JModelica. The automatic differentiation tool CasADI and the solver IPOPT were used to solve the problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Python&amp;quot;&amp;gt;&lt;br /&gt;
#-------------------------------------------------------------------------&lt;br /&gt;
#Van der Pol Oscillator with direct collocation using JModelica&lt;br /&gt;
#(c) Madeleine Schroter&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
optimization VDP_Opt(objectiveIntegrand = y^2+x^2+u^2, startTime = 0, finalTime = 20)&lt;br /&gt;
&lt;br /&gt;
//The states&lt;br /&gt;
Real x(start=1, fixed=true); //position coordinate&lt;br /&gt;
Real y(start=0, fixed=true); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//The control signal&lt;br /&gt;
input Real u; //damping of the oscillation&lt;br /&gt;
&lt;br /&gt;
equation&lt;br /&gt;
der(y) = (1-x^2) * y - x +u;&lt;br /&gt;
der(x) = y;&lt;br /&gt;
&lt;br /&gt;
constraint&lt;br /&gt;
u&amp;lt;=0.75;&lt;br /&gt;
&lt;br /&gt;
end VDP_Opt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:JModelica]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1174</id>
		<title>Van der Pol Oscillator (JModelica)</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator_(JModelica)&amp;diff=1174"/>
		<updated>2016-01-12T12:53:14Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: Created page with &amp;quot;This page contains the source code to solve the Van der Pol Oscillator problem with JModelica. The automatic differentiation tool CasADI and the solver IPOPT were used to solv...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains the source code to solve the Van der Pol Oscillator problem with JModelica. The automatic differentiation tool CasADI and the solver IPOPT were used to solve the problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;Python&amp;quot;&amp;gt;&lt;br /&gt;
#-------------------------------------------------------------------------&lt;br /&gt;
#Van der Pol Oscillator with direct collocation using JModelica&lt;br /&gt;
#(c) Madeleine Schroter&lt;br /&gt;
#--------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
optimization VDP_Opt(objectiveIntegrand = y^2+x^2+u^2, startTime = 0, finalTime = 20)&lt;br /&gt;
&lt;br /&gt;
//The states&lt;br /&gt;
Real x(start=1, fixed=true); //position coordinate&lt;br /&gt;
Real y(start=0, fixed=true); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//The control signal&lt;br /&gt;
input Real u; //damping of the oscillation&lt;br /&gt;
&lt;br /&gt;
equation&lt;br /&gt;
der(y) = (1-x^2) * y - x +u;&lt;br /&gt;
der(x) = y;&lt;br /&gt;
&lt;br /&gt;
constraint&lt;br /&gt;
u&amp;lt;=0.75;&lt;br /&gt;
&lt;br /&gt;
end VDP_Opt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1173</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1173"/>
		<updated>2016-01-12T12:35:31Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The Optimal Control Problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under [[Van der Pol Oscillator (JModelica)]] The optimal value of the objective function is 3.1762. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;Reference solution plots&amp;quot; widths=&amp;quot;180px&amp;quot; heights=&amp;quot;140px&amp;quot; perrow=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
 Image:VDP_Plot_control.png| Control u over time (damping).&lt;br /&gt;
 Image:VDP_Plot_states.png| Position coordinate x and it&#039;s derivative y.&lt;br /&gt;
 Image:VDP_Plot_derivatives.png| Derivative &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and second derivative &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[JModelica]] at [[Van der Pol Oscillator (JModelica)]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1172</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1172"/>
		<updated>2016-01-12T12:27:34Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The Optimal Control Problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under [[Van der Pol Oscillator (JModelica)]] The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|control u]][[File:VDP_Plot_states.png|200px|thumb|left|states x and y]] [[File:VDP_Plot_derivatives.png|200px|thumb|right|derivatives &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt; ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[JModelica]] at [[Van der Pol Oscillator (JModelica)]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1171</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1171"/>
		<updated>2016-01-12T12:25:32Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The Optimal Control Problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under [[Van der Pol Oscillator (JModelica)]] The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|control u]][[File:VDP_Plot_states.png|200px|thumb|left|states x and y]] [[File:VDP_Plot_derivatives.png|200px|thumb|left|derivatives &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt; ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[JModelica]] at [[Van der Pol Oscillator (JModelica)]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1170</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1170"/>
		<updated>2016-01-12T12:25:08Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The Optimal Control Problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under [[Van der Pol Oscillator (JModelica)]] The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|control u]] [[File:VDP_Plot_states.png|200px|thumb|left|states x and y]] [[File:VDP_Plot_derivatives.png|200px|thumb|left|derivatives &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt; ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[JModelica]] at [[Van der Pol Oscillator (JModelica)]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_pol_oscillator&amp;diff=1169</id>
		<title>Van der pol oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_pol_oscillator&amp;diff=1169"/>
		<updated>2016-01-12T12:23:03Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: MadeleineSchroeter moved page Van der pol oscillator to Van der Pol Oscillator&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Van der Pol Oscillator]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1168</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1168"/>
		<updated>2016-01-12T12:23:03Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: MadeleineSchroeter moved page Van der pol oscillator to Van der Pol Oscillator&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|control u]] [[File:VDP_Plot_states.png|200px|thumb|left|states x and y]] [[File:VDP_Plot_derivatives.png|200px|thumb|left|derivatives &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt; ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[JModelica]] at [[Van der Pol oscillator (JModelica)]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1167</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1167"/>
		<updated>2016-01-12T12:16:25Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|control u]] [[File:VDP_Plot_states.png|200px|thumb|left|states x and y]] [[File:VDP_Plot_derivatives.png|200px|thumb|left|derivatives &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt; ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
&lt;br /&gt;
[[JModelica]] at [[Van der Pol oscillator (JModelica)]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1166</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1166"/>
		<updated>2016-01-12T12:14:37Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|control u]] [[File:VDP_Plot_states.png|200px|thumb|left|states x and y]] [[File:VDP_Plot_derivatives.png|200px|thumb|left|derivatives &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt; ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Code ==&lt;br /&gt;
Model descriptions are available in:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item [[JModelica]] at [[Van der Pol oscillator (JModelica)]]&lt;br /&gt;
\end{itemize}&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1165</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1165"/>
		<updated>2016-01-12T12:09:05Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|control u]] [[File:VDP_Plot_states.png|200px|thumb|left|states x and y]] [[File:VDP_Plot_derivatives.png|200px|thumb|left|derivatives &amp;lt;math&amp;gt;\dot x&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\dot y&amp;lt;/math&amp;gt; ]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1164</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1164"/>
		<updated>2016-01-12T12:07:28Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|alt text]] [[File:VDP_Plot_states.png|200px|thumb|left|alt text]] [[File:VDP_Plot_derivatives.png|200px|thumb|left|alt text]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=File:VDP_Plot_derivatives.png&amp;diff=1163</id>
		<title>File:VDP Plot derivatives.png</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=File:VDP_Plot_derivatives.png&amp;diff=1163"/>
		<updated>2016-01-12T12:06:24Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: der(x): derivative of the position coordinate x
der(y): second derivatie of x&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;der(x): derivative of the position coordinate x&lt;br /&gt;
der(y): second derivatie of x&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1162</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1162"/>
		<updated>2016-01-12T12:02:52Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|alt text]] [[File:VDP_Plot_states.png|200px|thumb|left|alt text]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1161</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1161"/>
		<updated>2016-01-12T12:02:25Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|alt text]]] [[File:VDP_Plot_states.png|200px|thumb|left|alt text]]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1160</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1160"/>
		<updated>2016-01-12T12:01:38Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png|200px|thumb|left|alt text]]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=File:VDP_Plot_states.png&amp;diff=1159</id>
		<title>File:VDP Plot states.png</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=File:VDP_Plot_states.png&amp;diff=1159"/>
		<updated>2016-01-12T12:00:43Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;States of the Van der Pol oscillator on a time horizon from 0 to 20. (position coordinate x and it&#039;s derivative y)&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=File:VDP_Plot_states.png&amp;diff=1158</id>
		<title>File:VDP Plot states.png</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=File:VDP_Plot_states.png&amp;diff=1158"/>
		<updated>2016-01-12T11:58:49Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: States of the Van der Pol oscillator on a time horizon from 0 to 20.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;States of the Van der Pol oscillator on a time horizon from 0 to 20.&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1157</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1157"/>
		<updated>2016-01-12T11:56:20Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plot_control.png]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=File:VDP_Plot_control.png&amp;diff=1156</id>
		<title>File:VDP Plot control.png</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=File:VDP_Plot_control.png&amp;diff=1156"/>
		<updated>2016-01-12T11:55:18Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Optimal Control Function of the Van der Pol Oscillator on a time horizon from 0 to 20.&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=File:VDP_Plot_control.png&amp;diff=1155</id>
		<title>File:VDP Plot control.png</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=File:VDP_Plot_control.png&amp;diff=1155"/>
		<updated>2016-01-12T11:53:59Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: Optimal Control of the Van der Pol Oscillator on a time horizon from 0 to 20.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Optimal Control of the Van der Pol Oscillator on a time horizon from 0 to 20.&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1154</id>
		<title>Van der Pol Oscillator</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Van_der_Pol_Oscillator&amp;diff=1154"/>
		<updated>2016-01-12T11:50:45Z</updated>

		<summary type="html">&lt;p&gt;MadeleineSchroeter: Created page with &amp;quot;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol i...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Van der Pol Oscillator is an oscillating system with non-linear damping and self regulation. The System was first introduced by the Dutch physician Balthasar Van der Pol in 1927. The aim is to control the oscillation such that the system stays in a mean position.  &lt;br /&gt;
 	&lt;br /&gt;
&lt;br /&gt;
== Model formulation ==&lt;br /&gt;
	&lt;br /&gt;
	The Van der Pol Oscillator evolves over time according to the second order differential equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{d^2x \over dt^2}-u(1-x^2){dx \over dt}+x= 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 		&lt;br /&gt;
where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the position coordinate, which is a function of the time &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; is a scalar parameter indicating the non-linearity and the strength of the damping.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;u&amp;gt;&amp;gt;1&amp;lt;/math&amp;gt; the oscillator is being damped, whereas for &amp;lt;math&amp;gt;u&amp;lt;&amp;lt;1&amp;lt;/math&amp;gt; energy is added to the system.&lt;br /&gt;
 		&lt;br /&gt;
Based on the transformation &amp;lt;math&amp;gt;y = \dot x&amp;lt;/math&amp;gt;  the problem can be reformulated:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;		 \dot x = y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\dot y = u(1-x^2) y-x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 		&lt;br /&gt;
The optimal control problem arises by adding the objective function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\min\limits_{u}\int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Optimal Control Problem ==&lt;br /&gt;
The Optimal Control Problem with the aim to minimize the deflection can be formulated as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; 		\begin{array}{ll}&lt;br /&gt;
 		\min\limits_{u}  &amp;amp; \int\limits_{t_0}^{t_f}(x(t)^2+y(t)^2+u(t)^2) dt\\&lt;br /&gt;
			 		s.t. &amp;amp; 	 \dot x = y\\&lt;br /&gt;
					 	 &amp;amp;	\dot y = u(1-x^2) y-x\\&lt;br /&gt;
&amp;amp; x(0)=1\\&lt;br /&gt;
&amp;amp; y(0)=0\\&lt;br /&gt;
&amp;amp; u\le 0.75\\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
					 	&lt;br /&gt;
 		\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
These fixed values are used within the model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;[t_0,t_f]=[0,20]&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference Solution ==&lt;br /&gt;
&lt;br /&gt;
The following reference solution was generated using JModelica with the automatic differentiation tool CasADI and the solver IPOPT. The Optimica code used to solve the problem can be found under.... The optimal value of the objective function is 3.1762. &lt;br /&gt;
[[File:VDP_Plotcontrolu.png]]&lt;/div&gt;</summary>
		<author><name>MadeleineSchroeter</name></author>
	</entry>
</feed>