aliamna
Newbie

I have general code of genetic algorithm with reproduction, crossover, mutation etc but i think i can use gaoptimset directly also. I need to include my own constraints in it and my objective function is minimizing operation cost of CIGRE MV Distribution network. I have PV,battery, generator and load in network and i want to do optimization. I then integrate this GA with MATPOWER for power flows. Is anyone help me regarding GA code involving such constraints like generator limits, voltage bounds, flow limits, generator output power etc. Will anyone please help me and provide this code.Thank you