Optimization of the beam line characteristics by means of a genetic algorithm | Synapse