which solver I can use to solve a non linear problem with 36000 variables and 24000 constraints?

1 view (last 30 days)
I should solve a problem with multiple variables ( about 36000, due to the use of 4 different indices) and 24000 constraints (equalities and inequalities,only few are non-linear constraints).I adopted fmincon solver but it goes to overflow. Is there any fitting solver for my problem?

Accepted Answer

Matt J
Matt J on 21 Apr 2015
Edited: Matt J on 21 Apr 2015
If you have nonlinear constraints, then fmincon is what you should use. To deal with the large size of the problem, you should be using sparse matrices for your linear equality and inequality constraints. You should also use GradObj and GradConstr options to provide your own analytical gradient calculations. Same thing with any Hessian calculations that the algorithm requires. The default finite difference derivative calculations will be very time consuming in light of the number of variables that you have.
  4 Comments
GAETANO CIANCITTO
GAETANO CIANCITTO on 23 Apr 2015
fmincon requires undefined time; 1-can Ga solver fit better? 2-is Ga solver in the optimtool enough or Do I need an external solver (Ga toolbox )? thank you in advance
Matt J
Matt J on 23 Apr 2015
Edited: Matt J on 23 Apr 2015
ga is in the Global Optimization Toolbox. All algorithms require undefined time, but all have options to let you cap the number of iterations or control other stopping criteria.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!