Algebraic - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

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

Constraints

Bounds

Initial Values

Solution

Examples

Objective Function

• 

The objective function of the optimization problem must be an algebraic expression in the problem variables, for example, exp(tan(x)) and . 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 , where , , ...,  represent the residuals to be minimized in a least-squares sense.  Thus, the objective function is .

Constraints

• 

The constraints must be a set or list of relations.  Only relations of type `<=` and `=` are allowed.  An example is .

• 

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

Bounds

• 

Specify the bounds as a sequence of arguments of the form , where vname is the name of a problem variable and vrange is its range, for example .

• 

Bounds can be included with the general constraints.  For example, adding the inequalities  and  to the constraint set is equivalent to specifying .  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  option can be used to specify this.

Initial Values

• 

Specify the initial values using the option , where p is a set or list of equalities in the form . Each varname is one of the problem variables and value is the value to which it is initially set.  An example is .

Solution

• 

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 , where varname is a problem variable and value is its value.

Examples

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

(1)

(2)

(3)

See Also

Optimization

Optimization/InputForms

Optimization/Options

Optimization[LPSolve]

Optimization[LSSolve]

Optimization[NLPSolve]

Optimization[QPSolve]

 


Download Help Document