Optimization Methods for Spur Gear Dynamics