kao.math.qp.QP Class Reference

Provides methods for solving Quadratic Programs (QP). More...

List of all members.

Classes

class  Out
 A definition of the outputs from the QP routines. More...

Static Public Member Functions

static Out qp (Matrix G, Vector d0, Matrix Aeq, Vector beq, Matrix Aineq, Vector bineq, int maxIter, Vector A0)

Detailed Description

Provides methods for solving Quadratic Programs (QP).

Author:
David Kao

Member Function Documentation

static Out kao.math.qp.QP.qp ( Matrix  G,
Vector  d0,
Matrix  Aeq,
Vector  beq,
Matrix  Aineq,
Vector  bineq,
int  maxIter,
Vector  A0 
) [static]

This routine calls a dual method for solving strictly convex quadratic programs of the form:

min f(x) = 0.5x'Gx + d0'x

s.t Aineq x - bineq >= 0 Aeq x - beq = 0

\[ \min f(x) = \frac{1}{2} x^{T} G x + d_{0}^{T} x \]

such that

\[ A_{eq}^{T}x - b_{eq} = 0 \]

\[ A_{ineq}^{T}x - b_{ineq} \geq 0 \]

where:

  • $x$ is a column vector of length $n$
  • $d_{0}$ is a column vector of length $n$
  • $G$ is a $n \times n$ positive definite matrix
  • $A_{eq}^{T}$ is a $q \times n$ matrix where each row defines an equality constraint
  • $A_{ineq}^{T}$ is a $p \times n$ matrix where each row defines an inequality constraint
  • $b_{eq}$ is a column vector of length $q$
  • $b_{ineq}$ is a column vector of length $p$

This method is based on Goldfarb [1]. In addition a set of active constraints $A_{0}$ calculated from an initial guess can be passed into the algorithm.

[1] D. Goldfarb and A. Idnani A numerically stable dual method for solving strictly convex quadratic problems, Mathematical Programming 27, 1983, 1-33.

Parameters:
[in] G Hessian of QP
[in] d0 Vector of QP
[in] Aeq Equality constraint matrix
[in] beq Equality constraint vector
[in] Aineq Inequality constraint matrix
[in] bineq Inequality constraint vector
[in] maxIter Max iterations
[in] A0 Initial active set guess
Returns:
Out.x Solution of QP
Out.f Cost at solution
Out.iter Number of iterations
Out.u Lagrange Multipliers
Out.A List of active constraints
Out.C History of active constraints
Author:
David Kao

Generated on Wed Apr 21 22:01:41 2010 for kao-math by  doxygen 1.6.1