Economic Load Dispatch main doc
Algorithm
-
Start
Initialize all required variables and data structures.
- Input Generator Data
- For each generator:
- Read min & max capacities
- Read cost coefficients: a, b, c
- Input User Requirements
- Read total power demand
- Set tolerance for acceptable error
- Set maximum number of iterations
-
Initialize Lambda
Set an initial value for lambda (e.g. 0.0)
- Repeat Until Convergence or Max Iteration
For each iteration:
- For each generator:
- Compute power using lambda and cost coefficients
- Clamp power within [min_capacity, max_capacity]
- Calculate total generated power
-
Check if |
total_power - demand |
< tolerance: |
- If yes, exit loop (converged)
- Else, adjust lambda based on error
- Output Results
- Final lambda value
- Power output for each generator
- Total cost (optional)
- End