Hello and welcome to part 2/3 of my blog on expansion planning! This section will provide the mathematics for each level of power flow fidelity in expansion planning: transshipment, AC power flow, and DC power flow. The actual mathematics are from Illinois Institute of Technology’s GENTEP model, but most long-term planning models have a similar form. Again – these equations are taken directly from Krishnan (2015) and I have added some clarifying notes. This is not my original work!
My goal with this blog is two-fold. My primary goal is to provide the reader with an overview of the three different levels of fidelity and the strengths and weaknesses of each one. To this end, I have clearly labeled the terms in the objective function and constraints. My secondary goal is to expose the reader to some of the mathematics used in these models, but not to try and explain these equations in detail.
I won’t mince words: these math equations are hard, even for someone with an advanced background in mathematics. If you are interested in explanations of the equations, one tool I’ve found is to take a screenshot, post it into ChatGPT, and ask ChatGPT what the equation means. It doesn’t always get everything right, but it does a pretty good job, and it’s a heck of a lot better than just looking at a lot of symbols and not knowing what they mean.
One of the reasons I write these blogs is to help solidify my understanding of topics I am studying. I took a class on optimization this past semester, and writing an in-depth review of Krishnan’s paper – which focuses on optimization for expansion planning – has helped me understand the topics discussed in that course better. If you are interested in this but have questions, reach out to me and we can have a conversation!
The link to Krishnan’s work is here: https://www.researchgate.net/publication/281123009_Co-optimization_of_electricity_transmission_and_generation_resources_for_planning_and_policy_analysis_review_of_concepts_and_modeling_approaches
Before I proceed with the equations, a couple notes.
First, the bus example I gave is a very simple example of a linear program. However, linear programming is just one subfield of mathematical optimization. There is also non-linear programming, mixed-integer programming, and integer programming. Nonlinear programming involves terms that are not linear (ex: quadratic, exponential, sinusoidal, discontinuous, etc.), mixed-integer programming involves “binary variables” (useful for turning a constraint “on” or “off”), and integer programming forces the solution to the objective function to be composed of integers (whole numbers) and prohibits decimals. These other types of programming are much more computationally intensive than linear programming, and while they are necessary for modeling higher-fidelity power flows, the modeler needs to make other choices (such as modeling a smaller region) to still make the problem computationally tractable. This is particularly true with the AC power flow, as a DC power flow problem can be formulated as a mixed-integer linear program but the AC power flow has nonlinear terms due to the sinusoidal nature of AC power. In the models below, the transshipment model is a linear program, I’ve described the AC power flow in integer and mixed-integer formulations, and I’ve described the DC power flow as a mixed-integer problem.
Second, some of the terms in the constraints may sound foreign to someone without an electrical engineering background. What the heck are reactive power, apparent power, and voltage angles? Reactive power is a very non-intuitive concept – but the idea is that not all AC power does actual “work.” Real power is the power that does work, and reactive power is the rest. Having some reactive power is critical for maintaining voltage support in a network, but because power increases current without providing any useful work, grid operators try to reduce the amount of reactive power on the transmission system, as higher current flow leads to greater resistive losses over transmission lines and lower efficiency. Apparent power is the square root of the sum of the squares of real and reactive power, and the voltage angle represents the displacement in the phase angle of AC voltages from a “reference” voltage in the network. The “power triangle” is often used to describe the relationship between real, reactive, and apparent power.

I’ve heard of reactive power being “the foam in a glass of beer,” or the height you lift your legs up when walking. Of course – electromagnetism is a far more abstract concept than a glass of beer, but certainly you’d prefer more beer than foam in your glass!
Transshipment Model
The simplest way of modeling power flows is the transshipment model. For a transshipment model, the transmission network is formulated similarly to transportation pipelines where a commondity is moved one location to another. From a power flow perspective, a transshipment model respects the nodal power flow balance (Kirchoff’s Current Law) and thermal line limits, but it ignores line impedances and Kirchoff’s Voltage Law. In other words – it does not model the paths that electricity would actually take if it were to flow on a network. In the GENTEP model, generation and transmission are modeled as “arcs,” and Figure 2, taken from the paper, designates generation arcs as EG_EL and EW_EL, transmission arcs as EL_EL, and demand arcs as EL_L.

