Research Article

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

Algorithm 2

/* Algorithm for solving SA-fuzzy optimization model */
(01) set = number constraints
(02) set count temperature  
(03) set initial temperature > 0
(04) set the threshold α > 0
(05) select an initial state  
(06) for     to  
(07)  µ( ):= membership value of the constraint and coefficient of objective function
(08)  min1:= aggregation(µ(1), …, µ( ))
(09) repeat
(10) for     to  
(11) µ(i):= membership value of the constraint and coefficient of objective function
(12) min2:= aggregation(µ(1), …, µ( ))
(13) calculate Δ = min2 − min1
(14) if Δ > 0 then
(15)   ;
(16)  min1 = min2;
(17) else
(18)    Create random number = rand(0, 1)
(19)    if exp
(20)    ;
(21)   min1 = min2;
(22)    else
(23)  ;
(24) min2 = min1;
(25)
(26) until >