std::numerics::amoeba_optimize

Functions

amoeba_optimize

pub sync fn amoeba_optimize ( func : sync fn(float, float) -> float,
                              start_points : ksp::math::Vec2[],
                              tolerance : float,
                              max_iters : int ) -> Result<(iters : int, x : float, y : float)>

Parameters

Name

Type

Optional

Description

func

sync fn(float, float) -> float

start_points

ksp::math::Vec2[]

tolerance

float

max_iters

int

amoeba_optimize_perturbation

pub sync fn amoeba_optimize_perturbation ( func : sync fn(float, float) -> float,
                                           guess : ksp::math::Vec2,
                                           perturbation : ksp::math::Vec2,
                                           tolerance : float,
                                           max_iters : int ) -> Result<(iters : int, x : float, y : float)>

Parameters

Name

Type

Optional

Description

func

sync fn(float, float) -> float

guess

ksp::math::Vec2

perturbation

ksp::math::Vec2

tolerance

float

max_iters

int