Improving performance of a hydraulic press with real-time nonlinear control