Giter Site home page Giter Site logo

sandmaennchen / lcqpow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hallfjonas/lcqpow

0.0 0.0 0.0 2.91 MB

LCQPow - A Solver for Quadratic Programs with Linear Complementarity Constraints

License: GNU Lesser General Public License v2.1

CMake 5.56% C++ 86.60% Shell 0.15% MATLAB 7.68%

lcqpow's Introduction

LCQPow - A Solver for Quadratic Programs with Linear Complementarity Constraints

LCQPow is a open-source solver for Quadratic Programs with Complementarity Constraints. The approach is based on a standard penalty homotopy reformulated using sequential convex programming. The convex sequence derives from linearizing the (necessarily) nonconvex penalty function. This leads to a constant objective Hessian matrix throughout all iterates, and thus enables us to solve the linear complementarity quadratic program with a single factorization of the KKT matrix (by using qpOASES).

The entire strategy is presented in detail in this paper.

Requirements

  • Build process is currently only tested on Ubuntu 20.04
  • CMake version >= 3.20.3
  • All dependencies are linked automatically. These are

GETTING STARTED

  1. Clone the repository, and recursively initialize the submodules
$ git clone https://github.com/hallfjonas/LCQPow.git
$ cd LCQPow
$ git submodule update --init --recursive
  1. Configure and build the project
$ mkdir build
$ cd build
$ cmake ..
$ make
  1. To test the build you can run the test examples
$ bin/examples/warm_up
$ bin/examples/warm_up_sparse
$ bin/examples/warm_up_osqp
$ bin/examples/OptimizeOnCircle

MATLAB Interface

The MATLAB interface is built automatically if matlab is successfully detected by CMake. Make sure that your linker can locate the created libraries, e.g. by exporting the library path in the same shell as the one you call matlab in:

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<LCQPow-dir>/build/lib
$ matlab

where <LCQPow-dir> represents the base directory of your local LCQPow repository.

Whenever using the MATLAB interface make sure that MATLAB is able to locate the interface by executing

addpath("<LCQPow-dir>/build/lib")

Navigate your MATLAB editor to the directory <LCQPow-dir>/interfaces/matlab/examples and play with any of the provided codes.

Type help LCQPow in order to obtain the documentation of our MATLAB interface.

License

The file LICENSE contains a copy of the GNU Lesser General Public License (v2.1). Please read it carefully before using LCQPow!

CONTACT THE AUTHORS

If you have got questions, remarks or comments on LCQPow, it is strongly encouraged to report them by creating a new issue on this github page.

Finally, you may contact the main author directly: Jonas Hall, [email protected]

Also bug reports, source code enhancements or success stories are most welcome!

lcqpow's People

Contributors

hallfjonas avatar sandmaennchen 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.