Installation¶
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.