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.

ArgumentValue if not given
startTimeStartTime of the experiment annotation, else 0.
stopTimeStopTime, 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.
stepSizeInterval, else (stopTime - startTime) / 500. If startTime, stopTime or numberOfIntervals is given, (stopTime - startTime) / numberOfIntervals.
toleranceTolerance, 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

TypeNameDefaultDescription
RealstartTimenan()Start time
RealstopTimenan()Stop time
IntegernumberOfIntervals-1Number of intervals
RealstepSizenan()Interval
Realtolerancenan()Integration tolerance