Optimization of Ion Beam Elements Using Mathematical Transport Formalism | Synapse