Skip to main content

Pandas accessors for gurobipy interaction

Project description

PyPI - Version PyPI - Python Version Tests Docs

gurobipy-pandas: Convenience wrapper for building optimization models from pandas data

gurobipy-pandas is a convenient (optional) wrapper to connect pandas with gurobipy. It enables users to more easily and efficiently build mathematical optimization models from data stored in DataFrames and Series, and to read solutions back directly as pandas objects.

gurobipy-pandas is aimed at experienced pandas users who are familiar with methods to transform, group, and aggregate data stored in dataframes. It expects some familiarity with optimization modelling, but does not require deep experience with gurobipy.

Features

gurobipy-pandas allows users to:

  • create gurobipy variables tied to the index of a series or dataframe
  • construct constraints row-wise using algebraic expressions
  • read model solutions and constraint slacks natively as pandas series

Installation

pip install gurobipy-pandas

Dependencies

Documentation

Full documentation for gurobipy-pandas is hosted on readthedocs.

License

gurobipy-pandas is distributed under the terms of the Apache License 2.0.

Contact Us

For questions related to using gurobipy-pandas please use the Gurobi Community Forum.

For reporting bugs, issues and feature requests, specific to gurobipy-pandas, please open an issue.

If you encounter issues with Gurobi or gurobipy please contact Gurobi Support.

Contributors

Webinar

Slides for the 2023 webinars presenting this package can be found at webinar/webinar.ipynb. The notebook will be presented as RISE slides, but can also be executed in Jupyter.

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

gurobipy_pandas-1.1.6.tar.gz (210.6 kB view details)

Uploaded Source

Built Distribution

gurobipy_pandas-1.1.6-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file gurobipy_pandas-1.1.6.tar.gz.

File metadata

  • Download URL: gurobipy_pandas-1.1.6.tar.gz
  • Upload date:
  • Size: 210.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for gurobipy_pandas-1.1.6.tar.gz
Algorithm Hash digest
SHA256 cae6b7c21184851fa12900383c89dcacee9d1e1359e6f2ea03b71223e526d8c7
MD5 4225d637ebed4b24bc162dfb3f37ad8a
BLAKE2b-256 fa46005c3190905a13ad1dcd3f3f878eb4499b2bc0e9cbc9bf5b1e3e29262eda

See more details on using hashes here.

File details

Details for the file gurobipy_pandas-1.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for gurobipy_pandas-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e20b198ff580214380681f3203697b482571cc84617c38a90dc9f09e3704ac11
MD5 42557a3d3d2ed6eb9546f8e7ca5ca145
BLAKE2b-256 76e52666713d0942b710b7fdae53a4c4a08ece8639b06c6c88af17c4f7a32e83

See more details on using hashes here.

Supported by

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