Skip to content

Commit

Permalink
Add results in example callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Dec 9, 2023
1 parent aecf5f2 commit 57be867
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/user_guide/optimization/optimization_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ The callback signature may include any of the following arguments:
Introspection is used to determine which of the signatures above to invoke.

```{code-cell} ipython3
def callback(individual, evaluation_object, callbacks_dir):
def callback(results, individual, evaluation_object, callbacks_dir):
print(results)
print(individual.x, individual.f)
print(evaluation_object)
print(callbacks_dir)
Expand Down

0 comments on commit 57be867

Please sign in to comment.