Commented out an optimisation stoping criterion for now.

这个提交包含在:
Craig Warren
2016-01-26 15:02:23 +00:00
父节点 9372634924
当前提交 e79c63b958

查看文件

@@ -241,12 +241,12 @@ def main():
break break
# Stop optimisation if successive fitness values are within 0.5% # Stop optimisation if successive fitness values are within 0.5%
if i > 2: # if i > 2:
fitnessvaluesclose = (np.abs(fitnessvalueshist[i - 2] - fitnessvalueshist[i - 1]) / fitnessvalueshist[i - 1]) * 100 # fitnessvaluesclose = (np.abs(fitnessvalueshist[i - 2] - fitnessvalueshist[i - 1]) / fitnessvalueshist[i - 1]) * 100
fitnessvaluesthres = 0.1 # fitnessvaluesthres = 0.1
if fitnessvaluesclose < fitnessvaluesthres: # if fitnessvaluesclose < fitnessvaluesthres:
print('\nTaguchi optimisation stopped as successive fitness values within {}%'.format(fitnessvaluesthres)) # print('\nTaguchi optimisation stopped as successive fitness values within {}%'.format(fitnessvaluesthres))
break # break
# Save optimisation parameters history and fitness values history to file # Save optimisation parameters history and fitness values history to file
opthistfile = inputfileparts[0] + '_hist' opthistfile = inputfileparts[0] + '_hist'