Glossary · Energy industry & energy transition
Optimal Power Flow
Optimal Power Flow (OPF) is a mathematical optimization method for power grids. It calculates how injections, withdrawals, voltages and other control variables must be set to achieve a specified objective as effectively as possible. At the same time, the physical network equations and the technical limits of equipment must be respected. Possible objectives include minimizing generation costs, network losses, curtailment or redispatch costs, or minimizing violations of network constraints. OPF thus combines electrical network analysis with optimization. The problem was formulated by Carpentier in 1962. It is still considered mathematically challenging today.
The quantities used in OPF come from the physical operation of the network. They include active power in megawatts (MW), reactive power in megavolt-amperes reactive (Mvar), voltages in kilovolts or as relative per-unit values, phase angles, line loading, transformer tap positions and equipment limits. An OPF therefore does not ask in the abstract which electricity generation would be cheap. It asks which combination of generation, consumption, voltage control and network operation is technically permissible and best meets the chosen objective.
Distinction from power flow analysis, economic dispatch and redispatch
The most closely related term is power flow analysis. It calculates the voltages and power flows that arise from specified injections and withdrawals and a given network state. It thus answers a question about the state of the system: what happens in the network under this exact set of conditions? The technical literature therefore distinguishes three related types of problem: power flow, economic dispatch and optimal power flow.
An OPF additionally poses a decision question: which permissible configuration is best according to a particular criterion? Certain variables may be changed, such as the active power output of individual power plants, the use of reactive power, transformer tap-changer positions, storage schedules or flexible loads. Among all permitted combinations, OPF seeks a solution that optimizes the objective function while respecting line limits, voltage bands and generation limits. Put simply, a power flow calculation is a snapshot. An OPF systematically tries many possible snapshots and selects the best permissible one.
An OPF is also different from economic dispatch. In its classical form, economic dispatch allocates generation among power plants according to cost. It respects generation limits and the balance between generation, load and, where applicable, losses, but not individual network constraints. An OPF, by contrast, explicitly models network constraints. Likewise, OPF is not the same as redispatch. Redispatch is an operational and regulatory measure that changes power plant dispatch and injections when network congestion occurs. In Germany, it is established, among other provisions, in Section 13 of the Energy Industry Act (EnWG) as a market-related measure used by transmission system operators. An OPF can help calculate or assess redispatch measures. It is, however, in the first instance only a computational method.
AC-OPF, DC-OPF and model limitations
In practice, a distinction is made between AC-OPF and DC-OPF. An AC-OPF uses the full alternating-current network equations and optimizes active and reactive power simultaneously. It therefore also accounts for voltage magnitudes and phase angles. There are several equivalent mathematical representations, such as polar or Cartesian coordinates and power-voltage or current-voltage formulations. Because the network equations are nonlinear and non-convex, an AC-OPF can have multiple local optima. It is computationally intensive and cannot always be solved reliably for large networks with many constraints.
DC-OPF is the simplest commonly used variant. It replaces the alternating-current equations with a linearized approximation and linear constraints. Despite the abbreviation, the name has nothing to do with direct current. Typical assumptions include voltage magnitudes close to their nominal values, small angle differences and negligible resistance. Reactive power and losses are thus largely omitted, and essentially only active power flows are considered. This makes the calculation faster and more robust. It is suitable for market models, congestion analyses and large-scale studies, provided reactive power and voltage do not play a central role. For voltage control, heavily loaded network conditions, network stability issues and many distribution network applications, however, a DC-OPF is often insufficient. A DC solution is generally not exactly feasible in the full alternating-current model and must be checked.
The word “optimal” should therefore not be read as a technically perfect truth. A solution is optimal only within the chosen model, the available data, the assumed network parameters, the constraints and the objective function. If any of these changes, the optimal solution may be different. An OPF is therefore not a neutral view of the network, but a formalized decision-support tool. The quality of its results depends on how much of the technical reality has been included in the model.
Why OPF matters in the power system
As renewable injections, distributed installations, heat pumps, electric mobility, battery storage and controllable consumers increase, so does the number of possible network operating states. At the same time, many networks are operated closer to their limits because network expansion is progressing more slowly than the connection of new installations. An OPF can help make more precise use of existing network capacity, identify congestion earlier and systematically weigh measures against one another. In organized electricity markets with nodal pricing, such as those operated by US system operators, OPF-based models are a core component of dispatch planning and price formation.
In transmission networks, OPF primarily concerns the use of power plants, storage, transformers and other network equipment in a way that keeps large-scale power flows manageable. In the distribution network, OPF is gaining importance because local voltage limits and line loading are more often critical due to photovoltaics, charging points and heat pumps. There, the focus is less on conventional power plant dispatch. Voltage control, grid connection capacity, controllable consumers and the coordination of many small installations take centre stage. Because distribution networks often have a higher resistance-to-reactance ratio, the simplifications of DC-OPF are particularly problematic there.
An OPF can also show the value of flexibility at a particular place and time. Shifting a kilowatt-hour of consumption does not have the same effect everywhere in the network. If it relieves an overloaded line or supports voltage in a critical section of the network, its system value can be considerably higher than at a location without a network problem. This spatial component is lost when generation and consumption are compared purely in terms of energy balance.
Optimization does not confer authority
A common misunderstanding is that, just because an OPF finds a better solution, the necessary control variables are legally, technically or economically available. A network operator cannot control every installation at will. In Germany, Section 13 EnWG specifies, for example, the order in which transmission system operators take network-related and market-related measures and the cost rules that apply. Imputed costs must be assigned to the curtailment of renewable installations. Small installations with a rated capacity below 100 kilowatts that can be remotely controlled at any time may only be called upon with lower priority. In addition, market rules, connection conditions, balance group responsibility, compensation rules and data protection limit which interventions are permissible and practicable.
Many network problems therefore arise not from a lack of mathematics, but from the separation of market decisions and network constraints. In many European electricity markets, trading initially takes place within large bidding zones; in Germany, within a price zone. Within a zone, the market operates as if electricity could be transported everywhere without congestion. Physically, this is not true: lines have thermal limits, transformers have loading limits, and voltages must remain within permissible bands. An OPF can model these limits. It does not, however, automatically remove the institutional separation between the market and the network.
This leads to a practical conflict: the market produces schedules based on price logic, and network operations must make them technically feasible. At this second stage, OPF methods can help determine suitable interventions. On their own, however, they do not answer who bears the costs, which installations are used as a priority, how flexibility is remunerated or whether network constraints should already be considered in market design.
Common oversimplifications and security variants
One oversimplification is to view OPF merely as a tool for reducing costs. Cost minimization is one possible objective function, but not the only one. Network losses, voltage security, equipment ageing, emissions, security of supply or minimizing curtailment can also be part of the optimization. These objectives can compete with one another. A solution with low short-term costs may place greater stress on equipment or leave less security reserve. A solution with high network security may require more redispatch or curtailment.
Another misinterpretation concerns the input data. OPF results often appear precise because they provide numbers with many decimal places. Load forecasts, injection forecasts, switching states, equipment availability and the response of controllable consumers are uncertain, however. A mathematically optimal state may be unsuitable for operation if it is sensitive even to small forecasting errors. In practice, security margins, scenarios, robustness requirements or stochastic variants are therefore used.
Security-Constrained OPF (SCOPF) extends OPF to consider contingencies. It checks whether the network remains within permissible limits after the failure of an item of equipment, such as a line or transformer. Such contingency constraints were incorporated into OPF methods as early as 1973. For European transmission system operators, the (N-1) criterion is defined in the guideline on electricity transmission system operation (Regulation (EU) 2017/1485). Under this criterion, the equipment remaining after a contingency must be able to adapt to the new situation without exceeding operational security limits. The contingencies in a contingency list are simulated. An OPF without such conditions may propose a solution that is permissible under normal conditions but not sufficiently robust for operation. A related approach is Security-Constrained Economic Dispatch, which generally considers contingency constraints in a simplified, linearized form.
Significance for markets, networks and system costs
An OPF can locate technical scarcity in the network. It shows which line, transformer or voltage band constrains a solution. Shadow prices can be derived from the Lagrange multipliers of the constraints. They show what additional network capacity, local generation, storage operation or flexible demand at a network node would be worth in the model. In markets with nodal pricing, these give rise to locational marginal prices. Such information is also relevant to network expansion planning, congestion management and potential local flexibility markets.
An OPF is nevertheless not a complete assessment of system costs. It minimizes costs within a defined scope. Whether that scope includes all relevant costs depends on the modelling and the applicable rules. If, for example, curtailment is compensated, network expansion is financed through network charges and market prices do not reflect congestion, costs are distributed across different accounts. An OPF can make this distribution visible if it is modelled. It cannot, however, explain it without the associated market and regulatory rules.
OPF is becoming more important for the electrification of heating, transport and industry because additional power demand matters not only in terms of annual electricity consumption. Charging points, heat pumps and electrolysers can create high simultaneous local loads. Whether they overload a network depends on timing, location, connection capacity, controllability and available network reserve. An OPF can model these dependencies. It can show when flexibility substitutes for network capacity, when it complements it and when it has no significant effect.
Optimal Power Flow is therefore more than a simple computational routine. It is an interface between electrical engineering, system operation, market rules and regulation. The term makes clear that power networks cannot be understood through energy quantities alone. A network state is permissible only when power, voltage, equipment limits and security requirements are compatible. And it is optimal only in relation to the objective specified in the model.
Sources
- Optimal Power Flow and Formulation Papers — Federal Energy Regulatory Commission (FERC); unbekannt. Einleitung und Beschreibung Paper 1/Paper 2
- History of Optimal Power Flow and Formulations (Optimal Power Flow Paper 1) — Federal Energy Regulatory Commission (FERC), Cain/O'Neill/Castillo; 2012-12. Einleitung; Kapitel History of Power System Optimization
- The IV Formulation and Linear Approximations of the AC Optimal Power Flow Problem (Optimal Power Flow Paper 2) — Federal Energy Regulatory Commission (FERC), O'Neill/Castillo/Cain; 2012-12. Einleitung zu OPF-Varianten
- Energiewirtschaftsgesetz (EnWG) § 13 Systemverantwortung der Betreiber von Übertragungsnetzen — Bundesministerium der Justiz / juris; unbekannt (konsolidierte Fassung). § 13 Abs. 1, 1a, 2 EnWG
- Verordnung (EU) 2017/1485 zur Festlegung einer Leitlinie für den Übertragungsnetzbetrieb — Europäische Kommission / EUR-Lex; 2017-08-02. Art. 3 (Begriffsbestimmungen N-Situation, Ausfallvarianten-Liste, (N-1)-Kriterium); Art. 35
Related glossary entries
- active power
- reactive power
- power flow analysis
- economic dispatch
- redispatch
- voltage control
- distribution network
- flexibility
- price zone
- Security-Constrained Economic Dispatch
Edited by eCMS on 01.12.2026 17:50
© 2026 Erik Schmidt. All rights reserved. Quotations with a link to the source are welcome.