Giter Site home page Giter Site logo

stephane-caron / lpsolvers Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 3.0 6.25 MB

Linear programming solvers in Python with a unified API

License: GNU Lesser General Public License v3.0

Python 100.00%
linear-programming numerical-optimization python solver

lpsolvers's People

Contributors

stephane-caron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lpsolvers's Issues

Doesn't install via pip or pip3

$ pip install lpsolvers
Collecting lpsolvers
Using cached https://files.pythonhosted.org/packages/6d/88/7134bcbf55e06b80d3a147b55760e0467d46f30bb66786c67ab1fe79f3ca/lpsolvers-0.8.8.tar.gz
Collecting cvxopt (from lpsolvers)
Using cached https://files.pythonhosted.org/packages/b8/d7/14dee48a26af514e03d2f00347b2b79e5ae558dc8497e5f64cfa847a988f/cvxopt-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pycddlib (from lpsolvers)
Using cached https://files.pythonhosted.org/packages/1c/e7/ba71780e10fd9787cd7f1e05ce81859433b5c8e9abb135b4039202878ac1/pycddlib-2.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-42YLj7/pycddlib/setup.py", line 49, in
from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-42YLj7/pycddlib/

Error in Readme (command seems to solve minimization not maximization)

I think the command solve_lp(c,G,h) solves the program

min c.T x : Gx <= h

(not max) as against what is currently mentioned in the documentation.

Check by running the following program (attaching the polytope for reference)
Attaching ref to cvxopt cone solver page (http://cvxopt.org/userguide/coneprog.html#linear-cone-programs)

c = array([1,1.])
G = array([[0, -1.],[-1., 0],[1,2],[2,1]])
h = array([0.,0,3,3])
print(solve_lp(c,G,h))

c = array([-1,-1.])
G = array([[0, -1.],[-1., 0],[1,2],[2,1]])
h = array([0.,0,3,3])
print(solve_lp(c,G,h))

image

Discrepancy in ReadME

Under "Usage" section it should read

solve_Lp(c, G,h A, b)

instead of

solve_Lp(c, G,h A, b)

Version of lpsolve() on which 'lpsolvers' is based ?

Hi,
Thank you for making this port available.
I saw no mention of and would be interested in knowing:

  • the version of lpsolve() en la que se basa `lpsolvers' ? Is it v5.5.2.5 ?
  • the latest Python version with which your package is compatible ? (if relevant)

Thank you.

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.