Closed matthiaskoenig closed 3 years ago
There's still a note about a possible seed exception in section 2.2.7.2 that I think is worth linking to. The text there (top of p41) reads:
NOTE: the global ListOfAlgorithmParameters was added to SED-ML in Level 1 Version 4. As such, the only place to define a random seed (KISAO:0000211) for the simulation experiment as a whole in previous versions was in a Simulation, which might be part of a RepeatedTask. Rather than indicating that each repeat was to receive the same seed, resulting in identical traces, users would generally use the ’seed’ parameter to indicate that the experiment as a whole was to be replicable from one run to the next. Current users of SED-ML should use a global AlgorithmParameter for this purpose, but older versions or older files may use the previous scheme.
Agree. The note is important. Updated my suggestion
Actually, the seed thing illustrates that the suggestion is actually incorrect: algorithm parameters from the global list should be applied exactly once and then not changed again. If you apply it every time, you'd reset the seed, which is precisely the problem we're trying to avoid. I can't even add it to the previous list, since it also says "The order of activities within each iteration of a RepeatedTask is as follows:"
Added this to the description of AlgorithmParameter:
"Any AlgorithmParameter child of a Simulation applies only to that individual Simulation, and assumes its previous value (if set globally) or becomes unset (if not) outside of the context of that Simulation (for example, within a RepeatedTask)."
The global parameter must be applied in the repeated tasks. The seed exception can be removed.
Currently it states:
Which should be