Research Article

An Efficient Approach for Energy Consumption Optimization and Management in Residential Building Using Artificial Bee Colony and Fuzzy Logic

Pseudocode 2

Pseudocode for onlooker bees [20].
for ( to SN)
     
     _prob = 0
     ;
     while (_prob <= )
     
         _prob = _prob +
         ;
     
     end while
     for ( to )
     
         )
         
     
     end for
     Calculation of
     If
     
         ( >= ) put
         
         
     
     end if
end for