Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change PSO SC to a more efficient way of computing. #369

Merged
merged 6 commits into from
Mar 18, 2024

Conversation

kellertuer
Copy link
Member

@kellertuer kellertuer commented Mar 16, 2024

I thought a bit about #347. The velocities are actually equivalent to the change (the same if the steps are computed with exp). So this PR changes the stopping criterion of SC to this – a bit nicer – form.

Still to check

  • documentation
  • test coverage
  • changelog

Copy link

codecov bot commented Mar 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.73%. Comparing base (42d737e) to head (1a4dcd9).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #369   +/-   ##
=======================================
  Coverage   99.73%   99.73%           
=======================================
  Files          73       73           
  Lines        6819     6839   +20     
=======================================
+ Hits         6801     6821   +20     
  Misses         18       18           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kellertuer kellertuer added the Ready-for-Review A label for pull requests that are feature-ready label Mar 17, 2024
Copy link
Member

@mateuszbaran mateuszbaran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

test/solvers/test_particle_swarm.jl Outdated Show resolved Hide resolved
Co-authored-by: Mateusz Baran <mateuszbaran89@gmail.com>
@kellertuer
Copy link
Member Author

Will merge this but only register it together with #370 once that is also merged

@kellertuer kellertuer merged commit 8124786 into master Mar 18, 2024
15 checks passed
@kellertuer kellertuer deleted the kellertuer/pso-stops branch May 4, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready-for-Review A label for pull requests that are feature-ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants