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

About Optimazition: How to pass datas to the object function
http://forum.alglib.net/viewtopic.php?f=2&t=334
Page 1 of 1

Author:  frainbbs [ Thu Apr 07, 2011 1:27 pm ]
Post subject:  About Optimazition: How to pass datas to the object function

void function1_grad(const real_1d_array &x, double &func, real_1d_array &grad, void *ptr)

the x is the variable,and I??????????????????????????????????????????function1_grad??????????????????????????????????????????????????????

Author:  Sergey.Bochkanov [ Fri Apr 08, 2011 4:16 am ]
Post subject:  Re: About Optimazition: How to pass datas to the object func

You can convert any pointer to void* (and vice versa).

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