2
$\begingroup$

When I solve the model, it happen "Error 10020: Objective Q not PSD" in the end.

The gurobi website said, to resolve this issue, set the NonConvex parameter to 2.

I type "model.set(GRB_IntParam_NonConvex, 2);", but it said "GRB_IntParam_NonConvex" undefined.

$\endgroup$
2

1 Answer 1

2
$\begingroup$

Assume that you define your model as m. Try the following where I used the parameter's name to set the value:

m->set("NonConvex", "2.0")
$\endgroup$
1
  • 1
    $\begingroup$ I'll try it, Thanks! $\endgroup$
    – Routine Ma
    May 29 at 6:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.