Skip to content

Commit f3e110c

Browse files
committed
chore(examples): Adds print function with information about best agent.
1 parent 1dbc617 commit f3e110c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/applications/single_objective/standard_optimization.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@
2727

2828
# Runs the optimization task
2929
opt.start(n_iterations=1000)
30+
31+
# Prints out information about the best agent that has been found
32+
print(
33+
f"Best Agent: {opt.space.best_agent.mapped_position} | Fitness: {opt.space.best_agent.fit}"
34+
)

0 commit comments

Comments
 (0)