Minimizing a nonlinear user function

JuMP is not designed to optimize functions like this.

Take a read of Should you use JuMP? · JuMP?