num_opt::physics::solver

Function find_minimum_golden_section

Source
pub fn find_minimum_golden_section<T: MyFloat>(
    a_: &T,
    b_: &T,
    f: impl Fn(&T) -> T,
    epsilon: Fpt,
) -> Result<(T, T), (T, T, HitBoundary)>
Expand description

Uses the golden section search algorithm to find the minimum of a function