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
103 stars 25 forks source link

warnings.warn #35

Closed bqth29 closed 10 months ago

bqth29 commented 11 months ago

πŸ’¬ Pull Request Description

Following discussion #30 and issue #34, the logging.warn has been replaced by warnings.warn to warn when some agents did not converged if the stop window is enabled.

βœ”οΈ Check list

Before you open the pull request, make sure the following requirements are met.

πŸš€ New features

🐞 Bug fixes

πŸ“£ Supplementary information

codecov[bot] commented 11 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Files Coverage Ξ”
src/simulated_bifurcation/__init__.py 100.00% <100.00%> (ΓΈ)
src/simulated_bifurcation/optimizer/__init__.py 100.00% <100.00%> (ΓΈ)
...ation/optimizer/simulated_bifurcation_optimizer.py 100.00% <100.00%> (ΓΈ)
tests/models/test_knapsack.py 100.00% <100.00%> (ΓΈ)
tests/test_optimizer.py 100.00% <100.00%> (ΓΈ)

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