Skip to content

Commit 735fc1a

Browse files
authored
Update Cso.py
1 parent 63ad773 commit 735fc1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithm/Cso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def updatePosition1(self, population):
7373

7474

7575
def updatePosition2(self, population):
76-
current_position = self._current_position[:]
76+
current_position = np.copy(self._current_position)
7777
populationSize = self._populationSize
7878
for i in range(populationSize):
7979
d1, d2 = np.random.randint(0, 5, 2)

0 commit comments

Comments
 (0)