'tuple' object has no attribute '_cmodel'
回答済みHello, when I run the optimizer, I get the following error, I don't know the reason for this error, can you give me some advice
File "/home/sengbingfeng/pjh/ZTF/ztf_sim-master/ztf_sim-master/ztf_sim/optimize.py", line 476, in tsp_optimize
m.optimize(subtourelim)
^^^^^^^^^^^^^^^^^^^^^^^
File "src/gurobipy/_model.pyx", line 855, in gurobipy._model.Model.optimize
File "src/gurobipy/_model.pyx", line 1422, in gurobipy._model.Model.update
KeyError: 1176
Exception ignored in: <cyfunction Model.__del__ at 0x7f9c177b0860>
Traceback (most recent call last):
File "src/gurobipy/_model.pyx", line 187, in gurobipy._model.Model.__del__
File "src/gurobipy/_model.pyx", line 287, in gurobipy._model.Model.close
File "src/gurobipy/_model.pyx", line 247, in gurobipy._model.Model.dispose
AttributeError: 'tuple' object has no attribute '_cmodel
0
-
Hi,
Although the error messages are not the same I suspect the underlying cause is the same as in this post:
https://support.gurobi.com/hc/en-us/community/posts/31310052534161/comments/31311015936529
Note that upgrading to 12.0.1 is enough to avoid this issue.
- Riley
0 -
Thank you very much, the problem has been solved
0
サインインしてコメントを残してください。
コメント
2件のコメント