Giter VIP home page Giter VIP logo

Comments (5)

necozay avatar necozay commented on June 18, 2024

If I recall it right, that order is intentional. There were TuLiP examples for which cvxopt's native LP solver was getting stuck. I don't recall experiencing that with scipy. I think @ajwagen has done some benchmarking before deciding on that order. @ajwagen do you have any comments on how scipy solver compares with native LP solver of cvxopt (speed, reliability, etc.)?

from polytope.

johnyf avatar johnyf commented on June 18, 2024

A possibly relevant issue is: tulip-control/tulip-control#82

from polytope.

johnyf avatar johnyf commented on June 18, 2024

The benchmark results mentioned in #2 (comment) suggest that the Python LP solver of cvxopt is about 5 times slower than cvxopt.glpk.

from polytope.

necozay avatar necozay commented on June 18, 2024

See also #15 .

from polytope.

johnyf avatar johnyf commented on June 18, 2024

As reported for cvxopt.coneprog.conelp (131 sec) in tulip-control/tulip-control#82 (comment), is slower than scipy (94 sec).

Looking at the source of conelp, it appears to depend on a C extension module called blas (e.g., on this line, by importing blas, and via the misc module.

So the default of using scipy appears to be a better choice, unless GLPK is available.

Feedback via email from @ajwagen confirms these findings in the general case. In summary:

  • 1K optimizations with same matrices for each too:
    1. 2 variable case:
    • scipy: 7.856 sec
    • cvxopt without GLPK: 22 sec
    1. 10 variable case:
    • scipy: 43.579 sec
    • cvxopt without GLPK: 35 sec
  • scipy seems numerically more stable than cvxopt without GLPK.
  • scipy solves both examples/continuous.py and examples/pwa.py faster than cvxopt without GLPK (earlier versions of those examples, though their numerics have remained about the same through time).

Given these findings, that scipy is a required dependency, that cvxopt is now easier to install, and that a choice between solvers is available (#17), tthere is no reason to use cvxopt without GLPK.

from polytope.

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.