-
Notifications
You must be signed in to change notification settings - Fork 47
Add optimizers from PySwarms #639
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
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
c412eb2
Add global-best PSO
spline2hg b8a3f4a
fic parameters
spline2hg eead60b
expose verbose
spline2hg 3fe000b
use CONVERGENCE_FTOL_REL
spline2hg e5e4ae5
Add local-best PSO
spline2hg a451fd4
refactor: simplify return
spline2hg b21f93e
Add general PSO
spline2hg 9fe6876
docs: improve docstrings of global_best
spline2hg 7f078c6
improve local-best pso docstrings
spline2hg 9848e97
improve general pso docstrings
spline2hg 0d35e8d
fix: particle center scaling
spline2hg b647fd2
feat: enable parallel eval and history in PySwarms
spline2hg 5a8d0b5
docs: add PySwarms optimizers to algorithms.md
spline2hg 1ca8dcd
refactor: topology – swap string flags for dataclass configs
spline2hg 212b4e8
docs: clarify boundary & velocity strategy choices in docstrings
spline2hg dc41d46
docs: add PSO citations to algorithm docstrings
spline2hg 5e41346
refactor: drop unused GeneralPSOOptions dataclass
spline2hg a7fe49f
docs: clarify topology parameter usage
spline2hg 2c2f5ea
format docstrings
spline2hg 19c42eb
feat: expose initial_population and oh_strategy in PySwarms optimizers
spline2hg 47f1342
refactor: simplify bounds handling
spline2hg 76fc623
refactor: infer actual iterations & evals
spline2hg 543b55c
add pyswarms to mypy ignore list
spline2hg 5d6132f
fix: mark PySwarms optimizers as stochastic via seed parameter
spline2hg 9fbabd5
fix: add missing comma to mypy ignore list
spline2hg 2dbd9bf
extend mypy ignores to pyswarms.backend.topology
spline2hg 429fe28
refactor: use dataclasses for PSO hyper-params
spline2hg 375b372
Merge remote-tracking branch 'origin/main' into pyswarms-optimizer
spline2hg ef7bace
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2920b82
Merge branch 'main' into pyswarms-optimizer
spline2hg 5ed744f
refactor: rename initial_population to initial_positions and add PyTr...
spline2hg 1ad4424
refactor: use common internal function for all PySwarms optimizers
spline2hg ea54d69
refactor: move ring topology params into RingTopology dataclass
spline2hg d825e16
refactor: use local random-state and fix arrangement
spline2hg f101240
fix: rename VonNeumannTopology.range to range_param
spline2hg ad53c4d
test: add tests for PySwarms helper functions
spline2hg 388ad86
Merge branch 'main' into pyswarms-optimizer
spline2hg d472b2b
refactor: use common interface
spline2hg 7609506
docs: display inherited params in pyswarms optimizers
spline2hg 9c9f8f7
Merge branch 'pyswarms-optimizer' of github.com:spline2hg/optimagic_ ...
spline2hg 3c96300
fix: update tests
spline2hg bfe0268
update optimizer param default values
spline2hg 9fb982a
fix: remove STOPPING_MAXITER_GLOBAL, set maxiter to 1000
spline2hg b8df4af
Merge branch 'main' into pyswarms-optimizer
spline2hg 669cd02
warn: add warning for seed
spline2hg d25afa2
Merge remote-tracking branch 'origin/pyswarms-optimizer' into pyswarm...
spline2hg 821cac5
Merge branch 'main' into pyswarms-optimizer
spline2hg 1aa46f1
Merge branch 'main' into pyswarms-optimizer
janosg 7793862
Merge branch 'main' into pyswarms-optimizer
spline2hg bde7478
minor fixes after review
spline2hg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.