Skip to content

Commit

Permalink
Update Cso.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan committed Jan 8, 2024
1 parent 63ad773 commit 735fc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithm/Cso.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def updatePosition1(self, population):


def updatePosition2(self, population):
current_position = self._current_position[:]
current_position = np.copy(self._current_position)
populationSize = self._populationSize
for i in range(populationSize):
d1, d2 = np.random.randint(0, 5, 2)
Expand Down

0 comments on commit 735fc1a

Please sign in to comment.