pub enum Status<'a, F: Float + Debug, const N: usize> {
    None,
    Periodic {
        nk: usize,
    },
    Custom {
        f: Custom<'a, F, N>,
    },
}
Expand description

Status function

Variants

None

Don’t print status

Periodic

Fields

nk: usize

A number of iterations between calls

Print status when k is divisable by nk

Custom

Fields

f: Custom<'a, F, N>

Custom function

Custom: choose your own!

Implementations

Print the status

Arguments:

  • k — Current iteration;
  • t — Current temperature;
  • f — Current solution;
  • p — Current point;
  • best_f — Current best solution;
  • best_p — Current point of the best solution.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.