Jump to content

Ducted Fan: Difference between revisions

From mintOC
No edit summary
Line 13: Line 13:


== Mathematical formulation ==
== Mathematical formulation ==
We summarize the states as <math>x := (x_1, v_1, x_2, v_2, \alpha, v_\alpha)</math>.
<p>
<p>
<math>
<math>
  \begin{array}{lll}
  \begin{array}{lll}
  \displaystyle \min_{u} && \frac{1}{2}\int_0^T \left( x_0(t)^2 + x_1(t)^2 + u(t)^2 \right) \\
  \displaystyle \min_{u, t_\mathrm{f}} && \frac{1}{t_\mathrm{f}} \int_0^{t_\mathrm{f}} \left( 2 u_1^2(t) + u_2^2(t) \right) \mathrm{d}t + \mu \, t_\mathrm{f} \\
  \text{subject to} \\
  \text{subject to} \\
\quad \dot{x_0}(t) & = & x_2(t),\\
\quad \dot{x_1}(t) & = & v_1(t),\\
\quad \dot{x_1}(t) & = & x_3(t), \\
\quad \dot{v_1}(t) & = & \frac{1}{m} \left( u_1 \cos \alpha - u_2 \sin \alpha \right),
\quad \dot{x_2}(t) & = & - \frac{k_1 + k_2}{m_1} \cdot x_0 + \frac{k_2}{m_1} \cdot x_1 + \frac{1}{m_1} \sin\left(\frac{2\pi}{T} \cdot t\right), \\
\quad \dot{x_2}(t) & = & v_2(t), \\
\quad \dot{x_3}(t) & = & \frac{k_2}{m_2} x_0(t) - \frac{k_2}{m_2} x_1(t) - \frac{c(1-u)}{m_2} x_3(t), \\
\quad \dot{v_2}(t) & = & \frac{1}{m} \left( -\mathrm{mg} + u_1 \sin \alpha + u_2 \cos \alpha \right), \\
\quad x_1(0) &=& 0, \\
\quad \dot{\alpha} & = & v_\alpha, \\
\quad x_2(0) &=& 0, \\
\quad \dot{v}_\alpha & = & \frac{r}{J} u_1, \\
\quad u(t) & \in & [-1, 1] \ \quad \forall t \in [0,T]
\quad x(0) &=& (0, 0, 0, 0, 0, 0)^T, \\
\quad x(t_\mathrm{f}) &=& (1, 0, 0, 0, 0, 0)^T, \\
\quad u_1(t) & \in & [-5, 5] \ \quad \forall t \in [0,t_\mathrm{f}], \\
\quad u_2(t) & \in & [0, 17] \ \quad \forall t \in [0,t_\mathrm{f}], \\
\quad \alpha(t) & \in & [-30, 30] \ \quad \forall t \in [0,t_\mathrm{f}]
   \end{array}
   \end{array}
</math>
</math>

Revision as of 10:12, 24 November 2025

Ducted Fan
State dimension: 1
Differential states: 4
Discrete control functions: 1


The Ducted Fan problem is a classical nonlinear benchmark in optimal control with multiple input and state constraints. This description is taken from [1].

It models the planar motion of a ducted fan aircraft, described by its horizontal and vertical positions (x1,x2) , the angle α with respect to the vertical, and their velocities (v1,v2,vα) . The inputs are the body-fixed thrust components (u1,u2) , generated by moving flaps at the end of the duct.

The objective is to steer the fan from the origin to a horizontal position of 1m at altitude 0, with zero final velocities and attitude, in a free final time tf, while minimising a trade-off between control effort and transition time.

Mathematical formulation

We summarize the states as x:=(x1,v1,x2,v2,α,vα).

minu,tf1tf0tf(2u12(t)+u22(t))dt+μtfsubject tox1˙(t)=v1(t),v1˙(t)=1m(u1cosαu2sinα),x2˙(t)=v2(t),v2˙(t)=1m(mg+u1sinα+u2cosα),α˙=vα,v˙α=rJu1,x(0)=(0,0,0,0,0,0)T,x(tf)=(1,0,0,0,0,0)T,u1(t)[5,5] t[0,tf],u2(t)[0,17] t[0,tf],α(t)[30,30] t[0,tf]

Parameters

These fixed values are used within the model:

Symbol Value Description
m1 100 kg First mass directly affected by F(t)
m2 2 kg Second mass influenced by damping control
k1 100 N/m Spring connecting first mass to reference
k2 3 N/m Coupling spring between the two masses
c 0.5 Ns/m Damping affecting second mass
T 2π Duration of the motion
u - Modulates the damping of the second mass

Reference Solutions

Here is one local solution to the above control problem.

Miscellaneous and Further Reading

This formulation and a detailed description can be found in [1].

References

[1] Caillau, J.-B., Cots, O., Gergaud, J., & Martinon, P. OptimalControlProblems.jl: a collection of optimal control problems with ODE's in Julia. https://github.com/control-toolbox/OptimalControlProblems.jl/blob/main/ext/Descriptions/double_oscillator.md