from dwave.system import DWaveCliqueSampler, LeapHybridSampler
from helpers import *

qps = createModelsFromDir('BURKARDT_DATA/INT/')
for qp in qps.values():
    print(qp.model.solve())

solvers = [createSolver(LeapHybridSampler()), createSolver(DWaveCliqueSampler(),1000)]
results = {}
for qp_name in qps.keys():
    print(qp_name)
qp_name = "testprob"

results[qp_name] = [optimizer.solve(qps[qp_name]) for optimizer in solvers]
# problem ids : 
# Leap db6c6b80-8882-4636-9879-a18c3b57c980
# Advantage system 0b80397c-22a2-41e1-9dce-2c6cffca3ff3

for res in results[qp_name]:
    print(res)

qp_name = "three_vars_quadratic"
results[qp_name] = [optimizer.solve(qps[qp_name]) for optimizer in solvers]

