Research Article

Weighted Constraint Satisfaction for Smart Home Automation and Optimization

Algorithm 6

Bacterial mutation.
Create clones of ;
;
for    to    do
  Select yet unmutated random genes;
  for    to    do
     Mutate the selected genes in
  end
  for    to    do
     Evaluate using (8)
  end
  Select the best clone;
  Best clone transfers the mutated genes to all clones;
end
best clone