Checked JOptimizer witha  simple quadratic test.

Fixed some issues with gurobi.