diff --git a/check_sol.py b/check_sol.py index 6f705e4..4880007 100644 --- a/check_sol.py +++ b/check_sol.py @@ -119,6 +119,7 @@ def csv_write_hist(file_name, hist, key1 = "value", key2 = "count"): energy_computed = dimod.utilities.ising_energy(solution_vars_ising, lp.ising[0], lp.ising[1]) print("Ising energy", energy_computed) + print("Ising offset", lp.ising[2]) print("Ising energy + offset", energy_computed + lp.ising[2]) diff --git a/decipher_results.py b/decipher_results.py index bd11f36..5297a82 100644 --- a/decipher_results.py +++ b/decipher_results.py @@ -141,7 +141,7 @@ def print_results(dict_list): path_to_results = os.path.join(ROOT, "AGV_quantum", "ising", "sbm_results", "H100_results.csv") path_to_annealing = os.path.join(ROOT, "AGV_quantum", "annealing_results", "tiny_2_AGV", "new_bqm.pkl") - size = "tiny" + size = "small" instance = f"{size}_ising" path_to_renumeration = os.path.join(ROOT, "AGV_quantum", "ising", f"{instance}_renumeration.pkl") path_to_lp = os.path.join(ROOT, "AGV_quantum", "lp_files", f"lp_{size}.pkl")