Use function as objective of JuMP

No. Again, that’s not a JuMP limitation, Gurobi just doesn’t do MINLP. FWIW, SCIP has been working fine for me on Linux. See Use of MINLP in Julia - #10 by tkoolen for my installation notes.