ykrist / darp-rf

Restricted Fragment Algorithm for the Dial-A-Ride Problem
10 stars 3 forks source link

Rare Bug #3

Open Thibaud-Ardoin opened 3 years ago

Thibaud-Ardoin commented 3 years ago

Hello,

Very rarely (I would say one every 250-500k runs) I fell into this error that blocks the code: File "/home/external/darp_rf/run_rf_algo.py", line 110, in run_rf_algo model.update_var_values() File "/home/external/darp_rf/oru/grb.py", line 1127, in update_var_values setattr(self, val_attr, getattr(self, var_attr).X) File "src/gurobipy/var.pxi", line 91, in gurobipy.gurobipy.Var.__getattr__ File "src/gurobipy/var.pxi", line 119, in gurobipy.gurobipy.Var.getAttr File "src/gurobipy/attrutil.pxi", line 100, in gurobipy.gurobipy.__getattr AttributeError: Unable to retrieve attribute 'X'

Best, T.

ykrist commented 3 years ago

That errors occurs when an integer solution is expected to exist, but is not present. This usually means that either

You should be able to see which it is in the Gurobi log.