Skip to content

Commit

Permalink
Update test_pricing_solver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz authored Mar 5, 2024
1 parent 2ce14d0 commit 97df2b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pricing_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)])
Expand Down

0 comments on commit 97df2b2

Please sign in to comment.