forum.alglib.net

ALGLIB forum
It is currently Sat Apr 27, 2024 8:52 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: Optimization problem with thousands of variables
PostPosted: Wed Dec 06, 2023 2:44 pm 
Offline

Joined: Sun Feb 06, 2022 6:24 pm
Posts: 11
Hello everyone,

I am trying to solve an optimization problem of a linear equation of the form F(x)=k1/x1+k2/x2+....+kn/xn, where "n" is of the order of 10k.
The problem has about 10k non-linear equality and non-linear disequality constraints.
To solve it I have used minnlc with SQP algorithm in C++, but the solution requires tenth of hours.

Am I using a wrong solver that slows down everything or is this timing normal for the Alglib library? I saw the same problem to be solved in less than one minute, but I don't know which library had been used.


Top
 Profile  
 
 Post subject: Re: Optimization problem with thousands of variables
PostPosted: Thu Dec 07, 2023 4:38 pm 
Offline
Site Admin

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

The reason is that SQP present in ALGLIB 4.0 is a dense BFGS-based SQP, which indeed takes too long on large-scale problems. An upcoming ALGLIB release will feature a large-scale SQP based on a L-BFGS update, which has much better performance. I will send you a development snapshot in a minute!


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