Neural Control of a Nonlinear Elastic Two-Mass System