dwavesystems / dwave-system

An API for easily incorporating the D-Wave system as a sampler, either directly or through Leap's cloud-based hybrid samplers
https://docs.ocean.dwavesys.com/
Apache License 2.0
87 stars 62 forks source link

More time does not mean better results? #458

Open scorpioares opened 2 years ago

scorpioares commented 2 years ago

Description I am using LeapHybridCQMSolver to solve the CQM model. If I set the time_limit to None (which is 5s according to the details of problem status), the solver returns satisfying feasible solutions. However, if I set the time_limit to a larger constant such as 30s, the solver cannot find a feasible solution.

To Reproduce I am unsure whether my model causes this kind of result or something from the SDK and solver. Since my model is under business work, I cannot provide it here.

Expected behavior I expected a better result by making the time_limit parameter larger, or at least the same result.

Environment:

Additional context I wonder if it is a rare case and mostly comes from the model's structure or if it comes from the internal issue of the hybrid solver.

arcondello commented 2 years ago

Hi @scorpioares, thanks for the report! Would it be possible to share the CQM that you submitting? You can save it by running


import shutil

with cqm.to_file() as src_f:
    with open('example.cqm', 'wb') as dest_f:
        shutil.copyfileobj(src_f, dest_f)
scorpioares commented 2 years ago

@arcondello, thank you for your reply. I have saved the CQM file. How can I send it to you? Is there a safer way to do that to protect sensitive business information?