Gradient-Based Differential Neural-Solution to Time-Dependent Nonlinear Optimization