Hi Gael,
I completely agree with Johan, if you find adding the constraint below complicated then use YALMIP. It will do all the hard work for you!
YALMIP is free and open-source, find it online.
Jonathan
--
You received this message because you are subscribed to the Google Groups "OPTI Toolbox Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opti-toolbox-fo...@googlegroups.com.
To post to this group, send email to opti-tool...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to opti-toolbox-forum+unsub...@googlegroups.com.
x = sdpvar(n,1);
Objective = max(H*x);
Constraints = [some constraints since the problem is unbounded otherwise]
solvesdp(Constraints,Objective)
Are you saying you want to maximize a function involving convex quadratic function? I hope you are aware that it is a very very hard problem.
The sqrt operator in YALMIP is limited to scenarios where it can be implemented using an SOCP representation. Since you have nonconvex stuff, you don't have any solver which can mix the SOCP cone and nonconvex stuff. This is easily fixed though by using the sqrtm operator instead. With this, you allow YALMIP to model it directly as the square root (i.e., a callback in the solver) and thus simply use a nonlinear solver. No guarantees that you will find any solution though as it is a nonconvex problem (you could always thy the global solver bmibnb if the problem is small enough)
BTW, you are welcome over to the YALMIP google groups instead for further discussion (not to pollute OPTI support forum with YALMIP issues)
On Friday, September 5, 2014 4:12:13 PM UTC+2, Gael wrote:
Ok, I succed in using YALMIP to redo my QP problems, and I'm trying the make the new one (minimizing max(H*x) and max( sqrt( (E1a*x+E2a*x)^2+(E1b*x+E2b*x)^2+(E1c*x+E2c*x)^2 ) )) working. Still not working, but I will read more and try to find some solution :)
Thank you for your help!
On Wednesday, September 3, 2014 12:22:37 PM UTC+2, Johan Löfberg wrote: