MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / shuffle

Method shuffle

pyvrp/cpp/search/PerturbationManager.cpp:39–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void PerturbationManager::shuffle(RandomNumberGenerator &rng)
40{
41 auto const range = params_.maxPerturbations - params_.minPerturbations;
42 numPerturbations_ = params_.minPerturbations + rng.randint(range + 1);
43}
44
45void PerturbationManager::perturb(Solution &solution,
46 SearchSpace &searchSpace,

Callers 2

test_shuffleFunction · 0.95

Calls 1

randintMethod · 0.80

Tested by 2

test_shuffleFunction · 0.76