Skip to main content

Topas supports the generation of alternative solutions for pyomo models

Project description

Pytest Tests codecov Documentation Status GitHub contributors Merged PRs Code style: black

OR-Topas

Operations Research Toolkit for Pyomo Alternative Solutions

Overview

OR-Topas provides a python toolkit for generating and analyzing alternative solutions for pyomo models. This library is adapted from the pyomo.contrib.alternative_solutions and pyomo.contrib.benders libraries. OR-Topas extends the solution pool definition from pyomo, and it includes new Benders implementations that support generation for alternative solutions.

Testing

OR-Topas tests can be executed using pytest:

cd or_topas
pytest .

If the pytest-cov package is installed, pytest can provide coverage statistics:

cd or_topas
pytest --cov=or_topas .

The following options list the lines that are missing from coverage tests:

cd or_topas
pytest --cov=or_topas --cov-report term-missing .

Note that pytest coverage includes coverage of test files themselves. This gives a somewhat skewed sense of coverage for the code base, but it helps identify tests that are omitted or not executed completely.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

or_topas-1.0.0.tar.gz (93.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

or_topas-1.0.0-py3-none-any.whl (126.9 kB view details)

Uploaded Python 3

File details

Details for the file or_topas-1.0.0.tar.gz.

File metadata

  • Download URL: or_topas-1.0.0.tar.gz
  • Upload date:
  • Size: 93.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for or_topas-1.0.0.tar.gz
Algorithm Hash digest
SHA256 73b93f03b010f4b07a2df7b58555ce900092d61ae531ca89b9caec658bab9938
MD5 799219e74d419d01ab0e9a95c7b2e0a7
BLAKE2b-256 5c13bf0f78bebcd0cdd2a7f8331e3d5e8915b6bd125d6a315c7a8457f930039b

See more details on using hashes here.

File details

Details for the file or_topas-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: or_topas-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 126.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for or_topas-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccdbdde7903ef2c05d3559d127e94622bf4f216442b041812b308233736f9b2c
MD5 a24773c7aeed932b18344d6290f971a8
BLAKE2b-256 23d64efe714fe018bfc5dcf225545a68e20ca8105e2962d3869162d69830d173

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page