matlab's lsqnonlin to c#
Posted: November 23rd, 2007, 8:49 am
Hi;This could be a longshot but..I have exhausted all options available to me. Presently have code that generates the heston parameters for stochastic vol in matlab, calibrated from market data. I need to port it over to c#.quadl has been ported over to c#..works fine. Presently where i'm at, the library is in c#.lsqnonlin is a non linear least squares with bounded constraints algo.The closest i have found is http://www.alglib.net/optimization/lbfgs.php. it works but the output is erroneous as per supplied documentation. could anyone point me in the right direction besides lbfgs i.e. implementation of lsqnonlin in c#? i've been stuck for quite some time.alternatively, anyone has there references?Don't have access to the journals with these pdf's.[1] Coleman, T.F. and Y. Li, "An Interior, Trust Region Approach for Nonlinear Minimization Subject to Bounds," SIAM Journal on Optimization, Vol. 6, pp. 418445, 1996.[2] Coleman, T.F. and Y. Li, "On the Convergence of Reflective Newton Methods for Large-Scale Nonlinear Minimization Subject to Bounds," Mathematical Programming, Vol. 67, Number 2, pp. 189-224, 1994.[4] Levenberg, K., "A Method for the Solution of Certain Problems in Least-Squares," Quarterly Applied Math. 2, pp. 164168, 1944.[5] Marquardt, D., "An Algorithm for Least-Squares Estimation of Nonlinear Parameters," SIAM Journal Applied Math., Vol. 11, pp. 431441, 1963.thanks in advance.