original_docstring: 
          Function to perform the mutation operator on a given population.
          This function mutates all the solutions in the given population.
  
          Parameters:
  
              population (list) - list of solutions to mutate.
              mutationProbability (float) - the probability of mutating an edge.
              swapProbability (float) - the probability of doing a swap on a mutating edge.
              transferProbability (float) - the probability of doing a transfer on a mutating edge.
  
          Returns:
  
              newSolutions (list) - list of mutated solutions. Same size as the given population.
          
docstring: Function to perform the mutation operator on a given population.
  This function mutates all the solutions in the given population.
  
  
  
  population (list) - list of solutions to mutate.
  mutationProbability (float) - the probability of mutating an edge.
  swapProbability (float) - the probability of doing a swap on a mutating edge.
  transferProbability (float) - the probability of doing a transfer on a mutating edge.
  
  
  
  newSolutions (list) - list of mutated solutions. Same size as the given population.
docstring_tokens: Function to perform the mutation operator on a given population . This function mutates all the solutions in the given population . population ( list ) - list of solutions to mutate . mutationProbability ( float ) - the probability of mutating an edge . swapProbability ( float ) - the probability of doing a swap on a mutating edge . transferProbability ( float ) - the probability of doing a transfer on a mutating edge . newSolutions ( list ) - list of mutated solutions . Same size as the given population .
code: def mutation(self,population,mutationProbability,swapProbability,transferProbability):
          """
          Function to perform the mutation operator on a given population.
          This function mutates all the solutions in the given population.
  
          Parameters:
  
              population (list) - list of solutions to mutate.
              mutationProbability (float) - the probability of mutating an edge.
              swapProbability (float) - the probability of doing a swap on a mutating edge.
              transferProbability (float) - the probability of doing a transfer on a mutating edge.
  
          Returns:
  
              newSolutions (list) - list of mutated solutions. Same size as the given population.
          """
  
          newSolutions = []
  
          for solution in population:
  
              #Mutate solution, calculate and set Fst and Fsup values, then append to new solutions list.
              
              new = self._mutate(solution,self.supervisors,mutationProbability,swapProbability,transferProbability)
              new.calcFitness(self.students,self.supervisors,self.rankWeights,self.fitnessCache)
              newSolutions.append(new)
                                 
          return newSolutions
code_tokens: def mutation ( self , population , mutationProbability , swapProbability , transferProbability ) : newSolutions = [ ] for solution in population : new = self . _mutate ( solution , self . supervisors , mutationProbability , swapProbability , transferProbability ) new . calcFitness ( self . students , self . supervisors , self . rankWeights , self . fitnessCache ) newSolutions . append ( new ) return newSolutions
short_docstring: Function to perform the mutation operator on a given population.
short_docstring_tokens: Function to perform the mutation operator on a given population .
comment: """
          Function to perform the mutation operator on a given population.
          This function mutates all the solutions in the given population.
  
          Parameters:
  
              population (list) - list of solutions to mutate.
              mutationProbability (float) - the probability of mutating an edge.
              swapProbability (float) - the probability of doing a swap on a mutating edge.
              transferProbability (float) - the probability of doing a transfer on a mutating edge.
  
          Returns:
  
              newSolutions (list) - list of mutated solutions. Same size as the given population.
          """$SEP$#Mutate solution, calculate and set Fst and Fsup values, then append to new solutions list.