stephane-caron / lpsolvers Goto Github PK
View Code? Open in Web Editor NEWLinear programming solvers in Python with a unified API
License: GNU Lesser General Public License v3.0
Linear programming solvers in Python with a unified API
License: GNU Lesser General Public License v3.0
$ 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/
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))
Under "Usage" section it should read
solve_Lp(c, G,h A, b)
instead of
solve_Lp(c, G,h A, b)
Hi,
Thank you for making this port available.
I saw no mention of and would be interested in knowing:
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.