Provides methods for solving Quadratic Programs (QP). More...
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) |
Provides methods for solving Quadratic Programs (QP).
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
such that
where:
This method is based on Goldfarb [1]. In addition a set of active constraints 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.