forum.alglib.net

ALGLIB forum
It is currently Sat Dec 21, 2024 5:56 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  [ 4 posts ] 
Author Message
 Post subject: Sparse SQP Solver
PostPosted: Fri Oct 11, 2024 6:50 am 
Offline

Joined: Tue Apr 30, 2024 11:08 am
Posts: 6
Hi,

The documentation says (https://www.alglib.net/nonlinear-programming/sequential-quadratic-programming.php):

Quote:
A sparse version scalable to problems with tens of thousands of variables and sparse constraints


Is there a way of actually specifying the Linear Constraints in a sparse form? In my problem, each constraint only involves a handful of variables, which makes the matrix C very sparse, sometimes leading to memory issues.

Best
Matevž


Top
 Profile  
 
 Post subject: Re: Sparse SQP Solver
PostPosted: Sun Oct 13, 2024 2:23 pm 
Offline
Site Admin

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

Actually, this feature was recently added. However, I just checked online docs, it turns out that an old version was uploaded to the website :((( really sorry for the mistake, need to refactor release workflow.

What you need is provided by two sets of functions: minnlcsetlc2() that provides "set" semantics (complete rewrite of current constraints) and minnlcaddlc2...() that allows to add a constraint to the current list. The latter can sometimes be more convenient.

Sergey


Top
 Profile  
 
 Post subject: Re: Sparse SQP Solver
PostPosted: Mon Oct 14, 2024 7:51 am 
Offline

Joined: Tue Apr 30, 2024 11:08 am
Posts: 6
That's awesome news.
As I see, you have already included this in ALGLIB version 4.02?


Top
 Profile  
 
 Post subject: Re: Sparse SQP Solver
PostPosted: Mon Oct 14, 2024 8:56 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
Exactly!

ALGLIB nonlinear programming already became much better this year, and we plan to improve it ever more. 4.04, which is planned for December, will definitely see a model-based derivative-free nonlinear programming solver. There is also a good chance that a nonlinear interior point method will be included, on many problems it has less overhead than SQP (although personally I dislike its inability to do warm start). And finally it is planned to introduce sparsity to the conic programming solver.


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

All times are UTC


Who is online

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