Optimization[Interactive]  display an interactive interface to the Optimization package

Calling Sequence


Interactive()
Interactive(obj, constr)


Parameters


obj



algebraic; objective function

constr



(optional) set of relations; constraints and/or bounds





Description


•

The Interactive command displays a Maplet application that provides a graphical user interface to the solver routines in the Optimization package. You can select one of the methods shown in the interface to obtain a
minimum
(or
maximum
) of an
objective function
under the given
constraints
.


When you click the Solve button, the problem (the objective function, constraints, bounds, and options) is solved using the indicated method, and the solution is provided in the Solution area of the Maplet application.


When a solution is obtained, clicking the Plot button displays a plot of the objective function in the region of the solution or, if the problem is bounded, a plot of the objective function over the search region.


The plot is obtained with respect to either one or two of the problem variables, corresponding to a 2D or 3D plot respectively, fixing all other problem variables to their values at the computed optimum.


The constraints can be plotted as lines on the surface of the objective function or as vertical planes intersecting the objective function.

•

If the first calling sequence is used, the objective function and constraints can be entered in the Maplet interface. If the second calling sequence is used, the parameter obj is an algebraic expression representing the function to be minimized or maximized. If provided, the parameter constr must be a set of relations (of type <= or =) involving the problem variables. Bounds, of the form variable = lower .. upper, can also be included in this set.

•

The Maplet application uses the algebraic form of input as described in the Optimization/AlgebraicForm help page. Alternative forms of input, described in Optimization/InputForms and recognized by other Optimization package routines, are not accepted by the Maplet application.

•

Most options for the Optimization routines can be set or changed in the Maplet application. These options are described in detail in the Optimization/Options help page.



Examples


>

$\mathrm{with}\left(\mathrm{Optimization}\right)\:$

>

$\mathrm{Interactive}\left(x\+y\,\left\{1\le x\+y\,x\=0..1\,y\=0..1\right\}\right)$



Download Help Document
Was this information helpful?