You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A genetic algorithm that can perform reverse optimization, to escape local minimma inspired from [1]
377
+
In this algorithm the minimzation process is reversed to a maxmimization process i/n_k times i.e process in reverse direction for step_length no. of times.
378
+
Unlike GAReversals we perform a RandomSearch in reverse direction to escape local minimas.
domain (list): List containing the upper and lower bound.i.e domain of our inputs
386
+
fitness_function (function): This parameter accepts a fitness function of given optimization problem.
387
+
seed (int,optional): Set the seed value of the random seed generator. Defaults to random integer value.
388
+
seed_init(bool,optional): True set's the seed of only population init generator, False sets all generators
389
+
init (list, optional): List for initializing the initial solution. Defaults to [].
390
+
epochs (int, optional): Number of times the algorithm runs. Defaults to 100.
391
+
392
+
n_k (int, optional): The denominator factor i/n_k which determines the number of iterations which are multiples of n_k where reversals take place.Defaults to 250.
393
+
step_length (int, optional): The number of reversals steps/iterations to perform.Defeaults to 100 reversal steps.
394
+
Returns:
395
+
list: List containing the best_solution,
396
+
int: The final cost after running the algorithm,
397
+
list: List containing all costs during all epochs.
398
+
int: The number of function evaluations(NFE) after running the algorithm
0 commit comments