My project is to optimize the location of statcom to improve the voltage stability in a given system data using genetic algorithm.First i did a nrlf and later manually optimized the bus at which voltage is below rated value by integrating statcom into nrlf at that particular
bus.Now i am trying to optimize it using genetic algorithm.Iam trying to use the 'optimtool' present in matlab to do this.For this i need to write the fitness function.I have a little idea on how to do it (as i am trying to maintain voltage stable then minimizing the deviation in it should come under the fitness function) but i am unable to relaize how to write
it.So i would love it if any one can help me with this issue.Thank you in advance