Module vrp_core::utils

source ·
Expand description

A collection of various utility helpers.

Structs

  • A default random implementation.
  • Keeps track of environment specific information which influences algorithm behavior.
  • Provides way to generate some noise to floating point value.
  • Specifies data parallelism settings.
  • Specifies underlying random generator type.
  • An iterator which visits given range using selection sampling (Algorithm S).
  • Represents a thread pool wrapper.
  • A time quota.

Enums

  • Represents a type with two values.

Traits

  • An iterator which collects items into group.
  • Specifies a computational quota for executions. The main purpose is to allow to stop algorithm in reaction to external events such as user cancellation, timer, etc.
  • Provides the way to use randomized values in generic way.
  • Provides way to search using selection sampling algorithm on iterator where elements have ordered index values.

Functions

Type Definitions

  • A logger type which is called with various information.
  • Implements performance timer functionality, mostly exists due to problem with Instant on wasm32 arch.