你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Reinstated success fitness values stop criterion.
这个提交包含在:
@@ -132,12 +132,12 @@ def run_opt_sim(args, numbermodelruns, inputfile, usernamespace):
|
|||||||
break
|
break
|
||||||
|
|
||||||
# Stop optimisation if successive fitness values are within a percentage threshold
|
# Stop optimisation if successive fitness values are within a percentage threshold
|
||||||
# if iteration > 2:
|
if iteration > 2:
|
||||||
# fitnessvaluesclose = (np.abs(fitnessvalueshist[iteration - 2] - fitnessvalueshist[iteration - 1]) / fitnessvalueshist[iteration - 1]) * 100
|
fitnessvaluesclose = (np.abs(fitnessvalueshist[iteration - 2] - fitnessvalueshist[iteration - 1]) / fitnessvalueshist[iteration - 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.pickle'
|
opthistfile = inputfileparts[0] + '_hist.pickle'
|
||||||
|
在新工单中引用
屏蔽一个用户