Fail to add min constraint
ユーザーの入力を待っています。Hi,
I am trying to add some min() and max() constraints to my model(). But the model generated doesn't have these constraints and doesn't provide any error information neither. The code of constraints is as follows, where the element in self.x self.y and self.z are variable. Any help would be greatly appreciated!
self.m.addConstrs(self.z[i, j, k] == min_(self.x[i, j, k], self.y[i, j, k])
for i in set1
for j in set2
for k in set3)
0
-
Hi,
Could you please provide a minimal reproducible example? In particular, how do you see that
the model generated doesn't have these constraints
Did you write the constructed model to a file via the write method and cannot find the \(\min\) constraints?
Best regards,
Jaromił0
サインインしてコメントを残してください。
コメント
1件のコメント