Skip to content

Commit

Permalink
default to central differences
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Mar 25, 2024
1 parent 88b2554 commit 189d615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aerosandbox/modeling/black_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def black_box(
function: Callable[[Any], float],
n_in: int = None,
n_out: int = 1,
fd_method: str ='forward',
fd_method: str ='central',
fd_step: Optional[float] = None,
fd_step_iter: Optional[bool] = None,
) -> Callable[[Any], float]:
Expand Down Expand Up @@ -169,7 +169,7 @@ def my_func(

# Wrap our function such that it can be used in an optimization problem.
my_func_wrapped = black_box(
function=my_func,
function=my_func, fd_method="central"
)

# Pick some variables to optimize over
Expand Down

0 comments on commit 189d615

Please sign in to comment.