JuMP User-Defined Function, Value and Gradient At Once

Brilliant - thanks!