•
The QPSolve command solves a quadratic program (QP), which involves computing the minimum (or maximum) of a quadratic objective function possibly subject to linear constraints.
•
This help page describes the use of the QPSolve command when the QP is specified in algebraic form. A summary of this form is given in the Optimization/AlgebraicForm help page. QPSolve also recognizes the problem in Matrix form (see the QPSolve (Matrix Form) help page). Matrix form leads to more efficient computation, but is more complex .
•
The first parameter obj is the objective function, which must be an algebraic expression, quadratic in the problem variables. If obj is linear, the Optimization[LPSolve] command is automatically called.
The second parameter constr is optional and is a set or list of relations (of type `<=` or `=`), linear in the problem variables. The problem variables are the indeterminates of type name found in obj and constr. They can also be specified using the variables option.
Bounds on one or more of the variables are given as additional arguments, each of the form where varname is a variable name and is its range. The range endpoints can include values of type infinity . Non-negativity of the problem variables is not assumed by default, but can be specified with the assume = nonnegative option.
•
Maple returns the solution as a list containing the final minimum (or maximum) value and a point (the extremum). If the output = solutionmodule option is provided, then a module is returned. See the Optimization/Solution help page for more information.
If the quadratic program is convex, a global minimum is returned. Otherwise, the solution may be a local minimum.