diff --git a/tests/test_pricing_solver.py b/tests/test_pricing_solver.py index 913f707..7beedd8 100644 --- a/tests/test_pricing_solver.py +++ b/tests/test_pricing_solver.py @@ -5,7 +5,7 @@ from pygcgopt import Model, PricingSolver, GCG_PRICINGSTATUS -from ortools.algorithms import pywrapknapsack_solver +from ortools.algorithms.python import knapsack_solver import pytest @@ -104,7 +104,7 @@ def solve(self, pricingprob, probnr, dualsolconv): elif capacity == 0: solitems = [] else: - knapsackSolver = pywrapknapsack_solver.KnapsackSolver( + knapsackSolver = knapsack_solver.KnapsackSolver( pywrapknapsack_solver.KnapsackSolver.KNAPSACK_DYNAMIC_PROGRAMMING_SOLVER, "KnapsackExample" ) knapsackSolver.Init(profits, [weights], [int(capacity)])