Research Article

Comparison of a Fuzzy Genetic and Simulated Annealing Algorithm Approach for Project Time-Cost Tradeoff

Algorithm 1

Genetic algorithm pseudocode for maxmin approach.
Algorithm for solving fuzzy optimization model
 /* Initialization */
(01)set = number constraints
(02)select an initial state
  /* Membership determination */
(03)for     to  
(04)   µ( ):= membership value of the constraint
(05)min1:= aggregation(µ(1), …, µ( ))
 /* Genetic Algorithm */
(06)set numberOfGeneration = 0
(07)repeat
(08)    repeat
(09)    createNextGeneration
(10)     for   to  
(11)     µ(i):= membership value of the constraint
(12)    min2 = aggregation(µ(1), …, µ( ))
(13)    calculate delta = min2 − min1
(14)    if delta > 0 then
(15)      UpdateNextPopulation;
(16)    min2 = min1;
(17)    until not terminate( , evaluate( ), θ( ))
(19)  numberOfGeneration++;
(18) until stop criteria