descent
descent copied to clipboard
Validate user supplied objective functions
The user is expected to provide a function that computes the objective and gradient. Right now, if the user provides a function that just returns the objective, there is a cryptic error. This should be more user-friendly