This commit is contained in:
2025-01-15 21:15:54 +01:00
parent 3ebe0b7191
commit a0438c4af8
2 changed files with 6 additions and 4 deletions

View File

@@ -536,6 +536,8 @@ class Optimizer:
for i in range(len(b_eq)): # Iterate over rows of A_eq
prob += (pl.lpSum([A_eq[i][j] * x[j] for j in range(L*L)]) == b_eq[i])
print(prob)
# 6. Solve the problem
prob.solve(pl.PULP_CBC_CMD(msg=False, gapRel=0.3))