Closed bqth29 closed 1 year ago
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!.
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
timeout
is available in theoptimize
,minimize
andmaximize
methods. It represents the number of seconds after which the computation will stop. Set toNone
, no timeout will be used.verbose
is set toTrue
max_steps
parameter can be set toNone
to indicate that the simulation stopping should not be triggered by a maximum number of iterations in the optimizerBug fixes