Git Product home page Git Product logo

Comments (6)

roversch avatar roversch commented on August 18, 2024

Next suspects for improvement are the many d_free and d_zeros calls in ocp_qp_qpoases_condensing. Rewrite after condensing interface is completed.

from acados.

dkouzoup avatar dkouzoup commented on August 18, 2024

Hey Robin. I would be reluctant to change qpoases without a deeper understanding of the code. Skipping Initialization to zeros might work for some operating systems and/or problem instances but not for others. Perhaps you can ping Joachim about this. Of course all the mallocs from the acados side should be gone once the new interface is in place.

from acados.

roversch avatar roversch commented on August 18, 2024

from acados.

dkouzoup avatar dkouzoup commented on August 18, 2024

Alright! By the way, I suspect that malloc is much slower in mac than in linux. At least on my system. Ps: you can have a shot at Greg's server for the benchmarking.

from acados.

roversch avatar roversch commented on August 18, 2024

The connection with Greg's box is too slow to do that from here. Could someone just try this for me? It's basically

  • commenting out that line,
  • building qpOASES and
  • running chen_nmpc_qpoases_example again and see if it changes anything (put number of repetitions 10000).

If it also occurs on Linux, I will then write to Joachim.

from acados.

roversch avatar roversch commented on August 18, 2024

I can confirm, roughly the same speedup (~25%) can be seen on a Linux box. Note that this probably occurs because NVMAX and NCMAX are their default values (i.e. way bigger than the actual size of the problem). For smaller maximum dimensions, this would probably not occur, as other routines will become relatively more CPU-intensive.

Still, these lines are unnecessary, it seems. I will contact Joachim about this, see what his opinion is.

from acados.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.