I am trying to minimize a function like the following:
a*x^4+b*y
and constraints like:
x^2 <= a
To input “x^2” in the objective function I can do the following:
qp.set_d(X, X, 2);
but what about “x^4” ?
To add a constraint like “x<=a”:
hp.set_a(X, 0, 1);
hp.set_b(0, a);
but what about “x^2 <= a” ?
The solution to solve this
kind of problems is to modify the objective function and constraints, in this case by setting z^2 = z.