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:

  1. Inverts the value of a random chosen, i.e., from value to 1 - value;

  2. Assigns a random value to a random key.

SWAP

Applies two swap perturbations:

  1. Swaps the values of a randomly chosen key i and its neighbor i + 1;

  2. Swaps values of two randomly chosen keys.

CUSTOM

Indicates a custom shaking procedure supplied by the user.