forum.alglib.net
http://forum.alglib.net/

Levenberg Marquardt - extracting data from state
http://forum.alglib.net/viewtopic.php?f=2&t=1082
Page 1 of 1

Author:  mrmojo [ Fri Dec 06, 2013 1:53 pm ]
Post subject:  Levenberg Marquardt - extracting data from state

Hello,

i am using the Levenberg-Marquardt algorithm for parallel optimization with different startvalues.
To determine the best solution i have to acces the data stored in state.fi
I don't know how to access it.

printf("%s @ %d\n", state.fi.tostring(2).c_str(),ID);

it gives me the data as string. e.g [x1,x2,x3, ..., xn].

But i want to store the data as double.

double result = state.fi[i] is not working.

please help me

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/