This repository contains a generalized DCOPF formulation for standard IEEE test cases using concrete modeling approach in Pyomo. The current version is tested for IEEE-14 bus, IEEE-39 bus, IEEE-118 bus, and IEEE-300 bus system with the MATPOWER solution. I will test bigger test cases considering my time availability this Summer :)
You can use this DCOPF formulation in any of your pyomo-based models for restoration, planning, unit committment, and so forth. Please cite this repository if used for academic or commericial research.
The current objective minimizes the cost of generation for all the existing generators in the system (economic dispatch).
- Power balance in each of the nodes
- Power flow in each of the lines (including transformer turn ratio and phase shifts)
- Generator's power output limit
- Line thermal limit (power carrying capability)
- Limit in the angle differences between the buses
- Reference bus has 0 voltage angle
- The standard test cases are mat files of the standard MATPOWER cases
- This code assumes the same data columns as there are in the MATPOWER test cases
- Although Gurobi is used for the current version, you can use any open source solvers like glpk and cbc as long as you do not introduce integers, and other complexities. The model has also been tested successfully on CPLEX.
Please make sure that you install and import the following packages
numpy
scipy
pyomo
gurobi
/cplex
/glpk
or any other optimization solver