Installation

Basic full installation:

  1. python3 -m pip install minpower

  2. GLPK (Win, Mac)

1. Get Python

You’ll need python3. Instructions for Windows, MacOS, Linux

2. Get Minpower

python3 -m pip install minpower

3. Get a Solver

Minpower has been tested with GLPK, CBC, Gurboi, and CPLEX.

But you can almost certainly use your favorite - here’s the full list.

Not sure which to try? Here’s a quick rundown on solvers.

You will need to add the solver to your path. See guide to solver-to-Python connection.

For a quick and easy solver installation on MacOS, run: brew install glpk

Test it out

Go ahead and download the basic unit commitment test case, unzip it, and try and solve it first, using the terminal:

minpower ~/Downloads/uc

If you get an error about the problem not being solved - Python probably doesn’t know where your solver is. To fix this here’s a guide to solver-to-Python connection.

Stochastic UC

For stochastic problems you will need to install PySP via pip install http://github.com/Pyomo/pysp/tarball/v6.0#egg=pysp-1.0