Giter Site home page Giter Site logo

luclaurent / osqp_benchmarks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from osqp/osqp_benchmarks

0.0 2.0 0.0 71.67 MB

QP Benchmarks for the OSQP Solver against GUROBI, MOSEK, ECOS and qpOASES

Home Page: https://osqp.org

License: Apache License 2.0

Python 98.00% MATLAB 2.00%

osqp_benchmarks's Introduction

Benchmark examples for the OSQP solver

These are the scripts to compare the following Quadratic Program (QP) solvers

  • OSQP
  • GUROBI
  • MOSEK
  • ECOS (through CVXPY)
  • qpOASES

The detailed description of these tests is available in this paper. To run these scripts you need pandas and cvxpy installed.

Benchmark problems

The problems are all randomly generated as described in the OSQP paper. They produce a benchmark library of 1400 problems with nonzeros ranging from 100 to 10'000'000. Problem instances include

  • Random QP
  • Equality constrained QP
  • Portfolio
  • Lasso
  • Huber fitting
  • Constrained optimal control

We generate the problems using the scripts in the problem_classes folder.

To execute these tests run

python run_benchmark_problems.py

Results

The resulting performance profiles are performance_profiles_benchmark

Maros Meszaros problems

These are the hard problems from the Maros Meszaros testset converted using CUTEst and the scripts in the maros_meszaros_data/ folder. In these benchmarks we compare OSQP with GUROBI and MOSEK.

To execute these tests run

python run_maros_meszaros_problems.py

Results

The resulting performance profiles are performance_profiles_maros

Parametric problems

These tests apply only to the OSQP solver with and without warm-starting for three parametric examples of

  • Portfolio
  • Lasso
  • Constrained optimal control (MPC)

The problem construction is the same as for the same categories in the Benchmark Problems.

To execute these tests run

python run_parametric_problems.py

Citing

If you are using these benchmarks for your work, please cite the OSQP paper.

osqp_benchmarks's People

Contributors

bstellato avatar goulart-paul avatar

Watchers

 avatar  avatar

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.