I need to change the value of a volatile parameter over time in a simulation. I.e. in the first 30s of the simulation I need exp(400ms) after that, until 60s I need exp(800ms) and after 60s exp(2s) for interArrivalTime.
How to change a parameter value over time?
696 Views Asked by Rudi At
1
For volatile parameters there is a pretty easy trick. Use the
? :operator along with thesimTime()NED function:or you can even chain them as ?: operator is evaluated left to right:
would give:
exponential(400ms)below30sexponential(800ms)between30and60sexponential(2s)after60s