-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Opt] Exposed
Powell
and NelderMead
gradient-free optimizers
- Loading branch information
1 parent
c87bd04
commit 2fba7bc
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
A collection of scipy-powered, gradient-free optimizers. | ||
""" | ||
from jax_fdm.optimization.optimizers import Optimizer | ||
|
||
|
||
# ========================================================================== | ||
# Optimizers | ||
# ========================================================================== | ||
|
||
class Powell(Optimizer): | ||
""" | ||
The modified Powell algorithm for gradient-free optimization with box constraints. | ||
""" | ||
def __init__(self, **kwargs): | ||
super().__init__(name="Powell", disp=0, **kwargs) | ||
|
||
|
||
class NelderMead(Optimizer): | ||
""" | ||
The Nelder-Mead gradient-free optimizer with box constraints. | ||
""" | ||
def __init__(self, **kwargs): | ||
super().__init__(name="Nelder-Mead", disp=0, **kwargs) |