【发布时间】:2022-06-07 20:14:04
【问题描述】:
有什么方法可以检查模型并查看已定义哪些约束?
例如,https://github.com/google/or-tools/blob/stable/examples/python/sudoku_sat.py 定义如下:
# AllDifferent on rows.
for i in line:
model.AddAllDifferent(grid[(i, j)] for j in line)
这是否会在模型(例如,我实体约束的数量)?
标签: python constraints or-tools