Skip to content

Commit

Permalink
Merge branch 'binpacking_and_mipsolver' of https://github.com/QUARK-f…
Browse files Browse the repository at this point in the history
…ramework/QUARK into binpacking_and_mipsolver
  • Loading branch information
Greeshmashaji committed Feb 27, 2025
2 parents 609f1d4 + 9124571 commit 34c67cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/modules/applications/optimization/bp/test_bp.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def test_transform_docplex_mip_to_ising(self):
model.binary_var(name="x2")

with patch("modules.applications.optimization.bp.bp.from_docplex_mp", return_value=QuadraticProgram()):
ising_matrix, ising_vector, ising_offset, qubo = Ising.transform_docplex_mip_to_ising(model, penalty_factor=1.0)
ising_matrix, ising_vector, ising_offset, qubo = Ising.transform_docplex_mip_to_ising(
model, penalty_factor=1.0)
ising_offset = float(ising_offset)

self.assertIsInstance(ising_matrix, np.ndarray)
Expand Down

0 comments on commit 34c67cd

Please sign in to comment.