forum.alglib.net

ALGLIB forum
It is currently Sun Nov 10, 2024 8:03 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: Select Parameters to Optimize
PostPosted: Fri Jan 12, 2024 9:37 pm 
Offline

Joined: Fri Jan 12, 2024 9:35 pm
Posts: 1
I have a function of "n" variables for optimization. However, in some cases I only want to optimize certain variables and leave the others at fixed values. For my other work i carry a Boolean array indicating which variable to optimize. I'm new to Alglib. Is there a way to do this here?


Top
 Profile  
 
 Post subject: Re: Select Parameters to Optimize
PostPosted: Sun Jan 14, 2024 11:34 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 925
Hi!

You can use a box constrained optimizer from ALGLIB and fix that variables by specifying BndL=BndU for them.

Another option is to modify your function in such a way that it does not depend on these specific parameters, e.g. reads them from a fixed values list. In this case you may get away with unconstrained optimizers like LBFGS, they converge somewhat better.

Sergei


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: Bing [Bot] and 1 guest


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