Fork me on GitHub

Objective FunctionΒΆ

Plot an artificial objective function that can be used as a benchmark for black-box optimization.

../../_images/sphx_glr_plot_objective_function_001.png
print(__doc__)

import matplotlib.pyplot as plt
from bolero.environment import ObjectiveFunction


fig = plt.figure()
env = ObjectiveFunction(random_state=0)
env.plot(fig)
plt.show()

Total running time of the script: ( 0 minutes 0.239 seconds)

Gallery generated by Sphinx-Gallery