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 22cbcdc + eada168 commit dacd6d6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/applications/optimization/bp/bp.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def detect_mapping_from_solution(solution: dict) -> str:
"""
if solution is None:
return "Invalid"

if any('@int_slack@' in key for key in solution.keys()):
return ['QUBO', 'Ising']
else:
Expand Down
1 change: 0 additions & 1 deletion src/modules/applications/optimization/bp/mappings/qubo.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ def transform_docplex_mip_to_qubo(self, mip_docplex: Model, penalty_factor) -> t

return qubo_operator, qubo


def get_default_submodule(self, option: str) -> Core:
"""
Returns the default submodule based on the provided option.
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/applications/optimization/bp/test_bp.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_evaluate_solution(self):

def test_create_MIP(self):
problem = ([2, 4, 6], 10, [])
model = MIP.create_MIP(self,problem)
model = MIP.create_MIP(self, problem)

self.assertIsInstance(model, Model)
self.assertTrue(model.get_objective_expr() is not None)
Expand Down

0 comments on commit dacd6d6

Please sign in to comment.