Please run the code, this code is correct and working.
In the above code, the Genetic Algorithm is base optimization,
Your Task,
You have to change optimization from GA to IWD.
Check reference paper for just IWD technique.
Both 14 and 57 have the same problem formulation,
Apply IWD optimization to 14 bus system, when it works then apply it to 57 bus system.
By changing, optimization from GA to IWD results should be changed a little bit
By changing iterations
DG size, location, and another stability index should be changed.
Dear sir.
Your project attracted my attention at first glance, because I've extensive experience in IWD Implementation Programming.
I'm really confident about your project, and very eager to join your project.
If we have a chance to cooperate, I'll do my best to provide wonderful result.
Looking forward to your response.
Best Regards.