Minimize the time taken for a particle, acted upon by a thrust of constant magnitude, to achieve a given altitude and terminal velocity.
The equations of motion are
This is a classical (see Bryson and Ho [7, pages 59-62])
problem in dynamic optimization.
We use
for the magnitude of thrust and the
boundary conditions [4]
| Variables |
|
| Constraints |
|
| Bounds |
|
| Linear equality constraints | 0 |
| Linear inequality constraints | 0 |
| Nonlinear equality constraints |
|
| Nonlinear inequality constraints | 0 |
|
Nonzeros in
|
0 |
|
Nonzeros in |
|
| Solver | |
|
|
|
| LANCELOT | 30.83 s | 124.62 s | 412.89 s | 2997.88 s |
|
|
5.54672e-01 | 5.54594e-01 | 5.54588e-01 | 5.54552e-01 |
|
|
2.69440e-06 | 1.94910e-06 | 6.12610e-06 | 8.56120e-06 |
| iterations | 366 | 416 | 410 | 575 |
| LOQO | 923.3 s | |
|
|
|
|
5.54668e-01 | |
|
|
|
|
4.1e-10 | |
|
|
| iterations | 20163 | |
|
|
| MINOS | 1.58 s | 5.62 s | 27.86 s | 143.09 s |
|
|
5.54668e-01 | 5.54595e-01 | 5.54577e-01 | 5.54572e-01 |
|
|
2.5e-13 | 1.1e-08 | 2.4e-13 | 7.9e-10 |
| iterations | 10 | 15 | 29 | 60 |
| SNOPT | 3.25 s | 13.43 s | 53.81 s | 147.37 s |
|
|
5.54668e-01 | 5.54595e-01 | 5.54577e-01 | 5.54573e-01 |
|
|
5.7e-08 | 1.9e-09 | 6.8e-09 | 5.4e-07 |
| iterations | 36 | 43 | 42 | 25 |
|
|
||||
Results for the AMPL implementation are given in Table 9.2.
The initial values for
and
are chosen as the functions
Only LANCELOT returns an error here, for
, of step got too small. Even so, it comes near to the optimal solution value.