Comments (2)
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.
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)
- Segmentation Fault on Python Example HOT 4
- integer variable HOT 1
- if I want to use daqp to solve integer qp, must I transfer integer variable into binary variable? HOT 1
- Cvxpy interface help/suggestions HOT 3
- are Python 3.12 wheels possible ? HOT 1
- Use DAQP with inequalities constraints and an equality constraint HOT 5
- Update example in documentation to be more informative HOT 1
- Add const
- Add function to add "exact regularization" for MIQPs
- Add example in documentation about how to warm/hot-start in C
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 daqp.