Skip to content

Commit be266f1

Browse files
committed
reformat
1 parent 5c87f27 commit be266f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ortools/algorithms/knapsack_solver.cc

+7-7
Original file line numberDiff line numberDiff line change
@@ -1263,16 +1263,16 @@ int64_t KnapsackMIPSolver::Solve(TimeLimit* /*time_limit*/,
12631263

12641264
best_solution_.assign(num_items, false);
12651265
if (status == MPSolver::OPTIMAL || status == MPSolver::FEASIBLE) {
1266-
// Store best solution.
1267-
const float kRoundNear = 0.5;
1268-
for (int j = 0; j < num_items; ++j) {
1269-
const double value = variables.at(j)->solution_value();
1270-
best_solution_.at(j) = value >= kRoundNear;
1271-
}
1266+
// Store best solution.
1267+
const float kRoundNear = 0.5;
1268+
for (int j = 0; j < num_items; ++j) {
1269+
const double value = variables.at(j)->solution_value();
1270+
best_solution_.at(j) = value >= kRoundNear;
1271+
}
12721272

12731273
*is_solution_optimal = status == MPSolver::OPTIMAL;
12741274

1275-
return -objective->Value() + kRoundNear;
1275+
return -objective->Value() + kRoundNear;
12761276
} else {
12771277
*is_solution_optimal = false;
12781278
return 0;

0 commit comments

Comments
 (0)