Optimal Design of Parameters in Nonlinear Energy Vibration Impact Coupled to a beam