Skip to content

Commit

Permalink
filename change
Browse files Browse the repository at this point in the history
  • Loading branch information
jokedurnez committed Feb 12, 2018
1 parent 3ce64bd commit 24e78aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/src/neurodesign.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def to_next_generation(self, weights=None, seed=1234,optimisation=None):
:type weights: list of floats, summing to 1
:param seed: The seed for random processes.
:type seed: integer or None
:param optimisation: The type of optimisation - 'GA' or 'random'
:param optimisation: The type of optimisation - 'GA' or 'simulation'
:type optimisation: string
'''

Expand All @@ -838,7 +838,7 @@ def to_next_generation(self, weights=None, seed=1234,optimisation=None):
self._crossover(weights,seed)
self._immigration(weights,noim=self.I)

elif optimisation == 'random':
elif optimisation == 'simulation':
self._immigration(weights,noim=self.I)

else:
Expand Down Expand Up @@ -886,9 +886,9 @@ def clear(self):

return self

def naturalselection(self,optimisation='GA'):
def optimise(self,optimisation='GA'):
'''
Function to run natural selection for design optimization
Function to run design optimization
'''

if (self.exp.FcMax == 1 and self.exp.FfMax == 1):
Expand Down

0 comments on commit 24e78aa

Please sign in to comment.