2d bin packing using or-tools: AddNoOverlap2D and OnlyEnforceIf gives MODEL_INVALID

前端 未结 0 1453
梦谈多话
梦谈多话 2021-02-20 07:28

I am playing with a 2d bin packing model. I tried this using:

for j in range(n):
  for i in range(j):
    model.Add(b[i] == b[j]).OnlyEnforceIf(b2[(i,j)])  # not          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题