-
Notifications
You must be signed in to change notification settings - Fork 121
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
Dynamic allocations #6
Comments
@GiulioRomualdi What do you think about this? I think it is a good idea. |
Hi @ahoarau,
Furthermore, every time a new optimization problem is initialized the following memory allocations are performed https://github.com/oxfordcontrol/osqp/blob/master/src/osqp.c#L111-L118 |
It also says that it is the only place where they perform memory allocations in the solver. |
when I run the example MPCExample.cpp solver.settings()->setWarmStart(true); how to solve the issue? Thanks a lot. |
Hello @GiulioRomualdi and @traversaro , I'm back ! Was this addressed at some point ? |
I am doing some profiling on this, and it seems that |
I'd like to integrate this library in a Xenomai setup but I'm afraid of dynamic allocations. I see some push_back in the code.
I was wondering If we could take advantage of the
reserve
methods forstd::vector<>
and eigen sparse matrices toa void any memory allocation between solver updates.The text was updated successfully, but these errors were encountered: