[Ipopt] Huge number of variables problem
Stefan Vigerske
stefan at math.hu-berlin.de
Sun Apr 28 22:36:53 EDT 2019
Hi,
loops are ok, as long as you use them efficiently.
You can run Ipopt with option print_timing_statistics set to yes to get
more information about where time is spend.
Stefan
On 4/28/19 8:15 PM, To To wrote:
> Dear all,
>
> I'm using IPOPT 3.12.12 with the provided C++ interface under Ubuntu 18.04.
> I formulated a relatively simple NLP and it works.
>
> I am totally new to C++, so I form my constraint and jacobian all with for
> loop. May I ask is it the best way to formulate constraints and jacobian
> using for loop? I tired to increase the number of NLP variables to around
> 300000, and I have around 200000 constraints (very sparse). I found that it
> is very slow when computing.
>
> Should I be careful when forming such a big problem with provided C++
> interface? Or should I use some other libraries such as EIGEN to better
> form the jacobian?
>
> Thank you very much.
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/ipopt
>
More information about the Ipopt
mailing list