Skip to content

Commit

Permalink
Update annealD.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobele authored Jun 21, 2022
1 parent 6ea1a0d commit 7686706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion annealD.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def annealD(V,cost,vmin,vmax,Jmin,minvstep,maxITER,maxPERT,\
xstep = vstep[0]
t1=process_time()
if iTER % outITER == 0:
# change the number of V[] depending on dimension (only for output)
print(fmt %\
(iTER,nHIT,V[0],V[1],V[2],V[3],1000*np.sqrt(J),t1-t0))
return ndim, V, iTER, path, J
return ndim, V, iTER, path, J

0 comments on commit 7686706

Please sign in to comment.