Rolling horizon parameters

In the TRE GUI, in theRollingHorizon tab, you can set all parameters associated to the sequence of continuous simulations.

Each simulation has a time span. For each simulation run, the initial instant is shifted forward, according with:

It is possible to simulate a wider time range, such as the entire day, by performing several short term simulations, such as hourly forecasts. Each simulation continues the previous one because each subsequent simulation sets the initial status according to the one corresponding to the same instant in the previous simulation.

Parameter Type Validity Description

ClockMul

Int32

 

Defines a multiplier of the internal clock used for rolling horizon simulation runs. It can be used to accelerate the simulation runs' restarts, to make faster a rolling horizon environment for debugging needs.

Simulation time = Realtime * ClockMul

ClockMul > 1: accelerated time.

ClockMul < 1:decelerated time.

Special values:

  • −1 =Simulation time increased by ReComputeInt seconds after each assignment (useful for debugging).
  • 1 =Normal time.

Default is 1.

LastSeqDay

Int32

≥ −1

Last day, expressed through the pattern [yyyymmdd], of the sequential simulation.

LastSeqDay defines a stopping criterion for the sequential assignment based on the date.

If the internal clock of TRE has passed the day defined and the time set in LastSeqTime, the sequence of simulations is stopped.

Special values:

  • 0 = Today.
  • −1 = Never stop.

Default is −1.

LastSeqTime Int32 ≥ 0

Last time , expressed through the pattern [hhmmss], of the sequential simulation.

In combination with the parameter LastSeqDay, defines a stopping criterion for the sequential assignment feature based on the date.

If the internal clock of TRE has passed LastSeqDay at the time defined, the sequence of simulations is stopped.

Default is 0.

NumReStartResInt

Int32

≥ 1

Defines the number of result intervals after which the sequential simulation can roll forward.

The length of the result intervals is defined by the parameter ResIntD(→ Output parameters).

Default is 1.

ReComputeInt

Int32

≥ 0

Time interval, measured in seconds [s] , between each computation start.

Important:  This option does not include the whole run computation time. The value of ReComputeInt should be generally greater than the assignment cycle computation time.

Default is 300.

ResetQueueInstant

Int32

≥ -1

Defines the reset queue instant, expressed through the pattern [hhmmss].

For applications running rolling horizon simulations, it is a good practice to handle a recovery system, clearing all queues on the network at the initial instant of one simulation.

This solution avoid situations related to unexpected closures which generate unrealistic enduring queues.

Special values:

-1 = Never reset queues.

Important:  ResetQueueInstant sets the real world time at which the simulation starts, not the time in the simulation when the queues must be reset.

Default is -1.

SeqAss

Int32

{0,1}

Defines the sequential assignment.
  • 0 = Offline single simulation.
  • 1 = Sequential assignment in rolling horizon with real time traffic states and events.

Important:  → TRE license constraints

Default is 0.