"casadi::Function solver = casadi::nlpsol("solver", "ipopt", nlp);" Does someone figure out that this line of code cosume too much time? #826
Wang-Peng-debug
started this conversation in
General
Replies: 1 comment 1 reply
-
|
That's the time taken by CasADi's symbolic graph construction, you might rather check their doc or wiki. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Take a look at the first pic! The line of code "casadi::Function solver = casadi::nlpsol("solver", "ipopt", nlp)" consumes 33.418 ms, which nearly gets close to the time of solving the actual optimized problem (See the 2nd pic, it costs only 42 ms, which corresponds to the code "casadi::DMDict res = solver(arg)" ). This made me confused, and I don't think there is ought to cost so much time on the code as the title shows, and are there any approaches to get it decreased?
Beta Was this translation helpful? Give feedback.
All reactions