bqth29 / simulated-bifurcation-algorithm

Python CPU/GPU implementation of the Simulated Bifurcation (SB) algorithm to solve quadratic optimization problems (QUBO, Ising, TSP, optimal asset allocations for a portfolio, etc.).
MIT License
108 stars 27 forks source link

Optimizer's timeout #14

Closed bqth29 closed 1 year ago

bqth29 commented 1 year ago

PR Description

A timeout option has been added to the optimizer so the simulated bifurcation algorithm can be stopped after a pre-defined time threshold. The optimizer has now 3 different stopping criteria that can be combined or used individually.

New features

Bug fixes

codecov[bot] commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Files Coverage Δ
src/simulated_bifurcation/ising_core.py 100.00% <100.00%> (ø)
...ation/optimizer/simulated_bifurcation_optimizer.py 100.00% <100.00%> (ø)
src/simulated_bifurcation/optimizer/stop_window.py 100.00% <ø> (ø)
...furcation/polynomial/ising_polynomial_interface.py 100.00% <ø> (ø)
src/simulated_bifurcation/simulated_bifurcation.py 100.00% <100.00%> (ø)
tests/test_optimizer.py 100.00% <100.00%> (ø)

:loudspeaker: Thoughts on this report? Let us know!.