Algebraic Form of Input for Optimization Package Commands - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Optimization : Optimization Package : General information : Input forms : Optimization/General/AlgebraicForm

Algebraic Form of Input for Optimization Package Commands


This help page describes the algebraic form of input for commands in the Optimization package.  For general information on all the input forms accepted by the Optimization package commands, see the Optimization/InputForms help page.  For more information about options mentioned below, see the Optimization/Options help page.

Objective Function


The objective function  of the optimization  problem must be an algebraic expression in the problem variables, for example, exp(tan(x)) and x2+y23x+3y+3. The problem variables are the indeterminates in the objective function and, if provided, the constraints . They can also be specified using the variables option.


Some commands impose additional restrictions.  For example, Optimization[QPSolve] requires the objective function to be quadratic in the problem variables.


The Optimization[LSSolve] command accepts an objective function in least-squares  form. This objective function is specified as a list of algebraic expressions [r1,r2,...,rq], where r1, r2, ..., rq represent the residuals to be minimized in a least-squares sense.  Thus, the objective function is 12r12+r22+...+rq2.



The constraints must be a set or list of relations.  Only relations of type `<=` and `=` are allowed.  An example is w&equals;1&comma;2y2&plus;z&comma;x5.


Some commands impose additional restrictions.  For example, Optimization[LPSolve] requires all relations in the constraint set to be linear in the problem variables.



Specify the bounds as a sequence of arguments of the form vname&equals;vrange, where vname is the name of a problem variable and vrange is its range, for example y&equals;1..2.


Bounds can be included with the general constraints.  For example, adding the inequalities 1.5x and x3.2 to the constraint set is equivalent to specifying x&equals;1.5..3.2.  Bounds are not required to be specified separately, though this usually leads to more efficient computation.


The problem variables are not assumed to be non-negative by default, but the assume&equals;nonnegative option can be used to specify this.

Initial Values


Specify the initial values using the option initialpoint&equals;p, where p is a set or list of equalities in the form varname&equals;value. Each varname is one of the problem variables and value is the value to which it is initially set.  An example is initialpoint&equals;x&equals;1.2&comma;y&equals;5.7.



Maple returns the solution as a list containing the final minimum (or maximum) value and a point (the computed extremum ). The point is a list containing elements of the form varname&equals;value, where varname is a problem variable and value is its value.



Solve a linear program, quadratic program, and nonlinear program, all expressed in algebraic form.










See Also

Optimization, Optimization/InputForms, Optimization/Options, Optimization[LPSolve], Optimization[LSSolve], Optimization[NLPSolve], Optimization[QPSolve]

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