genetic algorithm

Hi,
How can a distribution network with pumps and valves be optimized by genetic algorithm using the epanet matlab toolkit.
how can I do it?