linear_solver: Fix indentation

This commit is contained in:
Corentin Le Molgat
2022-01-17 11:01:32 +01:00
parent 5d7b310bda
commit 6a1559f0a9
9 changed files with 168 additions and 149 deletions

View File

@@ -74,12 +74,13 @@ public class BinPackingMip {
}
// The bin capacity contraint for bin j is
// sum_i w_i x_ij <= C*y_j
// To define this constraint, first subtract the left side from the right to get
// To define this constraint, first subtract the left side from the right to
// get
// 0 <= C*y_j - sum_i w_i x_ij
//
// Note: Since sum_i w_i x_ij is positive (and y_j is 0 or 1), the right side must
// be less than or equal to C. But it's not necessary to add this constraint
// because it is forced by the other constraints.
// Note: Since sum_i w_i x_ij is positive (and y_j is 0 or 1), the right
// side must be less than or equal to C. But it's not necessary to add this
// constraint because it is forced by the other constraints.
for (int j = 0; j < data.numBins; ++j) {
MPConstraint constraint = solver.makeConstraint(0, infinity, "");