Connecting Tech Pros Worldwide Help | Site Map

ALGLIB Levenberg-Marquardt algorithm for multivariate optimization

Newbie
 
Join Date: Feb 2008
Posts: 26
#1: Feb 3 '09
Has anyone used this? I'm trying to convert the C# version to VB.net and i'm kinda clueless on how code this section:

Quote:
/*
This members must be defined by you:
static void funcvecjac(ref double[] x,
ref double[] fvec,
ref double[,] fjac,
ref int iflag)
*/
Functions in vb.net return a value to a variable. There is no return field on the declaration line and it's used as a sub in the following code. I'm not sure what i'm supposed to do with this part of the code.

TIA
Newbie
 
Join Date: Feb 2008
Posts: 26
#2: Feb 3 '09

re: ALGLIB Levenberg-Marquardt algorithm for multivariate optimization


http://www.alglib.net/optimization/l...gmarquardt.php
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#3: Feb 4 '09

re: ALGLIB Levenberg-Marquardt algorithm for multivariate optimization


Quote:

Originally Posted by newbtemple View Post

Functions in vb.net return a value to a variable. There is no return field on the declaration line and it's used as a sub in the following code. I'm not sure what i'm supposed to do with this part of the code.

Your question is not about the Levenberg-Marquardt algorithm but about passing parameters either by value or by reference. A void method in C# or Java is equivalent to ignoring any return value in vb.net. If I remember well vb has the ByRef and ByVal modifiers for parameters. Check your manual.

kind regards,

Jos
Reply


Similar Algorithms / Advanced Math bytes