In a sophisticated MATLAB and Simulink simulation, I had employed Genetic Algorithm (GSA) and Particle Swarm Optimization (PSO) algorithms to regulate a solar system with the goal of optimizing electric power generation
You can read full documentation in DetailDocument.pdf