Struct direct::State [] [src]

pub struct State<F> { /* fields omitted */ }

This structure represents the current state of an optimization problem.

Methods

impl<F: Fn(&[f64]) -> f64> State<F>
[src]

Create a new optimization state. The function f will be minimized. Each entry in the lower_bounds vector has to be smaller than the corresponding entry in the upper_bounds vector. epsilon has to be > 0. The optimizer will panic if the function ever returns NaN. As part of the initialization, f will be evaluated once.

The number of iterations that were done. Initialization counts as one iteration.

The number of times the function to be optimized has been evaluated.

The current best, i.e. smallest, value that was found.

The argument that produced f_min(), i.e. the location where the currently best value was found.

Run one iteration of the optimization.