Skip to content

Commit 38d35dc

Browse files
committed
Fix typo in optimization.py
1 parent 82c5f9e commit 38d35dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter5/optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def annealingoptimize(domain,costf,T=10000.0,cool=0.95,step=1):
148148
return vec
149149

150150
def geneticoptimize(domain,costf,popsize=50,step=1,
151-
mutprod=0.2,elite=0.2,maxiter=100):
151+
mutprob=0.2,elite=0.2,maxiter=100):
152152
# Mutation Operation
153153
def mutate(vec):
154154
i=random.randint(0,len(domain)-1)

0 commit comments

Comments
 (0)