forum.alglib.net

ALGLIB forum
 It is currently Thu Dec 01, 2022 9:02 pm

 All times are UTC

Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

 Page 1 of 1 [ 2 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Levenberg Marquardt Optimization with minimum stepPosted: Wed May 29, 2013 8:49 am

Joined: Tue May 28, 2013 12:42 pm
Posts: 1
Hello everybody,

I have a function z = f(x,y) that I would like to minimize using Levenberg Marquardt optimization.

However, the variables x and y are integers.

Hence, the algorithm is stopped after few iterations because I convert the variables from double to integers when ALGLIB callback the function.

Code:
public static void  function1_fvec(double[] X, double[] fi, object obj)
{
int x;
int y;

x = (int)X[0];
y = (int)X[1];

fi[0] = myOwnFunction(x,y); //x and y parameters are integers
}

f(1000,2000) = f(1000.1,2000.2) = f(1000.2,2000.1) = f(1000.2,2000.2) = ....

The algorithm stops because the function does not change anymore.

I know that there is a constraint for maximum step, but I didn't find one for minimum step.

How can I avoid a step less than 1 ?

Thank you very much for your help,

Kind regards.

Top

 Post subject: Re: Levenberg Marquardt Optimization with minimum stepPosted: Wed May 29, 2013 9:39 am

Joined: Fri May 07, 2010 7:06 am
Posts: 880
There is not easy and correct way of setting minimum step length for LM optimizer. Such modification is (a) very hard to implement, (b) will break convergence properties and stability of the optimizer.

If you want to solve integer optimization problem with LM, you should use something like genetic programming.

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 2 posts ]

 All times are UTC

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for: