Evolution algorithm to generate an optimal layout.