Credit: Krishnan et. al (2015)
In this formulation, generation and transmission are modeled as “i, j” arcs from node (i) to node (j). For example, generation arcs include EG_EL1 (for thermal generator) and EW_EL1 (for wind farm), transmission arcs include EL1_EL2, and demand arcs include EL2_L.
The objective function and constraints are below. The first term in the objective function refers to the operational costs, and the second term are the investment costs. We want to minimize the combined sum of operational costs and investment costs. I have provided a table with all of the variables and their relevance to each model at the end of the blog.
\[ \min \underbrace{\sum_t \sum_{(i,j)} C_{(i,j)}(t) P_{(i,j)}(t)}_{\text{Operational Costs}} + \underbrace{\sum_i \sum_{(i,j)} I_{(i,j)}(t) P I_{(i,j)}(t)}_{\text{Investment Costs}}\tag{1} \]
Subject to: \[ \textbf{Power Flow Balance Constraint:} \quad \sum_i \eta_{(i,j)}(t) P_{(i,j)}(t) – \sum_k P_{(j,k)}(t) = d_j(t) \tag{2} \] \[ \textbf{Gen/Trans Capacity Constraint:} \quad P_{(i,j)}^{\min} \leq P_{(i,j)}(t) \leq P_{(i,j)}^{\max} + \sum_{\tau=\text{start}}^t PI_{(i,j)}(\tau) \tag{3} \] \[ \textbf{Investment Constraint:} \quad 0 \leq PI_{(i,j)}(t) \leq PI_{(i,j)}^{\max} \tag{4} \]ACOPF Model
The full ACOPF (alternating current optimal power flow) is a much more complex and computationally expensive program than the transshipment model, with more constraints and data requirements. Additionally, the generation/transmission “arcs” from the transshipment model are split into separate generation and transmission investments in the objective function. Like the transshipment model, generation is a continuous decision variable, but the ACOPF-GTEP formulation models transmission as an integer decision variable, representing that a specific number of transmission lines will be built. The inclusion of a multi-state integer variable further increases computational expense and makes the ACOPF intractable for larger networks.
\[ \min \underbrace{T_t \sum_t \sum_{(i,j)} C_i(t) P_{gi}(t)}_{\text{Operational Costs}} + \underbrace{\sum_t \sum_i I_i(t) P I_{gi}(t)}_{\text{Gen. Investment Costs}} + \underbrace{\sum_t \sum_{(i,j)} I_{(i,j)}(t) z_{(i,j)}(t)}_{\text{Trans. Investment Costs}}\tag{5} \]
Subject to:ACOPF Model – Mixed-Integer Formulation
For the mixed-integer formulation, we change the integer transmission expansion variables z(i,j)(t) to whether there should be an investment in a certain line. z(i,j)(t) is binary decision variable identifying if line exists, while s(i,j)(t) is a binary decision variable to decide of a candidate line across corridor (i, j) should be built. Each line has its own binary decision variables s(i,j)(t) and z(i,j)(t), and while this results in more decision variables and constraints, the change from integer programming to binary programming reduces computational expense.
To further relax the problem, the binary variables can be relaxed to continuous variables using the binding constraint below, making the ACOPF a nonlinear programming model (NLP).
Binary-to-Linear Relaxation Constraint
\[ z_{(i,j)}(t) \left(1 – z_{(i,j)}(t)\right) \leq \varepsilon \tag{23} \]Finally, the AC formulation also allows shunt capacitors as investment options, which are shown in the “reactive power flow” equation as and defined below, where
is the line susceptance and
is the bus shunt susceptance.
Shunt Capacitor Investments
\[ B_{(i,i)}(t) = \sum_j b_{(i,j)}(t) + b_i(t) \tag{24} \]DCOPF model (Mixed-Integer Formulation)
The DCOPF model makes three simplifications to the ACOPF model that significantly decrease its computational expense: (1) that the resistance of transmission circuits is significantly less than the reactance, (2) that voltage angle differences are small (10 – 15 degrees max), and (3) that voltage magnitudes are normalized to be 1.0 (using the “per-unit” system). This removes the quadratic and sin/cos terms in the constraints and makes the problem much more computationally tractable while still adhering to Kirchoff’s Voltage Law. The objective function is the same as the ACOPF, and the new constraints are given below. Like the binary ACOPF model, this formulation has binary variables for each transmission line to determine whether it is built or not.
In some cases, it makes sense to use a “hybrid” modeling structure to increase computation tractability – for example, modeling high-voltage lines with DC power flow constraints but using a transshipment formulation for lower-voltage lines. We’ve adopted this approach at Iowa State for one of our models, where we are trying to run an “ensemble” of power plans to determine the ideal power plan for certain economic and policy outcomes. In any case, there will always be some tradeoffs between fidelity and speed, but with some care, planners can make the choices that provide the fidelity needed while still remaining computationally tractable.
The data requirements for all formulations can broadly be broken into (1) historical and forecasted system conditions, (2) system topology, (3) the operational characteristics of existing and planned resources, and (4) scenario descriptions. The higher fidelity the power flows, the more data is required. For example, the DC and ACOPF models require information about transmission line impedances, while the transshipment model does not need any such data. Much of what I work on for my PhD is related to incorporating weather data into these models, but I’ll save that for a different blog.
Wooh, that’s all for the second blog! It’s by far the most math I’ve had in a blog – and probably will have for quite some time. Onto the third and final blog on model formulation.
** Variables for each model **
