Unit Commitment
Unit Commitment
In a deterministic UC model:
• The load forecast is treated as exact
• Generator availability is assumed to be known
• Renewable generation and uncertainties are ignored
Although modern grids face significant uncertainty due to renewables, deterministic UC still
plays an important role, especially because:
1. It forms the foundation for advanced models such as stochastic or robust UC.
2. It is simpler and faster to compute, making it suitable for many traditional grids.
3. It is widely used in academic research and as a benchmark for testing algorithms.
4. Many utilities with low renewable penetration still rely on deterministic scheduling.
1
1.4 Importance of Transmission Constraints
Earlier UC approaches assumed that the entire power system could be treated as a single “bus,”
ignoring the transmission network. However, with increasing power demand, renewable
integration, and congestion issues, ignoring transmission constraints can lead to unrealistic
or unsafe schedules.
Including transmission constraints helps ensure:
• Line flow limits are respected
• System voltage and stability remain within limits
• Thermal ratings of lines and transformers are not exceeded
• Congestion is properly managed
• Power flows remain within safe operating conditions
Incorporating these constraints transforms the UC problem into Security-Constrained Unit
Commitment (SCUC). This provides results that are more realistic and usable for real-world
operations. Without transmission constraints, committed units may seem optimal
mathematically but may cause overloads or violations when applied to the physical grid.
2
Chapter 2: Literature Review
3
2.3 Transmission-Constrained UC in Research
Research on UC with transmission constraints has expanded significantly as power systems
deal with higher loads, stressed networks, and increasing renewable penetration. Studies in this
area typically emphasize:
• DC-based transmission models, which simplify the network but still capture line
flows and congestion.
• AC-based SCUC, which is more detailed but computationally heavier due to nonlinear
voltage equations.
• Congestion-aware scheduling, where commitment decisions actively consider line
thermal limits and transformer capabilities.
• Locational Marginal Pricing (LMP), which depends directly on transmission
constraints and provides location-specific energy prices.
Many studies highlight that ignoring transmission effects can produce schedules that are
impossible—or unsafe—to operate. Because of this, transmission-constrained UC is now
standard practice in most system operators and energy markets. However, scaling these models
for large systems remains a challenge in research.
4
2.5 Gaps in the Literature
Despite extensive research on UC, several important gaps still exist:
1. Limited open-source SCUC tools
Many detailed models remain proprietary, creating a barrier for academic and research
communities.
2. Insufficient treatment of uncertainty
Deterministic UC overlooks the variability in loads and renewable energy, making its
assumptions less valid for modern grids.
3. Computational complexity
High-fidelity SCUC models involving non-linear AC power flow remain difficult to
solve at scale.
4. Integration of emerging technologies
Distributed energy resources, electric vehicles, and large-scale storage systems are not
fully addressed in many existing UC frameworks.
5. Lack of standard benchmark systems
Comparing algorithms fairly is challenging because few publicly available UC datasets
include detailed transmission networks.
Addressing these gaps would support the development of more accurate, scalable, and future-
ready UC models.
5
Chapter 3: Fundamentals of Unit Commitment
3.1 Definition and Purpose
Unit Commitment (UC) is a core decision-making process in power system operation. Its main
purpose is to determine which generating units should be turned ON or OFF over a given
time horizon—typically 24 hours or more—and how much power these generating units should
produce during each period.
Unlike real-time dispatch, which focuses only on the next few minutes, UC plans generator
schedules well ahead of time to ensure:
• The forecasted demand is met at every hour
• System reliability is maintained with adequate reserve
• Operating cost is minimized
• Technical limits of generators and the network are respected
UC helps system operators avoid unnecessary start-ups, maintain efficient operation, and
prevent system failures. Without UC, utilities would face unpredictable costs, inefficient
generator usage, and potential reliability issues. Thus, UC is the backbone of day-ahead
planning in modern power systems.
6
These binary decisions make UC a Mixed-Integer Programming (MIP) problem. When a
unit is ON (u = 1), the model determines how much power it should produce. When the unit is
OFF (u = 0), the output is set to zero.
Binary variables also link operating constraints such as:
• Minimum up and down times
• Start-up and shut-down logic
• Ramp rate enforcement
• Reserve allocation
Because binary variables significantly increase computational complexity, UC is much harder
to solve than standard optimal power flow (OPF), which deals only with continuous variables.
Every thermal generator has physical limits governing how long it must remain ON or OFF
after a switching event.
Minimum Up Time
Once a unit is turned ON, it must stay ON for a minimum number of hours before it can be
shut down.
7
Example:
If a unit has a minimum up time of 4 hours, it cannot turn off immediately after being started.
Once a unit is turned OFF, the machine must cool and stabilize before it can restart.
Example:
A generator with a 3-hour minimum down time cannot restart within 3 hours of shut-down.
These constraints prevent excessive cycling, reduce mechanical wear, and ensure safe
operation of the unit. They also significantly impact scheduling flexibility, making the UC
problem more complex.
Ramp rate limits define how quickly a generator can increase or decrease its power output.
There are generally two types:
• Ramp-up rate: Maximum increase in power per hour
• Ramp-down rate: Maximum decrease in power per hour
Ramp constraints are crucial when load changes rapidly, especially with renewable variability.
A generator cannot instantly jump from minimum to maximum output—it must follow its
ramping profile.
Ramp limits often interact with commitment decisions. For example, a unit might be forced to
remain ON longer just to support a required ramping need in the next interval.
Thermal power plants incur additional costs when starting or stopping because of:
• Fuel needed for pre-heating
• Mechanical stress on equipment
• Labor and operational expenses
Start-up costs may vary depending on how long the unit has been offline (“cold start,” “warm
start,” “hot start”). Shut-down costs are generally smaller but still relevant.
These costs significantly influence UC decisions. Sometimes, it is cheaper to keep a generator
running at low output than to shut it down and restart it later.
Power systems must maintain a margin of flexible capacity known as spinning reserve to
respond instantly to sudden changes such as:
• Unexpected load increase
• Generator failure
• Renewable variability
UC ensures enough units are ON and loaded below their maximum capacity to provide the
required spinning reserve. This sometimes forces units to operate even if they are not
economically optimal, prioritizing reliability over cost.
Reserve constraints are particularly critical in systems with high renewable penetration.
8
3.6 Objective Function: Minimizing Total Operating Cost
The primary goal of UC is cost minimization. The objective function generally includes:
1. Fuel costs
2. Start-up and shut-down costs
3. No-load costs (cost of keeping a unit ON even at zero output)
4. Reserve provision costs
Mathematically, UC minimizes:
Total Cost = ∑(Fuel Cost𝑖,𝑡 + No-Load Cost𝑖,𝑡 + Start-Up𝑖,𝑡 + Shut-Down𝑖,𝑡 )
𝑖,𝑡
9
Chapter 4: Transmission Constraints in Unit Commitment
Transmission constraints play a central role in shaping modern Unit Commitment (UC)
decisions. As power systems operate closer to their limits and renewable generation increases,
the network can no longer be treated as an “unconstrained pipe.” The transmission grid directly
influences which generators can run, how much they can produce, and whether their power can
safely reach the load. This chapter explains the key concepts behind transmission modeling in
UC, focusing on practical tools like the DC power flow, PTDFs, congestion management,
Locational Marginal Pricing (LMP), and the broader framework of Security-Constrained
Unit Commitment (SCUC).
1. Voltage magnitudes are close to 1.0 pu, so their variation has minimal impact on real-
power flow.
2. Voltage angles are small, allowing linear approximations for trigonometric terms.
3. Reactive power and losses are ignored.
4. Line resistances are much smaller than reactances, meaning power flow is mostly
determined by line reactance.
These simplifications turn the AC equations into a linear relationship:
𝜃𝑖 − 𝜃𝑗
𝑃𝑖𝑗 =
𝑋𝑖𝑗
where
𝑃𝑖𝑗 = real power flowing from bus i to bus j
𝜃𝑖 and 𝜃𝑗 = bus voltage angles
𝑋𝑖𝑗 = line reactance
10
4.2 Power Transfer Distribution Factors (PTDF)
When adding transmission constraints to the UC problem, we need a fast way to determine
how generator injections affect line flows. This is where Power Transfer Distribution
Factors (PTDFs) come in.
A PTDF indicates how much power on a specific line will change when 1 MW is injected at
one bus and withdrawn at another. For example:
• A PTDF of 0.3 means that a 1 MW injection will create a 0.3 MW flow on that line.
• A negative PTDF means the flow moves in the opposite direction.
Role of PTDFs in UC
PTDFs help translate generator outputs into line flow constraints. Instead of solving separate
power flow equations at every step, UC models use PTDF matrices to compute flows directly:
𝐹ℓ,𝑡 = ∑ 𝑃𝑇𝐷𝐹ℓ,𝑔 ⋅ 𝑃𝑔,𝑡
𝑔
where
𝐹ℓ,𝑡 = flow on line ℓat time 𝑡
𝑃𝑇𝐷𝐹ℓ,𝑔 = sensitivity of line flow to generator g
𝑃𝑔,𝑡 = generator output
•Eliminates the need for iterative solvers inside the optimization process
•Keeps the problem linear and scalable
•Allows congestion effects to be incorporated efficiently
•Enhances transparency and interpretability of results
PTDF-based SCUC formulations are commonly used by ISOs such as PJM, MISO, and
ERCOT.
11
Types of Line Limits
When a line approaches its limit, the UC model must adjust generator schedules to prevent
overload.
Mathematical Representation in UC
Congestion occurs when a transmission line reaches its limit and prevents the system from
using the lowest-cost generators. When this happens, the solution shifts to higher-cost
generators located near the constrained area.
LMP is defined as the cost of supplying 1 additional MW of power at a specific bus. When no
congestion exists, LMPs are equal across the system because power can flow freely.
But when a line is congested, LMPs diverge:
• Higher LMP at the load side of the congested line
• Lower LMP at the generation side
This price separation reflects the increased cost of delivering energy to that location.
Importance of LMP in UC
• Encourages generators in the constrained area to increase output
• Signals the true cost of serving load at each bus
• Guides investment in transmission upgrades
• Provides incentives for demand response
Congestion and LMP are deeply interconnected with UC decisions because generator
commitment depends not just on marginal cost, but on locational feasibility.
12
4.5 Impact of Transmission Constraints on UC Scheduling
When transmission constraints are ignored, UC tends to schedule low-cost generators even if
they are far from major loads. But once transmission is considered, the entire dispatch pattern
can change.
Key Impacts
High-cost but well-located generators may start earlier or run longer because cheap generators
cannot deliver power past congested lines.
Transmission limits force the system to use more expensive generation, increasing total UC
cost.
Some regions might require local generation to stay online to maintain voltage stability or meet
N-1 security criteria.
5. Multi-period Effects
Congestion in one hour affects future hours because UC decisions include start-up times and
minimum up/down constraints.
Example Scenario
A wind farm located far away might produce cheap energy. However, if the line connecting it
to the grid is congested:
13
4.6 Security-Constrained Unit Commitment (SCUC) Concepts
SCUC extends the traditional UC model by incorporating network constraints, contingency
analysis, and security rules. It is the standard tool used by Independent System Operators
(ISOs) worldwide.
1. Network-Constrained Dispatch
The system must remain secure even after the loss of any single component:
o Generator outage
o Transmission line outage
o Transformer failure
3. Reserve Requirements
4. Commitment Logic
SCUC models are computationally demanding but necessary for ensuring both economic
efficiency and system reliability.
14
Chapter 5: Overview of MATPOWER and MOST
1. Ease of Use
Users can write MATLAB scripts that are simple to understand and modify. Its
functions are modular, making it easy to adapt for different case studies.
2. Flexibility
3. Open Source
The source code is freely available. Researchers can analyze, customize, or extend any
part of the code to suit their requirements.
5. Integration-Friendly
Its design allows integration with tools like MOST for multi-period optimization and
unit commitment, making it ideal for academic research on real-world scheduling
problems.
MATPOWER is therefore an ideal platform for both learning and research, bridging the gap
between classroom studies and industrial applications.
15
5.2 Power Flow & Optimal Power Flow Capabilities
MATPOWER provides two fundamental functionalities: Power Flow (PF) and Optimal
Power Flow (OPF). Together, these form the foundation of deterministic unit commitment
studies.
Power flow analysis determines the steady-state operating condition of a power system for a
given set of generator outputs and load demands. Key outputs include:
• Voltage magnitude and phase at each bus
• Real and reactive power flows in transmission lines
• Generator outputs and bus injections
1. AC Power Flow
o Models both real and reactive power
o Accounts for voltage magnitude and angle variations
o Nonlinear in nature, requires iterative methods for solution
o Suitable for detailed studies of voltage stability and reactive power management
2. DC Power Flow
o Linear approximation focusing on real power only
o Ignores reactive power and voltage magnitude variations
o Uses bus voltage angles to calculate line flows
o Computationally efficient, ideal for multi-period UC and transmission-
constrained optimization
DC power flow is particularly useful for large-scale UC studies because it allows network
constraints to be incorporated without introducing nonlinearity, keeping the problem
solvable using MILP techniques.
16
5.3 Introduction to MOST (MATPOWER Optimal Scheduling Tool)
While MATPOWER provides excellent tools for OPF, it does not handle multi-period unit
commitment problems directly. The MATPOWER Optimal Scheduling Tool (MOST)
extends MATPOWER to address this limitation.
MOST integrates:
This makes MOST a powerful tool for day-ahead scheduling and deterministic UC studies.
Applications of MOST
1. Deterministic UC
MOST can simulate day-ahead commitment decisions for all thermal and renewable
generators in the system.
2. Security-Constrained UC (SCUC)
Using DC OPF constraints, MOST can ensure schedules respect line limits and
contingency requirements.
3. Reserve Allocation
MOST can incorporate spinning and non-spinning reserve requirements for system
reliability.
4. Market Studies
Researchers can use MOST to study locational marginal pricing (LMP), congestion
costs, and generator profits under realistic network constraints.
17
5.4.2 Branch Data
MOST extends MATPOWER with key functionalities required for UC. These include:
Reserves ensure the system can respond to sudden demand changes or generator outages.
MOST can:
• Allocate spinning and non-spinning reserves across committed units
• Ensure reserve targets are met at every time period
• Account for reserve costs in the total objective function
Reserve handling ensures both economic and reliable operation.
18
By modeling multiple periods simultaneously, MOST produces schedules that are
operationally feasible over the entire day.
1. Open Source – Free to use and modify, ideal for academic research.
2. Flexible – Users can test new algorithms, constraints, or optimization strategies.
3. Scalable – Capable of handling medium- to large-scale systems using DC OPF
approximation.
4. Transparent – Full access to code and input data allows researchers to understand
every step of the optimization.
5. Educational Value – Provides an excellent learning platform for students studying UC,
SCUC, and power system optimization.
5.7 Summary
MATPOWER and MOST together provide a robust and comprehensive framework for UC
studies:
• MATPOWER handles power flow and OPF, supporting both AC and DC analysis.
• MOST extends MATPOWER to multi-period UC, incorporating technical constraints,
start-up/shut-down logic, reserves, and transmission constraints.
• Input files for buses, branches, and generators allow system definition and scenario
modeling.
• Advanced features of MOST enable realistic day-ahead scheduling, reliability
studies, and market simulations.
19
Chapter 6
Mathematical Formulation of Deterministic Unit Commitment
In a deterministic Unit Commitment (UC) problem, the first step is defining decision
variables. These variables represent the decisions that the optimization will make regarding
generator operation over the scheduling horizon.
1. Commitment Variables
Each generator has a binary variable 𝑢𝑖,𝑡 representing whether it is online or offline at
time 𝑡:
1 if generator 𝑖 is ON at time 𝑡,
𝑢𝑖,𝑡 = {
0 if generator 𝑖 is OFF at time 𝑡.
These variables determine the on/off status of each generator, forming the backbone of the UC
model.
The main objective in deterministic UC is to minimize the total operating cost while meeting
demand and respecting all technical constraints. The total cost is composed of:
• Fuel costs associated with generator output
• No-load costs incurred while a generator is online but not producing power
• Start-up and shut-down costs
•
Mathematically, the objective function can be expressed as:
𝑇 𝑁
By optimizing this function, the UC model seeks a schedule that balances economic efficiency
and system reliability.
20
6.3 Generator Operation Constraints
Generators must operate within physical and operational limits to ensure safe and reliable
power production. These constraints include:
This ensures that each generator produces power only when it is online and remains within its
capacity limits.
Unit Commitment cannot ignore the transmission network, as generator outputs must be
deliverable to load centers without overloading lines. Two main types of constraints are
considered:
At every bus, the sum of generator outputs minus load must equal net injections into
the network:
∑ 𝑃𝑖,𝑡 − 𝐷𝑏,𝑡 = ∑ 𝐹ℓ,𝑡
𝑖∈𝐺𝑏 ℓ∈𝐿𝑏
Including these constraints ensures that generation schedules are physically feasible and
prevents network congestion or overloads.
21
6.5 Reserve and Ramp Constraints
• Ramp reserves ensure that generators can quickly adjust output in response to sudden
changes in demand or contingencies.
These constraints guarantee that the system remains secure under varying conditions,
complementing the economic objective.
Combining all the elements, the deterministic UC problem can be formulated as:
Decision Variables:
𝑢𝑖,𝑡 , 𝑃𝑖,𝑡 , 𝑆𝑈𝑖,𝑡 , 𝑆𝐷𝑖,𝑡
Objective Function:
𝑇 𝑁
Subject to:
22
Chapter 7: Implementation Using MATPOWER/MOST
7.1 Preparing Input Data
Before solving a Unit Commitment (UC) problem using MATPOWER and MOST, it is
essential to prepare accurate input data. MOST relies on structured files that describe the
power system, generator characteristics, transmission network, and load demands.
The bus data file defines the nodes of the network, representing where generation or load is
connected. Each bus is characterized by:
• Bus Number: Unique identifier for each bus.
• Bus Type: Slack (reference), PV (generator-controlled voltage), or PQ (load bus).
• Load Demand: Real (MW) and reactive (MVar) power.
• Voltage Magnitude Limits: Minimum and maximum voltage levels.
• Shunt Elements: Capacitors or reactors connected to the bus.
This data allows MOST to calculate power injections, voltage profiles, and line flows across
the network.
Generator files provide information about each unit’s capabilities and costs:
• Capacity Limits: Minimum and maximum generation (MW).
• Fuel Costs: Linear or quadratic coefficients representing cost per MWh.
• Ramp Rates: Maximum allowable increase or decrease in output per hour.
• Minimum Up/Down Times: Ensures generator safety and operational feasibility.
• Start-up/Shut-down Costs: Economic impact of turning units on or off.
Proper generator data ensures that MOST produces realistic and feasible schedules while
minimizing total operating costs.
23
• Renewable generation profiles (wind or solar) can also be included to model variability.
Including accurate load profiles allows the UC model to schedule generators efficiently and
maintain reliability throughout the day.
The MOST case file is the central script used to define and solve the UC problem. It combines
all input data and specifies the parameters for the solver.
Steps to set up the case file include:
1. Loading bus, generator, and branch data using MATPOWER format.
2. Defining the time horizon (typically 24 hours).
3. Specifying load profiles and any renewable generation forecasts.
4. Ensuring the system base values (like MVA base) are consistent across all data.
A properly structured case file allows MOST to understand the system topology and
operational requirements, serving as the foundation for the UC optimization.
24
This script serves as a template for more complex UC studies, allowing users to modify
system size, time horizon, or constraints as needed.
MOST uses MILP solvers to solve the UC problem efficiently. Common solver configurations
include:
• CPLEX or Gurobi: Commercial solvers with fast and robust MILP capabilities.
• MIPS (MATPOWER Interior Point Solver): Built-in solver suitable for smaller
problems.
Configuration steps:
Proper solver configuration ensures that UC optimization is solved quickly and accurately.
After preparing input data, setting up the case file, and configuring the solver, the UC model is
ready to run:
These results allow researchers and operators to analyze economic efficiency, reliability, and
network feasibility of the UC solution.
25
CHAPTER-8
8.1 CODE
function most_ex6_uc(quiet)
define_constants;
verbose = 1;
mpopt = mpoption('verbose', verbose);
mpopt = mpoption(mpopt, '[Link]', 1);
mpopt = mpoption(mpopt, 'model', 'DC');
mpopt = mpoption(mpopt, '[Link]', 'DEFAULT');
if ~verbose
mpopt = mpoption(mpopt, '[Link]', 0);
end
mpopt = mpoption(mpopt, 'most.price_stage_warn_tol', 1e-5);
if have_feature('cplex')
%mpopt = mpoption(mpopt, '[Link]', 0); %% automatic
%mpopt = mpoption(mpopt, '[Link]', 1); %% primal simplex
mpopt = mpoption(mpopt, '[Link]', 2); %% dual simplex
%mpopt = mpoption(mpopt, '[Link]', 3); %% network simplex
%mpopt = mpoption(mpopt, '[Link]', 4); %% barrier
mpopt = mpoption(mpopt, '[Link]', 0);
mpopt = mpoption(mpopt, '[Link]', 0);
mpopt = mpoption(mpopt, '[Link]', 2);
end
if have_feature('glpk')
mpopt = mpoption(mpopt, '[Link]', 0);
mpopt = mpoption(mpopt, '[Link]', 1e-10);
mpopt = mpoption(mpopt, '[Link]', 1e-10);
end
if have_feature('gurobi')
%mpopt = mpoption(mpopt, '[Link]', -1); %% automatic
%mpopt = mpoption(mpopt, '[Link]', 0); %% primal simplex
mpopt = mpoption(mpopt, '[Link]', 1); %% dual simplex
%mpopt = mpoption(mpopt, '[Link]', 2); %% barrier
mpopt = mpoption(mpopt, '[Link]', 2);
mpopt = mpoption(mpopt, '[Link]', 0);
mpopt = mpoption(mpopt, '[Link]', 0);
end
if have_feature('mosek')
sc = mosek_symbcon;
mpopt = mpoption(mpopt, 'mosek.lp_alg', sc.MSK_OPTIMIZER_DUAL_SIMPLEX);
mpopt = mpoption(mpopt, '[Link].MSK_IPAR_MIO_NODE_OPTIMIZER',
sc.MSK_OPTIMIZER_DUAL_SIMPLEX);
mpopt = mpoption(mpopt, '[Link].MSK_IPAR_MIO_ROOT_OPTIMIZER',
sc.MSK_OPTIMIZER_DUAL_SIMPLEX);
mpopt = mpoption(mpopt, '[Link].MSK_DPAR_MIO_TOL_ABS_RELAX_INT', 1e-9);
mpopt = mpoption(mpopt, '[Link].MSK_DPAR_MIO_TOL_REL_GAP', 0);
mpopt = mpoption(mpopt, '[Link].MSK_DPAR_MIO_TOL_ABS_GAP', 0);
end
if have_feature('intlinprog')
mpopt = mpoption(mpopt, '[Link]', 'dual-simplex');
mpopt = mpoption(mpopt, '[Link]', 'dual-simplex');
mpopt = mpoption(mpopt, '[Link]', 1e-9);
mpopt = mpoption(mpopt, '[Link]', 0);
mpopt = mpoption(mpopt, '[Link]', 0);
26
mpopt = mpoption(mpopt, '[Link]', 1e-6);
end
casefile = 'ex_case3b';
mpc = loadcase(casefile);
xgd = loadxgendata('ex_xgd_uc', mpc);
[iwind, mpc, xgd] = addwind('ex_wind_uc', mpc, xgd);
profiles = getprofiles('ex_wind_profile_d', iwind);
profiles = getprofiles('ex_load_profile', profiles);
nt = size(profiles(1).values, 1);
mpc_full = mpc;
xgd_full = xgd;
[Link](:, [STARTUP SHUTDOWN]) = 0;
[Link](2) = 1;
[Link](3) = 250;
[Link](3) = 1e-6;
[Link](3) = 1e-6;
mpopt = mpoption(mpopt, 'most.dc_model', 0); % use model with no network
mdi = loadmd(mpc, nt, xgd, [], [], profiles);
mdo = most(mdi, mpopt);
if verbose
ms = most_summary(mdo);
end
mpopt = mpoption(mpopt, 'most.dc_model', 1); % use DC network model (default)
mdo = most(mdi, mpopt);
if verbose
ms = most_summary(mdo);
end
[Link](2, [STARTUP SHUTDOWN]) = [ 200 200];
[Link](3, [STARTUP SHUTDOWN]) = [3000 600];
mdi = loadmd(mpc, nt, xgd, [], [], profiles);
mdo = most(mdi, mpopt);
if verbose
ms = most_summary(mdo);
end
[Link](2) = 3;
mdi = loadmd(mpc, nt, xgd, [], [], profiles);
mdo = most(mdi, mpopt);
if verbose
ms = most_summary(mdo);
end
27
Chapter 9: Case Study and Results
Deterministic Unit Commitment Results
The objective function value obtained from the deterministic Unit Commitment optimization
is:
𝑓 = −4,987,029.64
This represents the minimum total generation cost over the 12-hour scheduling horizon. The
negative value indicates the cost minimization achieved by optimally scheduling generator
commitment and dispatch, while respecting all operational constraints.
Visual: A textual box or annotation summarizing the minimum cost at the top of your
document.
Generator t=1 t=2 t=3 t=4 t=5 t=6 t=7 t=8 t=9 t=10 t=11 t=12
1 1 1 1 1 1 1 1 1 1 1 1 1
2 1 1 1 1 1 1 1 1 1 1 1 1
3 1 1 1 1 1 1 1 0 0 0 0 0
4 1 1 1 1 1 1 1 1 1 1 1 1
5 1 1 1 1 1 1 1 1 1 1 1 1
6 1 1 1 1 1 1 1 1 1 1 1 1
Observation:
• Generators 1, 2, 4, 5, and 6 are online throughout the 12-hour period.
• Generator 3 shuts down after hour 7, likely due to reduced demand or cost optimization.
28
9.3. Generator Output (PG)
Generator t=1 t=2 t=3 t=4 t=5 t=6 t=7 t=8 t=9 t=10 t=11 t=12
1 186.17 200 181.17 199 190 200 200 200 200 200 200 200
2 65 66.17 65 65 65 70 90 102.5 77.5 77.5 91.5 112.5
3 122.67 122.67 167.67 110 110 110 60 - - - - -
4 -440 -480 -540 -525 -500 -450 -400 -350 -300 -325 -375 -425
5 80 65 60 82 100 70 50 85 100 110 106 95
6 -13.84 26.16 66.16 69 35 - - -37.5 -77.5 -62.5 -22.5 17.5
Observation:
• Generators 1 and 2 provide base and mid-range load respectively.
• Generator 3 is offline after t=7.
• Negative values (Generators 4 and 6) may represent pumped storage or reverse
power flow.
29
[Link] Storage System (ESS) SoC
ESS t=1 t=2 t=3 t=4 t=5 t=6 t=7 t=8 t=9 t=10 t=11 t=12
1 196.33 170.17 104 35 - - - 37.5 115 177.5 200 182.5
Observation:
30
9.6. Locational Marginal Price (LMP)
Bus t=1 t=2 t=3 t=4 t=5 t=6 t=7 t=8 t=9 t=10 t=11 t=12
1 25 30 25 25 25 30 30 30 30 30 30 30
2 25 35 60 39.17 39.17 41.67 30 30 30 30 30 41.67
3 25 40 95 53.33 53.33 53.33 30 30 30 30 30 53.33
Observation:
• Price spikes at t=3 for Bus 2 and 3 indicate congestion or scarcity periods.
• Bus 1 remains relatively stable due to sufficient generation supply.
Branch t=1 t=2 t=3 t=4 t=5 t=6 t=7 t=8 t=9 t=10 t=11 t=12
1 16.17 26.17 6.17 24 15 30 60 72.5 59.17 55.83 61.83 72.5
2 235 240 240 240 240 240 230 230 218.33 221.67 229.67 240
3 218.83 213.83 233.83 216 225 210 170 157.5 159.17 165.83 167.83 167.5
Observation:
31
9.8. Lagrange Multipliers (MU_F)
Branch t=1 t=2 t=3 t=4 t=5 t=6 t=7 t=8 t=9 t=10 t=11 t=12
1 - - - - - - - - - - - -
2 - 15 105 42.5 42.5 35 - - - - - 35
3 - - - - - - - - - - - -
Observation:
• Only Branch 2 shows non-zero Lagrange multipliers, indicating active branch flow
constraints.
• These values reflect the marginal cost of relaxing the branch flow limit.
32
Chapter 10: Conclusion and Future Work
10.1 Summary of Findings
The deterministic Unit Commitment (UC) study performed in this project produced several
meaningful observations regarding system operation, cost behavior, and the influence of
network constraints.
First, the UC model successfully identified the least-cost generation schedule while ensuring
that all operational limits—such as ramping, generator capacities, and minimum up/down
times—were fully respected. The dispatch pattern followed a logical structure: base-load units
operated steadily throughout the day, intermediate units responded to moderate changes in
demand, and peaking units were used only when demand rose sharply. This confirmed that the
optimization model appropriately differentiated between generator types based on cost and
flexibility.
One significant impact of transmission limits is congestion management. When power cannot
be freely transferred across the system, the optimization must modify generator outputs to
avoid line overloads. These redispatch actions directly affect system costs. Even though they
may increase operating expenses, they maintain grid reliability and prevent potential violations
that could lead to outages.
33
The MATPOWER Optimal Scheduling Tool (MOST) proved to be a highly capable platform
for conducting deterministic UC analysis. MOST efficiently solved the mixed-integer
optimization problem, generating feasible commitment and dispatch schedules across the 24-
hour horizon.
In all cases tested—ranging from unconstrained UC to scenarios that included ramping limits,
startup costs, and network constraints—MOST delivered solutions reliably and within
reasonable computation times. Its internal solvers worked smoothly with integer variables and
handled complex operational constraints without difficulty.
The resulting schedules aligned with expected system behavior, reinforcing that MOST is both
accurate and robust. For research, academic projects, and small-scale practical studies, MOST
offers an excellent environment for analyzing short-term scheduling problems.
10.4 Limitations
While the model performed well, several limitations should be acknowledged.
First, the deterministic formulation assumes perfect foresight of demand and renewable output.
In reality, forecasting errors are unavoidable, especially for weather-dependent sources like
wind and solar. This makes purely deterministic schedules less adaptable to uncertainty.
Second, renewable generation was not explicitly incorporated in the main UC formulation.
Since modern power grids increasingly depend on renewables, excluding them reduces the
realism and applicability of the model.
Another limitation is the absence of security constraints. Without N-1 contingency analysis,
the system is not guaranteed to operate safely if a major component—such as a generator or
transmission line—fails unexpectedly.
Finally, economic market interactions such as bidding strategies, marginal pricing, and market-
clearing mechanisms were outside the project scope. These factors are important in real-world
system operations and can heavily influence optimal dispatch decisions.
Identifying these limitations provides direction for improving and expanding the UC model in
future work.
34
Stochastic UC: Introducing uncertainty in load and renewable forecasts would allow the model
to generate schedules that are more resilient to real operating conditions. This would support
risk-aware decision-making.
Renewable Integration: Explicitly modeling wind, solar, and other variable resources ensures
that the UC problem reflects the increasing shift toward clean energy sources. This also enables
studies involving curtailment, variability, and forecast errors.
35
REFERENCES
[14] J. Carpentier, “Optimal power flows,” Int. J. Electr. Power Energy Syst., vol. 1, no. 1, pp.
3–15, Jan. 1979.
[15] S. Frank, I. Steponavice, and S. Rebennack, “Optimal power flow: A bibliographic survey
I—Formulations and deterministic methods,” Energy Syst., vol. 3, pp. 221–258, 2012.
36
[16] H. Sun et al., “Review of challenges and research opportunities for optimal power flow,”
IEEE Trans. Power Syst., vol. 33, no. 3, pp. 3410–3425, May 2018.
[17] S. M. Shahidehpour, H. Yamin, and Z. Li, Market Operations in Electric Power Systems.
New York, NY, USA: Wiley, 2002.
[18] P. Shah, S. Ahmed, and G. Latorre, “A review of fast algorithms for solving unit
commitment and economic dispatch problems,” IEEE PES General Meeting, pp. 1–8, 2010.
[19] H. Ye, Z. Li, and M. Shahidehpour, “Adequacy assessment of power systems considering
demand response and unit commitment,” IEEE Trans. Power Syst., vol. 30, no. 4, pp. 2235–
2243, Jul. 2015.
37