ampl / mp

An open-source library for mathematical programming
https://mp.ampl.com
Other
229 stars 42 forks source link

"Call failed" in x-gurobi on sudoku alldiff example #169

Closed 4er4er4er closed 2 years ago

4er4er4er commented 2 years ago

On the AMPL sudoku example using alldiff, x-gurobi aborts with Gurobi error 10018:

ampl: model sudoku.mod;
ampl: data sudokuHard.dat;

ampl: solve;
x-Gurobi 9.5.0: Set parameter Username

Error: Adding constraint LinConLERhs to GurobiModelAPI: Call failed: 'GRBaddconstr(model(), lc.size(), (int*)lc.pvars(), (double*)lc.pcoefs(), GRB_LESS_EQUAL, lc.rhs(), NULL)' with code 10018, Gurobi message: Problem adding constraints

Error executing "solve" command:
can't open C:\Users\4er\AppData\Local\Temp\at6912.sol
<BREAK>
ampl: 
glebbelov commented 2 years ago

Done. Do I read correctly that #158 is fixed?

4er4er4er commented 2 years ago

I can test it. Where are the latest x-gurobi binaries available? In the portal, the x-gurobi downloads are dated 20220217.

glebbelov commented 2 years ago

x-gurobi has been updated.