Connecting Tech Pros Worldwide Help | Site Map

ALGLIB Levenberg-Marquardt algorithm for multivariate optimization

  #1  
Old February 3rd, 2009, 07:06 PM
Newbie
 
Join Date: Feb 2008
Posts: 26
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
  #2  
Old February 3rd, 2009, 07:07 PM
Newbie
 
Join Date: Feb 2008
Posts: 26

re: ALGLIB Levenberg-Marquardt algorithm for multivariate optimization


http://www.alglib.net/optimization/l...gmarquardt.php
  #3  
Old February 4th, 2009, 11:42 AM
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,634
Provided Answers: 2

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