functionexperimentArguments
The experiment of simulate, buildModelFMU and the other calls that simulate or export a model.
Information
An argument that is not given gets its value from the experiment annotation of the class,
or of a class that it extends, or else from the default below.
The declared values nan() and -1 only mark an argument that is not given.
| Argument | Value if not given |
|---|---|
startTime | StartTime of the experiment annotation, else 0. |
stopTime | StopTime, else 1. |
numberOfIntervals | (StopTime - StartTime) / Interval, rounded to the nearest integer,
or NumberOfIntervals, else 500. For optimize(), 50.
If stepSize is given, (stopTime - startTime) / stepSize, rounded down. |
stepSize | Interval, else (stopTime - startTime) / 500.
If startTime, stopTime or numberOfIntervals is given, (stopTime - startTime) / numberOfIntervals. |
tolerance | Tolerance, else 1e-6. |
A simulation uses numberOfIntervals and not stepSize. An FMU export writes startTime, stopTime, stepSize and tolerance
into the DefaultExperiment element of modelDescription.xml.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | startTime | nan() | Start time |
| Real | stopTime | nan() | Stop time |
| Integer | numberOfIntervals | -1 | Number of intervals |
| Real | stepSize | nan() | Interval |
| Real | tolerance | nan() | Integration tolerance |