Skip to content

Commit 941f2e1

Browse files
Made args optional in eval_objective
1 parent 80fead7 commit 941f2e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybobyqa/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def sumsq(x):
4444
return np.dot(x, x)
4545

4646

47-
def eval_objective(objfun, x, args, verbose=True, eval_num=0, pt_num=0, full_x_thresh=6, check_for_overflow=True):
47+
def eval_objective(objfun, x, args=(), verbose=True, eval_num=0, pt_num=0, full_x_thresh=6, check_for_overflow=True):
4848
# Evaluate objective function
4949
if check_for_overflow:
5050
try:

0 commit comments

Comments
 (0)