From e79c63b958c84fd071f289ff0e69cde452049d43 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 26 Jan 2016 15:02:23 +0000 Subject: [PATCH] Commented out an optimisation stoping criterion for now. --- gprMax/gprMax.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gprMax/gprMax.py b/gprMax/gprMax.py index c363400e..53e2a837 100644 --- a/gprMax/gprMax.py +++ b/gprMax/gprMax.py @@ -241,12 +241,12 @@ def main(): break # Stop optimisation if successive fitness values are within 0.5% - if i > 2: - fitnessvaluesclose = (np.abs(fitnessvalueshist[i - 2] - fitnessvalueshist[i - 1]) / fitnessvalueshist[i - 1]) * 100 - fitnessvaluesthres = 0.1 - if fitnessvaluesclose < fitnessvaluesthres: - print('\nTaguchi optimisation stopped as successive fitness values within {}%'.format(fitnessvaluesthres)) - break +# if i > 2: +# fitnessvaluesclose = (np.abs(fitnessvalueshist[i - 2] - fitnessvalueshist[i - 1]) / fitnessvalueshist[i - 1]) * 100 +# fitnessvaluesthres = 0.1 +# if fitnessvaluesclose < fitnessvaluesthres: +# print('\nTaguchi optimisation stopped as successive fitness values within {}%'.format(fitnessvaluesthres)) +# break # Save optimisation parameters history and fitness values history to file opthistfile = inputfileparts[0] + '_hist'