Hi Antonio,
This error indicates that you have a NaN or Inf in one of the columns
of the constraint matrix. You are only allowed to have real numbers in
the constraint matrix. You can find the row and column index of the
bad coefficient in the matrix by issuing the following command in
Matlab:
>> [i, j, v] = find(isnan(A) | isinf(A))
Here A is the constraint matrix.
Chris
You can try to replace the infs with a large value like 1e6, but this
could cause your model to be poorly scaled and you might run into
numerical trouble. You should see if you can reformulate the model to
not require coefficients of infinity.
> There is two ways, it can be a mathwork error, in case which i would
> have to review all the code, or it can be a 32-bit version-64 bit
> version Gurobi ghost for believers.
If find(isinf(A)) is returning indices, the problem is in the code
that forms the A matrix. But you should always be careful to be
consistent with MATLAB and Gurobi. That is, if you are using 64 bit
MATLAB you also need to use the 64 bit version of Gurobi.
Good luck!
Chris