display an interactive interface to the Optimization package - Maple Programming Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Optimization : Optimization Package : Optimization/Interactive

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

Calling Sequence


Interactive(obj, constr)




algebraic; objective function



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



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 2-D or 3-D 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.




See Also

MapletsOverview, Optimization, Optimization/AlgebraicForm, Optimization/InputForms, Optimization/Options

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam