Skip to content

Gurobi/gurobipy-pandas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c336c43 · Feb 13, 2025
Feb 13, 2025
Feb 10, 2025
Jul 21, 2024
Feb 13, 2025
Feb 10, 2025
Sep 19, 2024
Nov 14, 2024
Jul 21, 2024
Oct 16, 2023
Jul 21, 2024
May 19, 2023
Nov 14, 2022
Nov 4, 2022
Nov 14, 2024
Jul 22, 2024
Feb 13, 2025
Apr 4, 2023

Repository files navigation

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.