Installation¶
Pip Install¶
Install from PyPI with:
pip install pyepo
Conda Install¶
Install from Anaconda Cloud with:
conda install -c pyepo pyepo
Install from Source¶
Clone PyEPO from GitHub.
git clone -b main --depth 1 https://github.com/khalil-research/PyEPO.git
Install the package from the local checkout.
pip install PyEPO/pkg/.
Solvers¶
PyEPO compiles optimization models onto a solver backend, so at least one solver must be installed. The default backend is Gurobi, a commercial solver with a free academic license. The other backends are:
COPT, commercial with a free academic license (
pip install coptpy).Pyomo, which drives open solvers such as GLPK, CBC, or HiGHS with no license (
pip install pyomoplus the solver binary).Google OR-Tools, open (
pip install ortools).MPAX, open and JAX-based, for GPU and batch solving (
pip install mpax).
Note
A bare pip install pyepo does not install a solver backend. Building a model with the default Gurobi backend then requires a Gurobi license; for a license-free setup, use the Pyomo or OR-Tools backend.