Description Usage Arguments Value Author(s) References See Also Examples
This routine implements the second order cone programming method from Kim-Chuan Toh , Michael J. Todd, and Reha H. Tutuncu for solving quadratic programming problems of the form min(-d^T b + 1/2 b^T D b) with the constraints A^T b >= b_0.
1 | solve_QP_SOCP(Dmat, dvec, Amat, bvec)
|
Dmat |
matrix appearing in the quadratic function to be minimized. |
dvec |
vector appearing in the quadratic function to be minimized. |
Amat |
matrix defining the constraints under which we want to minimize the quadratic function. |
bvec |
vector holding the values of b_0 (defaults to zero). |
a list with the following components:
solution |
vector containing the solution of the quadratic programming problem. |
Hanwen Huang: hanwenh@email.unc.edu; Perry Haaland: Perry_Haaland@bd.com; Xiaosun Lu: Xiaosun_Lu@bd.com; Frances Tong: Frances_Tong@bd.com; Elaine McVey: Elaine_McVey@bd.com; Yufeng Liu: yfliu@email.unc.edu; J. S. Marron: marron@email.unc.edu
Kim-Chuan Toh , Michael J. Todd, and Reha H. Tutuncu
SDPT3 version 4.0 – a MATLAB software for semidefinite-quadratic-linear
programming
http://www.math.nus.edu.sg/~mattohkc/sdpt3.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ##
## Assume we want to minimize: -(0 5 0) %*% b + 1/2 b^T b
## under the constraints: A^T b >= b0
## with b0 = (-8,2,0)^T
## and (-4 2 0)
## A = (-3 1 -2)
## ( 0 0 1)
## we can use solve.QP as follows:
##
Dmat <- matrix(0,3,3)
diag(Dmat) <- 1
dvec <- c(0,5,0)
Amat <- matrix(c(-4,-3,0,2,1,0,0,-2,1),3,3)
bvec <- c(-8,2,0)
solve_QP_SOCP(Dmat,dvec,Amat,bvec=bvec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.