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

alglib::minlmoptimize C++ and function pointer
http://forum.alglib.net/viewtopic.php?f=2&t=884
Page 1 of 1

Author:  devGirl [ Mon Jul 15, 2013 11:35 am ]
Post subject:  alglib::minlmoptimize C++ and function pointer

Hi,

I'm trying to use "alglib::minlmoptimize" in C++ (optimization with boundary constraints)
like in this link: http://www.alglib.net/translator/man/manual.cpp.html#example_minlm_d_vb

In my case, the function "function1_fvec" called in
alglib::minlmoptimize(state, function1_fvec); is in a class. I try to create a function pointer in order to call this function but i find a problem:

error C2665: 'alglib::minlmoptimize' : none of the 5 overloads could convert all the argument types

How can i do that?

Thanks!

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