Codes, equations and algorithms for economic load dispatch in power systems.
This project is maintained by Sree2011
Start
Initialize all required variables and data structures.
Initialize Lambda
Set an initial value for lambda (e.g. 0.0)
| Check if $ | power_{total} - demand | < tolerance$: |
flowchart TD
A[Start] --> B[Initialize variables and data structures]
B --> C[Input Generator Data]
C --> D["Read min & max capacities and cost coefficients (a, b, c)"]
D --> E[Input User Requirements]
E --> F[Read total power demand, tolerance, max iterations]
F --> G["Initialize Lambda (e.g. λ = 0.0)"]
G --> H{Repeat Until Converged or Max Iterations}
H --> I[For each generator:<br>Compute power using λ and cost coefficients]
I --> J[Clamp power within min & max limits]
J --> K[Calculate total generated power]
K --> L{"Is |Total Power - Demand| < Tolerance?"}
L -- Yes --> M["Converged: Exit Loop"]
L -- No --> N[Adjust Lambda based on error]
N --> H
M --> O[Output Results:<br>Final λ, Generator Outputs, Total Cost]
O --> P[End]