Input: ObjFun, , , max-iteration, mix-rate, , |
Output: globalminimum, globalminimizer |
//, , , |
(1) function BSAISA(ObjFun, , , max-iteration, low, up) // Initialization |
(2) globalminimum = inf |
(3) for from 1 to do |
(4) for from 1 to do |
(5) // Initialization of population |
(6) // Initialization of oldP |
(7) end |
∗(8)// Initial-fitness values of and oldP |
(9) end |
(10) for iteration from 1 to max-iteration do // Selection-I |
(11) if then end |
(12) |
(13) Generation of Trail-Population |
(14) // Modified F based on SA |
(15) // Modified F based on SA |
(16) // Modified F based on SA |
(17) // Mutation |
(18) // Initial-map is an -by- matrix of ones |
(19) if then // Crossover |
(20) for from 1 to do |
(21) |
(22) end |
(23) else |
(24) for from 1 to do, , end |
(25) end |
(26) //Generation of Trial Population, |
(27) for from 1 to do |
(28) for from 1 to do |
(29) if then |
(30) end |
(31) end |
(32) for from 1 to do |
(33) for from 1 to do |
(34) if or then |
(35) |
(36) end |
(37) end |
(38) end |
(39) end |
(40) // Seletion-II |
(41) for from 1 to do |
(42)if then |
(43) |
(44) |
(45) end |
(46) end |
(47) |
(48)if then // Export globalminimum and globalminimizer |
(49) |
(50) |
(51) end |
(52) end |