Basic full installation:

  1. Anaconda Python
  2. pip install minpower
  3. GLPK (Win, Mac)

1. Get Python

New to Python

For new-to-Python folks, install the free Anaconda Python. It comes pre-loaded with all the scientific packages you’ll need - just the way it should be. For more details see Anaconda’s install instruction.

Note for Mac/Linux folks: you should add the Anaconda directory to your path as instructed at the end of the install.

Old Python User

For experienced Python users, pip install minpower should work just fine. If that command doesn’t work, it is probably a failure to build scipy/numpy from source. Try pip install numpy; pip install minpower or try downloading the pre-built binary for your system from SciPy.

2. Get Minpower

Simply run:

pip install minpower

3. Get a Solver

Minpower has been tested with GLPK, 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.

Test it out

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

minpower 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.