linear_solver: Fix indentation
This commit is contained in:
@@ -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, "");
|
||||
|
||||
Reference in New Issue
Block a user