x <= M * yWarning: max constraint violation (3.4856e-02) exceeds tolerance (possibly due to large matrix coefficient range)which may explain the error. Before I reformulated several constraints, Gurobi also printed out a warning that the matrix coefficient range is very large:
Warning: Model contains large matrix coefficient range. Consider reformulating model or setting NumericFocus parameter to avoid numerical issues.The current stats of the model look as follows:
Optimize a model with 647954 rows, 406705 columns and 5730415 nonzeros
Coefficient statistics:
Matrix range [4e-06, 4e+05]
Objective range [2e-01, 1e+00]
Bounds range [1e+00, 2e+04]
RHS range [7e-04, 1e+05]
As suggested in the warning message, I tried to set NumericFocus to the maximum of 3. However, besides an increased running time, there was no difference in the result.
So, do you have any suggestions on how to avoid these numerical issues?
Thanks in advance.
P.S.: A dirty workaround like 100*x <= 100*M*y leads to correct results.
--
---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.