Hi
I am using the PSO code to find the minimum cost of energy consumed in a building. I wrote the program of strategy by using the if loop but I have a problem with the result so anyone could help me please by giving me an example of strategy program.
equation of power balancing : P_pv (k)+P_wt (k)-P_bat (k)+P_g (k)-P_load(k)=0
Best regards