When I run solve.QP on my problem, I get the following error from R:
Error in solve.QP(sigma, rep(0, 5), t(Amat), bvec, meq = 2) :
matrix D in quadratic function is not positive definite!
My sigma matrix is symmetric, but not positive definite. Why is this necessary? If I solve it myself using the Lagrange functions, I can get a solution. Then why does R impose this requirement?
source
share