mostly reformat

This commit is contained in:
Laurent Perron
2024-04-08 11:34:45 +02:00
parent e1c19b6c94
commit 622483b682
20 changed files with 56 additions and 41 deletions

View File

@@ -22,6 +22,7 @@ from ortools.algorithms.python import knapsack_solver
class PyWrapAlgorithmsKnapsackSolverTest(absltest.TestCase):
def RealSolve(self, profits, weights, capacities, solver_type, use_reduction):
solver = knapsack_solver.KnapsackSolver(solver_type, "solver")
solver.set_use_reduction(use_reduction)