Numeric optimization as a two-variable problem
|
•
|
Write a sequence consisting of the objective function and the constraint equation.
Press the Enter key.
|
•
|
Context Panel: Optimization≻Maximize (local)
|
|
|
|
|
The return consists of a list with two objects. The first object is the optimal value of the objective function (area); the second, a list of the parameter values giving this extreme value.
Numeric optimization as a single-variable problem
|
•
|
The graph of in Figure 3.8.7(b) shows an absolute maximum of about 7 for . The graph itself can be probed for a numeric estimate of the maximum point. Alternatively:
|
•
|
Write
Context Panel:
Optimization≻ Optimization Assistant
|
•
|
See Figures 3.8.7(c) and 3.8.7(d).
|
•
|
Click
to launch the Optimization Assistant with all the data in place.
|
|
|
Figure 3.8.7(b) Graph of
|
|
|
|
|
Figure 3.8.7(c) Optimization Assistant solution
|
|
|
|
|
Figure 3.8.7(d) Constraints and Bounds window
|
|
|
|
|
|
Naive attempts to obtain the maximum of with the Context Panel or even with the Optimization Assistant, fail. The implied constraint must be included in the calculation. The only syntax-free way to add this to the calculation is through the Optimization Assistant.
In the Optimization Assistant, click the Edit button to the right of "Constraints and Bounds." The Constraints window (Figure 3.8.7(d)) opens. Type the data shown in the windows under "Add Bound" and press first, the Add button to the right, and then press the Done button at the bottom.
Once the bounds on are known to Maple, choose "Maximize" in the Optimization Assistant, and press the Solve button to obtain the maximum of , and the corresponding value of where this maximum occurs. For the sake of completeness, calculate the corresponding value of from the equation .