Comments (7)
Hello @GiulioRomualdi and @traversaro , I'm back ! Was this addressed at some point ? Can I run the solver with
Eigen::internal::set_malloc_allowed(false)
?
I am doing some profiling on this, and it seems that solveProblem
is malloc-free, but several update***
methods are still using mallocs.
from osqp-eigen.
It also says that it is the only place where they perform memory allocations in the solver.
Like qpOASES, you need to setup
(allocs) and then solve
(no allocs).
So I believe that createOsqpSparseMatrix
would only be called once before the osqp_setup
function, and then all the functions called would be to update the said matrices
from osqp-eigen.
@GiulioRomualdi What do you think about this? I think it is a good idea.
from osqp-eigen.
Hi @ahoarau,
with #5 and 38825e5 (and for the record 7109a22, my bad 😅 ) we have been trying to reduce memory allocation by reusing some buffers. Can you check this out? Comments are welcome 😉
from osqp-eigen.
Hi @ahoarau,
Remove/reduce memory allocation is, of course, a best practice, so I'll try to follow this objectivity. However, some memory allocations cannot be removed. Indeed osqp
itself uses memory allocation.
For example, csc_spalloc()
method allocates memory dynamically.
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
from osqp-eigen.
when I run the example MPCExample.cpp
it has an error: Segmentation fault (core dumped).
Then I debug the program, it shows the error in the following lines.
solver.settings()->setWarmStart(true);
how to solve the issue? Thanks a lot.
from osqp-eigen.
Hello @GiulioRomualdi and @traversaro , I'm back ! Was this addressed at some point ?
Can I run the solver with Eigen::internal::set_malloc_allowed(false)
?
from osqp-eigen.
Related Issues (20)
- ERROR in LDL_factor: Error in KKT matrix LDL factorization when computing the nonzero elements. The problem seems to be non-convex HOT 2
- problems compiling this library HOT 4
- Assert statement in SparseMatrixHelper.tpp HOT 2
- The createOsqpSparseMatrix does not correctly handle empty sparse matrix. HOT 5
- Compile error on Windows with vs2022 and vs2019 when compiling against osqp master branch (future osqp v1) HOT 8
- The possibility to handle huge matrix equation? HOT 4
- Using OSQP-Eigen with OSQP CUDA HOT 2
- have a solution for osqp 0.4.0? HOT 6
- error while loading shared libraries: libosqp.so HOT 3
- undefined reference to `OsqpEigen::Solver::Solver()',undefined reference to `OsqpEigen::Solver::settings() const' HOT 1
- I'm using osqp-eigen v0.7.0, wondering if Hessian Matrix is supporting only symmetric matrix, rather than upper triangular matrix. HOT 2
- Support for solution derivative functions HOT 1
- ..... HOT 1
- trouble building the library HOT 4
- different result in c++ and matlab HOT 3
- Get Unstable Answer When Solve a simple QP using Update Matrix Functions HOT 10
- When calling the setHessianMatrix and updateHessianMatrix functions, the compilation error HOT 4
- auxil.h no such file or directory HOT 4
- macos-latest CI float=ON failing since April 23
- Problems installing osqp-eigen HOT 29
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osqp-eigen.