Install

Requirements

  • Python ≥ 3.10

  • A fresh virtual environment is strongly recommended.


Install monee

pip install monee

Installs the core package with all required dependencies: GEKKO, Pyomo, NumPy, SciPy, pandas, NetworkX, Plotly, and geopy.

git clone https://github.com/Digitalized-Energy-Systems/monee.git
cd monee
pip install -e .

Editable install — changes to the source are reflected immediately without reinstalling.


Optional extras

Extra

Install command

What it adds

simbench

pip install monee[simbench]

Import networks from SimBench and convert pandapower networks


Solver back-ends

monee ships two solver interfaces. Both are installed automatically; you only need to add a solver binary for the Pyomo back-end.

GEKKO default

Wraps the GEKKO optimisation suite, which bundles its own IPOPT binaries. No extra installation needed.

Best for: nonlinear energy-flow simulation and NLP optimisation.

# already included — nothing to do
pip install monee
Pyomo bring your own solver

Translates the network model to a Pyomo ConcreteModel. You must separately install at least one solver binary.

Best for: MILP / MIQCP problems (e.g. MISOCP optimal power flow).

# SCIP — recommended non-commerical solver for MIQCP
conda install -y pyscipopt

See Use the Pyomo solver for a full walk-through.

Selection of available solver binaries for Pyomo

Solver

Licence

Problem types

Install

HiGHS

Open-source

LP · MILP · MIQCP

conda install -y pyscipopt

GLPK

Open-source

LP · MILP

conda install -c conda-forge glpk

CBC

Open-source

LP · MILP

conda install -c conda-forge coincbc

Gurobi

Commercial

LP · MILP · MIQCP

requires licence