There are two different definitions of nleqstate, one in namespace alglib_impl, and another in namespace alglib. nleqcreatelm uses first definition, while nleqsolve uses second definition. Per documentation, 1. User initializes algorithm state with NLEQCreateLM() call 2. User tunes solver parameters with NLEQSetCond(), NLEQSetStpMax() and other functions 3. User calls NLEQSolve() function which takes algorithm state and pointers (delegates, etc.) to callback functions which calculate merit function value and Jacobian.
How, algorithm state can be passed from nleqcreatelm to nleqsolve, when they use different state structures?
|