Pipeline transient optimization via Genetic Algorithm