forum.alglib.net

ALGLIB forum
It is currently Tue Nov 26, 2024 8:42 am

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.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Levenberg Marquardt Optimization with minimum step
PostPosted: Wed May 29, 2013 8:49 am 
Offline

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
 Profile  
 
 Post subject: Re: Levenberg Marquardt Optimization with minimum step
PostPosted: Wed May 29, 2013 9:39 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group