Clears the output interval from the simulation and adds a new one.

## Usage

setOutputInterval(
simulation,
startTime,
endTime,
resolution,
intervalName = NULL
)

## Arguments

simulation

Simulation for which a new interval should be created

startTime

Start time of the interval in min

endTime

End time of the interval in min

resolution

resolution in points/min

intervalName

Optional Name of interval. If not specified, a unique name will be assigned.

## Value

Returns the interval created.

## Note

This is essentially a shortcut for clearOutputIntervals followed by addOutputInterval

## Examples

simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")