MATPOWER does not use GA for any of its optimizations, so it seems like this is related to your own code and not to MATPOWER. I suggest checking the documentation for the GA solver you are using.
Ray > On Jun 21, 2017, at 4:14 AM, Roshani Thapa <tha.rosh...@gmail.com> wrote: > > I received this message after running my code for optimisation with GA for > about 6 hours "Optimization terminated: average change in the penalty fitness > value less than options.TolFun but constraints are not satisfied." the exit > flag was -2 after the optimisation termination. What is this and when does > this happen? How am i supposed to get rid of it? > >