Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time-to-first-solve (TTFS) #186

Open
frapac opened this issue Jul 2, 2022 · 2 comments
Open

Time-to-first-solve (TTFS) #186

frapac opened this issue Jul 2, 2022 · 2 comments

Comments

@frapac
Copy link
Collaborator

frapac commented Jul 2, 2022

Now that the StridedOneVector PR #174 has been merged, we can focus on the time to first solve.

Using the following script:

using MadNLP
using MadNLPTests

nlp = MadNLPTests.HS15Model()
ips = MadNLP.InteriorPointSolver(nlp)
@time MadNLP.optimize!(ips)

MadNLP takes for the first solve:

Total wall-clock secs in solver (w/o fun. eval./lin. alg.)  =  8.082
Total wall-clock secs in linear solver                      =  0.590
Total wall-clock secs in NLP function evaluations           =  0.037
Total wall-clock secs                                       =  8.709

EXIT: Optimal Solution Found.
  8.147811 seconds (24.28 M allocations: 1.187 GiB, 6.16% gc time, 99.93% compilation time)

It would be ideal if we can decrease that time to improve the user experience.

@sshin23
Copy link
Member

sshin23 commented Jul 5, 2022

would be interesting to add benchmark code

@sshin23
Copy link
Member

sshin23 commented Jun 12, 2023

@frapac Now that we support v1.9, might be good to revisit this and create a precompilation function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants