Re: [R] Quadratic Programming

From: Berwin A Turlach <>
Date: Sat, 16 Feb 2008 15:21:52 +0800

G'day Jorge,

On Fri, 15 Feb 2008 17:51:16 -0500
"Jorge Aseff" <> wrote:

> I am using solve.QP (from quadprog) to solve a standard quadratic
> programming problem: min_w -0.5*w'Qw st ... I would like solve.QP to
> do two things: 1) to start the optimization from a user-supplied
> initial condition; i.e., from a vector w_0 that satisfies the
> constraints,

Not possible. solve.QP is based on the Goldfarb-Idnani algorithm which first calculates the unconstrained solution of the problem and then checks for violated constraints; if such exist, then they are iteratively enforced until all constraints are satisfied.

If you want to specify starting values (or have warm starts), then you would need to use other kind of algorithms.

> and 2) to return the values of the lagrange multiplieres
> associated with the constraints.


Hope this helps.

Best wishes,

        Berrwin mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat 16 Feb 2008 - 07:25:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 16 Feb 2008 - 07:30:14 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive