Pandas accessors for gurobipy interaction
Project description
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
- gurobipy: Python modelling interface for the Gurobi Optimizer
- pandas: powerful Python data analysis toolkit
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
- Simon Bowly (maintainer)
- Robert Luce (maintainer)
- Irv Lustig Princeton Consultants
- Robert Randall Princeton Consultants
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gurobipy_pandas-1.2.0.tar.gz
.
File metadata
- Download URL: gurobipy_pandas-1.2.0.tar.gz
- Upload date:
- Size: 212.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3630986045b39bc6f7cc532dda1bbcc800e5bb19240640162890b38899b06dd3 |
|
MD5 | 94942f86263abe6c4ec8373b0b611eaa |
|
BLAKE2b-256 | 0b24fcdf0a7184deb73f284ece8ba9f3f199fc16c6424db394ca887d66c1b0b5 |
File details
Details for the file gurobipy_pandas-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: gurobipy_pandas-1.2.0-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | deaae3605cd53ab4a7274693778cc49d35ed704fc469d81c20055a7a5b3448cc |
|
MD5 | 7853d4315c2a24096a99e4946e75d905 |
|
BLAKE2b-256 | efc0a02be9bfea9e76d48ef969002e61d47c1ce5dbe2870e1fdc448e77881f15 |