You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TOLERANCE=0.0001# Don't want to go too tight on tolarance.
58
58
59
59
defreportReturn( result ):
60
60
globalresultCount
@@ -123,14 +123,15 @@ def optCallback( x ):
123
123
124
124
defmain():
125
125
t0=time.time()
126
-
parser=argparse.ArgumentParser( description='Wrapper script to run a lot of FindSim evaluations in parallel.' )
127
-
126
+
parser=argparse.ArgumentParser( description='Script to run a multi-parameter optimization in which each function evaluation is the weighted mean of a set of FindSim evaluations. These evaluations may be run in parallel. The optimiser uses the BGFR method with bounds. Since we are doing relative scaling the bounds are between 0.03 and 30 for Kd, tau and Km, and between 0 and 30 for other parameters' )
128
127
parser.add_argument( 'location', type=str, help='Required: Directory in which the scripts (in tsv format) are all located. OR: File in which each line is the filename of a scripts.tsv file, followed by weight to assign for that file.')
129
128
parser.add_argument( '-n', '--numProcesses', type=int, help='Optional: Number of processes to spawn', default=2 )
129
+
parser.add_argument( '-t', '--tolerance', type=float, help='Optional: Tolerance criterion for completion of minimization', default=1e-4 )
130
130
parser.add_argument( '-m', '--model', type=str, help='Optional: Composite model definition file. First searched in directory "location", then in current directory.', default="FindSim_compositeModel_1.g" )
131
-
parser.add_argument( '-p', '--parameters', nargs='*', default=[], help='Parameter to vary. Each is defined as an object.field pair. The object is defined as a unique MOOSE name, typically name or parent/name. The field is separated from the object by a period. The field may be concInit for molecules, Kf, Kb, Kd or tau for reactions, and Km or Kcat for enzymes. One can specify more than one parameter for a given reaction or enzyme. It is advisable to use Kd and tau for reactions unless you have a unidirectional reaction.' )
131
+
parser.add_argument( '-p', '--parameters', nargs='*', default=[], help='Parameter to vary. Each is defined as an object.field pair. The object is defined as a unique MOOSE name, typically name or parent/name. The field is separated from the object by a period. The field may be concInit for molecules, Kf, Kb, Kd or tau for reactions, and Km or kcat for enzymes. One can specify more than one parameter for a given reaction or enzyme. It is advisable to use Kd and tau for reactions unless you have a unidirectional reaction.' )
132
132
parser.add_argument( '-f', '--file', type=str, help='Optional: File name for output of parameter minimization', default="" )
0 commit comments