Determine the optimal mixing policy of two catalysts along the length of a tubular plug flow reactor involving several reactions.
The nonlinear model [23] that describes the reactions is
We discretize the control and state variables along a uniform mesh
with
intervals and with the standard trapezoidal rule.
Data for this problem appears in Table 14.1.
| Variables | |
| Constraints | |
| Bounds | |
| Linear equality constraints | 0 |
| Linear inequality constraints | 0 |
| Nonlinear equality constraints | |
| Nonlinear inequality constraints | 0 |
|
Nonzeros in
|
0 |
|
Nonzeros in |
|
Results for the AMPL implementation are shown in Table 14.2.
For starting points we use
,
, and
evaluated at the grid points.
The catalyst mixing problem is a typical bang-singular-bang problem. The singularity leads to nonunique values of the control in the singular region, and thus it is possible to obtain different values for the control. Figure 14.1 shows the controls obtained by two different solvers.
| Solver | |
|
|
|
| LANCELOT | 7.71 s | 31.74 s | 87.26 s | 424.61 s |
|
|
-4.77480e-02 | -4.80163e-02 | -4.78620e-02 | -4.71856e-02 |
|
|
9.31890e-06 | 1.03790e-06 | 2.09770e-06 | 3.95740e-06 |
| iterations | 75 | 97 | 100 | 104 |
| LOQO | 0.66 s | 1.37 s | 3.1 s | 8.25 s |
|
|
-4.80694e-02 | -4.80591e-02 | -4.80565e-02 | -4.80559e-02 |
|
|
7.0e-08 | 6.4e-08 | 1.2e-08 | 1.2e-08 |
| iterations | 24 | 24 | 24 | 25 |
| MINOS | 2.39 s | 5.54 s | 5.34 s | 17.88 s |
|
|
-4.80605e-02 | -4.80302e-02 | -4.79881e-02 | -4.74787e-02 |
|
|
2.2e-16 | 2.2e-16 | 1.1e-16 | 1.1e-16 |
| iterations | 11 | 11 | 7 | 8 |
| SNOPT | 3.99 s | 17.32 s | 78.72 s | 181.24 s |
|
|
-4.80579e-02 | -4.80471e-02 | -4.80429e-02 | -4.80451e-02 |
|
|
1.8e-08 | 1.8e-07 | 3.5e-08 | 2.0e-05 |
| iterations | 22 | 22 | 22 | 6 |
|
|
||||
The results in Table 14.2 show that all the solvers
are successful for
but that the objective function
value fluctuates somewhat. This is probably due to the
bang-singular-bang nature of the problem.
The most common approach to dealing with singular control
problems is to add a penalty to the objective function
that leads to a smooth control,
for example,