roboptim / roboptim-core

RobOptim Core Layer: interface and basic mathematical tools
http://www.roboptim.net
GNU Lesser General Public License v3.0
64 stars 35 forks source link

Quadratic function: follow the herd? #86

Open bchretien opened 9 years ago

bchretien commented 9 years ago

QP solvers usually describe quadratic functions as:

f(x) = 0.5 x^T H x + x^T g + λ

but in RobOptim, GenericNumericQuadraticFunction considers:

f(x) = x^T A x + x^T b + c

Thus, we have H = 2 A, which may be a source of error for users used to traditional QP solvers.