AMPL Error Gurobi :Set NonConvex=2 to solve model
AnsweredI have this error in AMPL with gurobi solver : Error: Objective Q not PSD (negative diagonal entry). Set NonConvex=2 to solve model.
I don't know where to insert NonConvex=2 , in file.mod or in file.run, or in file.dat?
0
-
Set Gurobi's nonconvex option in your .run file.
- If you are already setting a gurobi_options string, then add nonconvex=2 to it.
- If you are not yet setting a gurobi_options string, then add this command before the "solve" command:
option gurobi_options 'nonconvex=2';
1
Please sign in to leave a comment.
Comments
1 comment