forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 8:39 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: MinASA Algorithm with a constraint on State.X for Delphi
PostPosted: Sun Jan 03, 2016 2:07 am 
Offline

Joined: Sun Jan 03, 2016 1:55 am
Posts: 2
Hi All,

I'm looking to implement the MinASA algorithm in Delphi, but I need to add a constraint to the sum of the vector: State.X.

I understand that this is implemented in the BLEIC algorithm available in the commercial version, but from what I can tell the commercial version isn't yet available for Delphi.

Does anyone know if there's a workaround for Delphi users?

I have tried incorporating a penalty function within the objective function, but whilst this gives reasonable results in most cases this approach misses a few of the optimal solutions.

Any assistance would be greatly appreciated.


Top
 Profile  
 
 Post subject: Re: MinASA Algorithm with a constraint on State.X for Delphi
PostPosted: Mon Jan 04, 2016 8:40 pm 
Offline

Joined: Sun Jan 03, 2016 1:55 am
Posts: 2
Hi All,

For those who are interested, I did find a method that generates reasonable results using minASA:

My solution is to run the algorithm with n-1 parameters and set the last parameter to ensure the constraint on state.X is met. I did add a penalty function to the objective function if the last parameter is out of bounds. When numerically finding the derivative of the function, I ignored the penalty function for each of the n-1 parameters.

I found that the first solution was very good but depended heavily on the initial default weights. To overcome this, after finding a local minimum I then randomly adjusted the solution slightly and repeated the process ... after a while the global minima was found.

It would be good to hear if anyone has used this approach or has found an alternative method.


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 21 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