Horse Herd Optimization Tuned the PI Controller to STATCOM for Voltage Regulation
Objective Function (Cost Function):Â
The optimization process begins by defining a cost function. In this context, the cost function is aimed at minimizing the error of the AC voltage controller, DC voltage controller, and current controller. The errors (E1, E2, E3, E4) are measured.
Initialization:Â The optimization algorithm (referred to as "H optimization") requires initialization. This involves providing details such as lower and upper bounds, velocity limits, and the maximum number of iterations.
Random Initialization:Â Random positions and velocities are generated for each "horse" or parameter set in the optimization. These parameters include KP and Ka for the AC voltage controller, DC voltage controller, and current controller.
Cost Calculation:Â The objective function (cost function) is calculated for each set of parameters. The results are stored as a cost function for further analysis.
Global Best Calculation:Â The global best solution is determined based on the calculated costs for each set of parameters.
Main Loop:Â The main optimization loop involves updating positions and velocities based on certain conditions. Different categories of horses (Alpha, Beta, Gamma, Delta) are considered, and velocities are updated accordingly.
Iteration:Â The optimization process iterates through the main loop, continuously updating positions and velocities, and calculating costs until a specified number of iterations are reached (in this case, 10 iterations).
Result Display:Â The optimal values for KP and Ka for AC voltage controller, DC voltage controller, and current controller are displayed in the command window.
Integration with Power System Model:Â The optimized parameters (KP and Ka) are then used in a state-space model representing a power system. The model includes elements such as a programmable voltage source, transformers, filter inductors, and voltage source converters with control systems.
Simulation:Â The power system model is simulated, and the results, including errors and optimized parameters, are displayed.
Conclusion:Â The optimization process aims to achieve optimal control of the power system by fine-tuning controller parameters to minimize errors and enhance performance.
Comments