enum BRKGA::ShakingType
Overview
Specifies the type of shaking to be performed. More…
#include <brkga_mp_ipr.hpp> enum ShakingType { CHANGE, SWAP, CUSTOM, };
Detailed Documentation
Specifies the type of shaking to be performed.
Enum Values
CHANGE
Applies the following perturbations:
Inverts the value of a random chosen, i.e., from
value
to1 - value
;Assigns a random value to a random key.
SWAP
Applies two swap perturbations:
Swaps the values of a randomly chosen key
i
and its neighbori + 1
;Swaps values of two randomly chosen keys.
CUSTOM
Indicates a custom shaking procedure supplied by the user.