forum.alglib.net

ALGLIB forum
It is currently Sat Apr 27, 2024 12:19 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.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How can I define the constrant bound of CG optimizer?
PostPosted: Mon Feb 14, 2011 8:16 am 
Offline

Joined: Mon Feb 14, 2011 8:09 am
Posts: 5
Hi everybody,
I'm using Conjugate Gradient Method to optimize an real 1d array x,
each element of x corresponds to a position of an image,
so...they should be larger than 0 and smaller than width/height of the image.
How can I encode these constraints to my optimizer?
Thx pretty much~


Top
 Profile  
 
 Post subject: Re: How can I define the constrant bound of CG optimizer?
PostPosted: Mon Feb 14, 2011 12:31 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 906
If you have boundary constraints only, you can use minasa subpackage, which supports optimization with constraints like a<=x<=b. Internally it uses nonlinear CG.


Top
 Profile  
 
 Post subject: Re: How can I define the constrant bound of CG optimizer?
PostPosted: Tue Feb 15, 2011 5:24 am 
Offline

Joined: Mon Feb 14, 2011 8:09 am
Posts: 5
Sergey.Bochkanov wrote:
If you have boundary constraints only, you can use minasa subpackage, which supports optimization with constraints like a<=x<=b. Internally it uses nonlinear CG.

Thx. It works :-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 251 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