Git Product home page Git Product logo

Comments (4)

goulart-paul avatar goulart-paul commented on August 17, 2024 1

The reason is that the adaptive_rho feature is configured by default to update rho and refactor the linear system in the solver based on the relative time taken between the factor phase and the iteration phase of the solver. The factorisation code is deterministic, but the execution time can vary b/c it is competing for CPU resources with other things on the machine.

If you want completely repeatable behaviour, I would suggest configuring the solver the update rho instead after a fixed number of iterations (maybe try 50-100 to start).

from osqp-r.

MetoriGit avatar MetoriGit commented on August 17, 2024

Hi Paul,

Many thanks Paul for your quick and comprehensive answer!
It works fine on my side. But just to be sure, can you confirm that I only need to add in osqpSettings:
adaptive_rho_interval = 100

Kind regards,

Philippe Carpentier

from osqp-r.

goulart-paul avatar goulart-paul commented on August 17, 2024

I think that should work, yes. Reopen the issue if not though.

from osqp-r.

MetoriGit avatar MetoriGit commented on August 17, 2024

Once more, many thanks Paul,

Philippe Carpentier

from osqp-r.

Related Issues (18)

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.