GithubHelp home page GithubHelp logo

Warmstart about daqp HOT 2 CLOSED

julianwanner avatar julianwanner commented on June 14, 2024
Warmstart

from daqp.

Comments (2)

darnstrom avatar darnstrom commented on June 14, 2024

First of all, thank you for catching the typo in the documentation!

As for the warm start, the current way of doing it is, as you mention, by using update_ldp() followed daqp_solve(). How much work from previous solves can be saved depend on which problem data is updated. If the Hessian H and/or the normals of the constraints A change, the internal LDL factorization will have to be redone from scratch. Such a refacatorization is, however, not necessary if only the linear term in the objective function f and/or the constraint term in the constraints b changes.

If your problem falls in to the former case of changing H and/or A you either have to call
activate_constraints() after update_ldp() if you want to warm start from the previous active set, or call deactivate_constraints() if you want to cold start (this is not necessary if only f and/or b change, i.e., update_ldp() followed by daqp_solve() is sufficient in that case).

I have used the solver mostly in cases where only f and/or b need to be updated. Hence, the warm-starting procedure when H and/or A change is a bit more crude, but is, nevertheless, possible by running update_ldp() followed by activate_constraints() and daqp_solve() as mentioned above.

from daqp.

julianwanner avatar julianwanner commented on June 14, 2024

Thanks for clearing that up. My problem unfortunaltely falls into the first category, i.e. H and A change. So the LDL factorization will have to be redone. Nevertheless, this solver outperforms the other solvers I tried.

from daqp.

Related Issues (11)

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.