ELD_using_reduced_gradient
ELD_using_reduced_gradient
Contents
1 Introduction 3
2 Problem Formulation 3
2.1 Objective Function . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2.1 Power Balance Constraint . . . . . . . . . . . . . . . . 3
2.2.2 Generator Capacity Constraints . . . . . . . . . . . . . 4
2.3 Transmission Line Losses . . . . . . . . . . . . . . . . . . . . . 4
4 Code Implementation 5
4.1 Main Program Structure . . . . . . . . . . . . . . . . . . . . . 5
4.1.1 Data Initialization . . . . . . . . . . . . . . . . . . . . 6
4.1.2 Finding Feasible Initial Solution . . . . . . . . . . . . . 6
4.1.3 Main Iteration Loop . . . . . . . . . . . . . . . . . . . 7
4.2 Reduced Gradient Function . . . . . . . . . . . . . . . . . . . 9
1
6 Example Test Case 15
6.1 Generator Data . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.2 System Demand . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.3 Expected Results Analysis . . . . . . . . . . . . . . . . . . . . 15
8 Conclusion 16
8.1 Future Enhancements . . . . . . . . . . . . . . . . . . . . . . . 17
2
1 Introduction
Economic Load Dispatch (ELD) is a fundamental optimization problem in
power system operation that aims to determine the optimal output of mul-
tiple generating units to meet a specific load demand at the lowest possible
cost while satisfying various operational constraints. This document explains
the implementation of the Reduced Gradient Method for solving the ELD
problem, taking into account transmission line losses.
2 Problem Formulation
2.1 Objective Function
The objective of the ELD problem is to minimize the total generation cost:
N
X
min Ci (PGi ) (1)
i=1
where:
• N is the number of generators
2.2 Constraints
2.2.1 Power Balance Constraint
The total power generated must equal the sum of the total demand and the
transmission line losses:
N
X
PG i = PD + PL (3)
i=1
where:
3
• PD is the total load demand
PGmin
i
≤ PGi ≤ PGmax
i
(4)
4
1
P Fi = (9)
1 − 2Bii PGi
The reduced gradient method classifies variables into dependent and in-
dependent sets. In the ELD problem, we typically select one generator as the
dependent variable (usually the last one) and adjust it to satisfy the power
balance constraint.
4 Code Implementation
4.1 Main Program Structure
The main program is structured as follows:
1. Data initialization
5
4.1.1 Data Initialization
6
9 target_gen = pd + i n i t i a l _ l o s s _ e s t i m a t e ;
10
7
4 a, b, c,
lambda ,
ploss_coeff ,
pd , ploss ,
pf ,
pg_old ,
pg_min ,
pg_max ) ;
5
8
34 end
35 end
Listing 3: Main iteration loop
22 % Recalculate losses
23 ploss_updated = sum ( ploss_coeff .* pg .^2) ;
24
9
26 dependent_gen = N ;
27
49 % Recalculate losses
50 ploss_updated = sum ( ploss_coeff .* pg .^2) ;
51
10
61 gradient_vector ( i ) = 0;
62 continue ;
63 elseif pg ( i ) >= pg_max ( i ) &&
gradient_vector ( i ) < 0
64 gradient_vector ( i ) = 0;
65 continue ;
66 end
67
11
93
12
128 % Check convergence
129 power_balance = sum ( pg ) - ( pd + ploss_updated ) ;
130 if max_gradient < error_tolerance &&
abs ( power_balance ) < error_tolerance
131 break ;
132 end
133 end
134
• Estimating losses
13
The adaptive step size mechanism is crucial for balancing between speed
and stability of convergence. When the solution is far from optimal, larger
steps help reach the vicinity of the optimum quickly. As the solution ap-
proaches the optimum, smaller steps provide more precise convergence with-
out overshooting.
14
Using multiple convergence criteria ensures that the final solution is not
only optimal but also feasible and stable. The algorithm terminates only
when all criteria are satisfied, providing a robust solution to the economic
load dispatch problem.
15
7 Visualization and Analysis
The code includes visualization of:
• Generator outputs compared to their limits
• Cost curves for each generator
• Incremental cost curves
• Operating points on the cost curves
These visualizations help in understanding the economic operation of the
power system and verifying that the solution satisfies the equal incremental
cost criterion, adjusted for losses. Visual analysis provides intuitive confir-
mation that the numerical solution is correct and allows quick identification
of potential issues, such as generators operating at their limits.
8 Conclusion
The reduced gradient method provides an effective approach to solving the
Economic Load Dispatch problem with transmission line losses. The imple-
mentation includes:
16
1. Proper handling of generator limits
The reduced gradient method, with its ability to handle constraints effec-
tively, provides a strong foundation for these extensions, making it a valuable
tool for power system operation and planning.
17