Metadata-Version: 1.1
Name: lpsolvers
Version: 0.8.6
Summary: Wrapper for Linear Programming solvers with a unified API
Home-page: https://github.com/stephane-caron/lpsolvers
Author: Stéphane Caron
Author-email: stephane.caron@normalesup.org
License: LGPL
Description: This module provides a single function ``solve_lp(c, G, h, A, b, solver=X)``
        with a *solver* keyword argument to select the backend solver. The linear
        program it solves is, in standard form:
        
        .. code-block::
        
            max  c^T x
            s.t. G x <= h
                 A x == b
        
        where vector inequalities are taken coordinate by coordinate.
        
        Solvers
        -------
        
        The list of supported solvers currently includes:
        
        - `CVXOPT <http://cvxopt.org/>`_
        - `cdd <https://github.com/mcmtroffaes/pycddlib>`_
        
        Example
        -------
        
        To solve a linear program, simply build the matrices that define it and call
        the ``solve_lp`` function:
        
        .. code:: python
        
            from numpy import array
            from lpsolvers import solve_lp
        
            c = array([1., 2., 3.])
            G = array([[1., 2., -1.], [2., 0., 1.], [1., 2., 1.], [-1., -1., -1.]])
            h = array([4., 1., 3., 2.])
        
            print "LP solution:", solve_lp(c, G, h)
        
        This example outputs the solution ``[2.2 -0.8 -3.4]``.
        
Keywords: lp,linear programming,solver
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
