# HistoryScope

Source: https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/HistoryScope

```python
class boulderopal.optimization.HistoryScope(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
```

Configuration for the history data returned from a graph-based optimizer.

### Variables
* `NONE` – Do not return any history information.
* `ITERATION_VALUES` – Return the value obtained at each iteration and optimization.
* `HISTORICAL_BEST` – Return the best values reached up to each iteration for each optimization.
* `ALL` – Return both the values obtained at each iteration and the historical best values.

### SEE ALSO
[`boulderopal.run_gradient_free_optimization`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/run_gradient_free_optimization.md#boulderopal.run_gradient_free_optimization)
: Perform model-based optimization without using gradient values.

[`boulderopal.run_optimization`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/run_optimization.md#boulderopal.run_optimization)
: Perform gradient-based deterministic optimization of generic real-valued functions.

[`boulderopal.run_stochastic_optimization`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/run_stochastic_optimization.md#boulderopal.run_stochastic_optimization)
: Perform gradient-based stochastic optimization of generic real-valued functions.
