GlobalOptimization[Interactive]  display an interactive interface to the Optimization and GlobalOptimization packages

Calling Sequence


Interactive()
Interactive(obj, constr)


Parameters


obj



algebraic; objective function

constr



(optional) set(relations); constraints or bounds





Description


•

The Interactive command displays a Maplet application that provides a graphical user interface to the solver routines in the Optimization and GlobalOptimization packages. You can select one of the methods shown in the interface to obtain a minimum (or maximum) of a 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 the set.



Examples


>


>




Download Help Document
Was this information helpful?