Giter Site home page Giter Site logo

caerbannogwhite / sypha Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 15.95 MB

(Extremely) Experimental interior point solver for linear programming instances implemented with CUDA. I'm not currently working on this project but I'm happy to receive feedback and opinions.

Makefile 2.75% Python 16.80% C++ 74.08% C 1.42% Cuda 4.95%
cuda optimization linear-programming operations-research interior-point-method cpp solver

sypha's Introduction

README

Model

Model should be an abstract class to collect the features of a mathematical model. A Model instance should be returned, for instance, when reading an LP file or and SCP file. Possible implementations:

  • ModelLP
  • ModelMILP

Main features:

  • Variables: a list of Variable objects (type, name, objective)
  • Constrains: a list of Constraint objects (row, name, sense, rhs)

Node

A Node object maintains the information to get its sub-model representation (crash procedure) from the original model.

Solver

solver_sparse_merhrotra At each iteration we solve this linear system twice:

      O | A' | I    x    -rc
      --|----|---   -    ---
      A | O  | O  * y  = -rb
      --|----|---   -    ---
      S | O  | X    s    -rxs

A is the model matrix (in standard form), I is the n * n identity matrix, S is the n * n s diagonal matrix, X is the n * n x diagonal matrix. Total number of non-zero elements is A.nnz * 2 + n * 3.

SETTING UP

  • Install gsl library sudo apt-get install libgsl-dev

  • Install boost sudo apt-get install libboost-all-dev

  • Install CUDA for instance, to get cuda 11.0 just run wget http://developer.download.nvidia.com/compute/cuda/11.0.1/local_installers/cuda_11.0.1_450.36.06_linux.run sudo sh cuda_11.0.1_450.36.06_linux.run

(see Nvidia resources...)

sypha's People

Contributors

caerbannogwhite avatar

Stargazers

 avatar

Watchers

 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.