semvec/pypi-packages huggingface dataset:
penaltymodel-cache 0.4.5
A local cache for penalty models.
License: Apache 2.0
Requires Python: >=3.6

.. image:: https://img.shields.io/pypi/v/penaltymodel-cache.svg
    :target: https://pypi.org/project/penaltymodel-cache

Penalty Model Cache
===================

.. index-start-marker

A local cache for penalty models. Serves as a factory and cache for penaltymodel.

On install, penaltymodel_cache registers an entry point that can be read by
penaltymodel. By identifying itself as both a cache and a factory, it will
be used automatically by any project that uses penaltymodel's :code:`get_penalty_model`
function. It will also be automatically populated

.. index-end-marker

Installing
----------

.. installation-start-marker

To install:

.. code-block:: bash

    pip install penaltymodel_cache

To build from source:

.. code-block:: bash

    cd penaltymodel_cache
    pip install -r requirements.txt
    pip install -e ../penaltymodel_core/
    python setup.py install

.. installation-end-marker

Cache Location
--------------

If installed inside of a virtual environment, penaltymodel_cache will
store the database in :code:`/path/to/virtualenv/data/app_name`. Otherwise
the cache will be placed in the system's application data directory.

License
-------

Released under the Apache License 2.0. See LICENSE
penaltymodel-lp 0.1.6
Generates penalty models using SciPy's linear programming.
License: Apache 2.0
Requires Python: >=3.6

.. image:: https://img.shields.io/pypi/v/penaltymodel-lp.svg
    :target: https://pypi.org/project/penaltymodel-lp

Penalty Model - Linear Programming
==================================================

.. index-start-marker

Generates penalty models using `scipy.optimize`_'s Linear Programming capability.
Serves as a factory and cache for penaltymodel.

On install, penaltymodel-lp registers an entry point that can be read by
penaltymodel. It will be used automatically by any project that uses penaltymodel's
:code:`get_penalty_model` function.

.. _scipy.optimize: https://docs.scipy.org/doc/scipy/reference/optimize.html

.. index-end-marker

Installation
------------

.. installation-start-marker

To install:

.. code-block:: bash

    pip install penaltymodel-lp

To build from souce:

.. code-block:: bash

    cd penaltymodel_lp
    pip install -r requirements.txt
    python setup.py install

.. installation-end-marker


License
-------

Released under the Apache License 2.0
penaltymodel-maxgap 0.5.6
Generates penalty models using smt solvers.
License: Apache 2.0
Requires Python: >=3.6

.. image:: https://img.shields.io/pypi/v/penaltymodel-maxgap.svg
    :target: https://pypi.org/project/penaltymodel-maxgap

D-Wave Penalty Model Max-gap
============================

.. index-start-marker

Generates penalty models using smt solvers. Serves as a factory and cache for penaltymodel.

On install, penaltymodel_maxgap registers an entry point that can be read by
penaltymodel. It will be used automatically by any project that uses penaltymodel's
:code:`get_penalty_model` function.

.. index-end-marker

Installing
----------

.. installation-start-marker

To install:

.. code-block:: bash

    pip install penaltymodel_maxgap

To build from source:

.. code-block:: bash

    cd penaltymodel_maxgap
    pip install -r requirements.txt
    pip install -e ../penaltymodel_core/
    python setup.py install

Note that this library will not function without smt solvers installed. The solvers
are accessed through the pysmt_ package.

In the standard setup (``pip install`` or ``setup.py install`` above), Z3_ solver is installed
auto-magically. See the accompanying pysmt documentation for installing other smt solvers.

In development mode (``pip install -e`` or ``setup.py develop``) solvers are not installed.
Check pysmt_ documentation to see how to do it manually.

.. _pysmt: https://github.com/pysmt/pysmt
.. _Z3: https://github.com/Z3Prover/z3

.. installation-end-marker

License
-------

Released under the Apache License 2.0. See LICENSE

The bundled Z3_ solver used by pysmt_ is licensed under the MIT license.
penaltymodel-mip 0.2.6
Generates penalty models using Google Optimization Tools' Mixed-Integer Programming capability.
License: Apache 2.0
Requires Python: >=3.6

.. image:: https://img.shields.io/pypi/v/penaltymodel-mip.svg
    :target: https://pypi.org/project/penaltymodel-mip

Penalty Model - Mixed-Integer (Linear) Programming
==================================================

.. index-start-marker

Generates penalty models using `Google Optimization Tools`_' Mixed-Integer Programming capability.
Serves as a factory and cache for penaltymodel.

On install, penaltymodel-mip registers an entry point that can be read by
penaltymodel. It will be used automatically by any project that uses penaltymodel's
:code:`get_penalty_model` function.

.. _Google Optimization Tools : https://developers.google.com/optimization/

.. index-end-marker

Installation
------------

.. installation-start-marker

To install:

.. code-block:: bash

    pip install penaltymodel-mip

To build from souce:

.. code-block:: bash

    cd penaltymodel_mip
    pip install -r requirements.txt
    python setup.py install

.. installation-end-marker


License
-------

Released under the Apache License 2.0