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.2.2.tar.gz (213.1 kB view details)

Uploaded Source

Built Distribution

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

gurobipy_pandas-1.2.2-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gurobipy_pandas-1.2.2.tar.gz
  • Upload date:
  • Size: 213.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for gurobipy_pandas-1.2.2.tar.gz
Algorithm Hash digest
SHA256 9b3c47c1176a7efb6429c3023057bcbb5666da1916e8e8a14156c69307769847
MD5 c2b484a4e42952b4e1b03e1cdbc9ece2
BLAKE2b-256 4bb40a75faccbd99e3db7d8452e6c63ea84864d8f4fad1357f2401e13e8751fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gurobipy_pandas-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3e533959d38a955cbbd2ed2dfb7e4fe5bd240999d45a5a1afad39428d1bc597
MD5 b40f270422536a3261f2000cd0a2ba1f
BLAKE2b-256 fb0985f5f84aaba21eaa5b97ca1e6de89ab5471617389a3382160d0a4fbbf39f

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