Giter Club home page Giter Club logo

nasoq-benchmarks's Introduction

nasoq_benchmarks

The latest evaluation across problems of the SMP repository for different solvers in our benchmark: image

Building benchmark

OSQP and NASOQ are already in the repository however, you need to get the license for other tools, i.e., Gurobi, Mosek, and QL.

Requirements

  • NASOQ needs MKL Pardiso and METIS. CMake downloads the code from NASOQ repository.
  • OSQP needs MKL library for fast solve time. CMake downloads the source from OSQP repository.
  • MOSEK : Put the MOSEK license in
export MOSEKROOT=path/to/mosek/8/tools/platform/linux64x86/
  • Gurobi: Put the Gurobi license in the home directory and export the path that gurobi is installed, for example:
export GUROBIROOT=/opt/gurobi811/linux64/

Build

First clone the repo and do not forget -recursive option:

git clone --recursive https://github.com/sympiler/nasoq-benchmarks

Before building the benchmark, you need to know the path to METIS and MKL library (CMake can find MKL if it is installed in the default location or is in the path). For MKL you need to set MKLROOT and for METIS you need to set METIS_ROOT_PATH. Following shows how these variables are set using cmake flags.

mkdir build
cd build
cmake -DMKL_ROOT_PATH=path/to/intel -DMETIS_ROOT_PATH=path/to/metis-5.1.0/build/Linux-x86_64/ -DCMAKE_BUILD_TYPE=Release ..
make

Running the benchmark

You first need to download the dataset and then run the all compiled solvers.

Downloading the dataset

wget https://www.dropbox.com/s/hxhelt273ajh00w/SMP_Repository_SIGGRAPH20.tgz?dl=0 

Running solvers

A script is provided that run all tools for specified dataset. To use the script emit the following command:

bash run_all path/to/dataset/ path/to/build/directory/

The script finds all sparse QP problems stored in yml and run all solvers for each of them for three different ranges of accuracy, i.e., 1e-3, 1e-6, and 1e-9.

Adding a solver

Check here for instructions.

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.