I am working on some science project and I need the C language implementation of Generalized Reduced Gradient algorithm for non-linear optimization. Is there any library or just a piece of code for that? Or, please suggest any other solution for non-linear multivariable problems. I am looking to build an optimization model using 4 independent variables and 2 constants: the model is nonlinear.
I have checked with Microsoft Excel’s Solver using generalized reduced gradient (GRG) is solving this model perfectly, but I need this in the C language for my simulations.
Here is my excel solution:
http://speedy.sh/SEdZj/eof-cs-rest.xlsm
I have used Microsoft Excel Solver with GRG algorithm to search for a minimum value of SS and the output are values of Const_a and Const_b.
CONOPT as distributed by GAMS seems an established implementation of GRG, but is not free (although demo may be sufficient for you).
Alglib has an implementation of non-linear Levenberg-Marquardt algorithm here and is GPL / commercial licensed.
Sample code using alglib below:
This gives sample output: