Turning Penalty Function

Technical Note #27

June 2017
By Dimitris Triantafyllos and Carles Illera

Did you know that in Aimsun 8.2 you can now make use of a Turning Penalty Function (TPF) that perceives the costs from a control plan selected in the macro scenario? Did you ever use Junction Delay Functions (JDF) to model stop/yield signs during a static assignment?

Below you will find examples of TPF and JDF functions that can be used at:

  • Signalized intersections
  • Yield/stop signs
  •  

 

Signalised Intersections

Aimsun 8.2 introduces the capability of the TPF to access the control plan information (green time and cycle duration) of a turn and to include this cost in the link cost calculation. You’ll find one example in the template named ‘TPF – Example for Signalized Intersection’. This cost function calculates, as a function of the Assigned Volume, the average delay of each signalized turn based on the statistical calculation found in the 2010 Highway Capacity Manual (HCM).

 
TPF Example:

Consider the orange-marked turn at the following signalized intersection. This movement receives 43 seconds of green time during 90-second cycle.

Figure 1. Turn green time and cycle time at signalized intersection

 

  1. First assign the desired Control Plan inside the Macro Assignment Scenario.

 

Figure 2. Definition of the Master Control Plan in the Static Assignment Scenario

 

  1. Then assign the ‘TPF – Example for Signalized Intersection’ to the signalised turn by double-clicking on the turn object. See the following screenshot:

     

    Figure 3. Definition of the TPF – Example for Signalized Intersection



  2. After executing a Macro Assignment you can see the final cost calculated based on the assigned volume:



Figure 4. Cost of a turn post to a macro assignment

 

The Assigned Volume at this turn came out 339.62 PCUs, and the corresponding cost 0.20 minutes.

 
Notes

– Double-click on the TPF object to check the Python code. To plot a graph that shows how the cost value varies with the assigned volume of the turn, select one Static Assignment Experiment, one Vehicle Type and then just click on the desired turn.

 

Figure 5. A graph that shows how the cost varies with the assigned volume for a specific turn inside the Python-coded TPF

 

– If a Master Control Plan with various Control Plans is selected, then the average green time and cycle time will be calculated by taking into account the different plans, each weighted with its relative duration within the period covered in the scenario.

 

– If an Actuated Control Plan is assigned, then the TPF has access to the cycle (considered as fixed) and to the minimun and maximum green time defined for each phase in the control plan. You are responsible for implementing in the TPF a function that calculates the green duration to take into account in the computation of the delay.

 

Yield and Stop Signs

When a yield or stop sign is associated to a turn movement, then another type of cost function, called Junction Delay Function (JDF), can be assigned to this turn to model the travel time or the cost as a function of conflicting turn volumes, the own turn volume or the origin section’s volume.
JDF Example:

The template provides an example of such JDF that can be applied at yield and stop signs named ‘JDF – Example for Unsignalized Intersection’.

 

Figure 6. JDF – Example for Unsignalized Intersection

 

This JDF calculates the turn capacity depending on the conflicting turn volumes. Once the capacity has been determined, the JDF function evaluates the turn’s cost based on its Assigned Volume.


  1. First, this function needs to be assigned to a specific turn:

Figure 7. JDF – Example for Unsignalized Intersection can be defined in the turn object

 

  • To apply this cost function to all turns with stop or yield signs, use the Table View tool to modify an attribute of multiple objects of the same type. Just select all turns and use the filter to only select turns with a yield or stop sign associated. Then assign the Junction Delay Function to all filtered turns.


    Figure 8. Using the Table View to perform multiple changes at the same object type

     

  • Finally, launch a Macro Assignment Experiment to see the following results:


    Figure 9. Cost of turns post to a macro assignment

     

Note

This JDF “Example for Unsignalized Intersection” is an example and can only be used for turns with a dedicated lane.

 

Signalised Turns with Yield or Stop Signs

If a turn at a signalised intersection has conflicts with other movements during the green phase (e.g. permitted left turn), create a new JDF that captures the effects of both the signal timing and the conflicting volume.

Más notas técnicas

Componentes de función macro

Marzo 2016: Marga Delgado explica cómo usar los componentes de función macro para crear elementos de salida adicionales a la hora de llevar a cabo una asignación.

Aimsun
  • ¿Tienes alguna pregunta? Ponte en contacto.

    ¡Estamos aquí para ayudarte!

  • ¿Tienes alguna pregunta? Ponte en contacto.

    ¡Estamos aquí para ayudarte!

SHARE

Citar Aimsun Next

Aimsun Next 23

Aimsun (2023). Aimsun Next 23 Manual del usuario, Aimsun Next Versión 23.0.0, Barcelona, España. Acceso: 19, 2023. [Online].
Disponible en: https://docs.aimsun.com/next/23.0.0/


Aimsun Next 20.0.5

Aimsun (2021). Aimsun Next 20.0.5 Manual del usuario, Aimsun Next Versión 20.0.3, Barcelona, España. Acceso: May. 1, 2021. [En software].
Disponible: qthelp://aimsun.com.aimsun.20.0/doc/UsersManual/Intro.html

Aimsun Next 23

@manual {​​​​​​​​AimsunManual,

título = {​​​​​​​​Aimsun Next 23 User’s Manual}​​​​​,
autor = {​​​​​​​​Aimsun}​​​​​​​​,
edición = {​​​​​​​​​​​​​​​Aimsun Next 23.0.0}​​​​​​​​​​​​​​​,
domicilio = {​​​​​​​​​​​​​​​Barcelona, Spain}​​​​​​​​​​​​​​​,
año = {​​​​​​​​​​​​​​​2023. [Online]}​​​​​​​​​​​​​​​,
mes = {​​​​​​​​​​​​​​​Accessed on: Month, Day, Year}​​​​​​​​​​​​​​​,
url = {​​​​​​​​​​​​​​​https://docs.aimsun.com/next/23.0.0/}​​​​​​​​​​​​​​​,
}​​​​​​​​​​​​​​​


Aimsun Next 20.0.5

@manual {​​​​​​​​AimsunManual,

título = {​​​​​​​​Aimsun Next 20.0.5 User’s Manual}​​​​​​​​,
autor = {​​​​​​​​Aimsun}​​​​​​​​,
edición = {​​​​​​​​​​​​​​​Aimsun Next 20.0.5}​​​​​​​​​​​​​​​,
domicilio = {​​​​​​​​​​​​​​​Barcelona, Spain}​​​​​​​​​​​​​​​,
año = {​​​​​​​​​​​​​​​2021. [En software]}​​​​​​​​​​​​​​​,
mes = {​​​​​​​​​​​​​​​Accessed on: Month, Day, Year}​​​​​​​​​​​​​​​,
url = {​​​​​​​​​​​​​​​qthelp://aimsun.com.aimsun.20.0/doc/UsersManual/Intro.html}​​​​​​​​​​​​​​​,
}​​​​​​​​​​​​​​​

Aimsun Next 23

TY – COMP
T1 – Manual del usuario de Aimsun Next 23
A1 – Aimsun
ET – Aimsun Next Version 23.0.0
Y1 – 2023
Y2 – Acceso: Mes, Día, Año
CY – Barcelona, España
PB – Aimsun
UR – [En software]. Disponible en: https://docs.aimsun.com/next/23.0.0/


Aimsun Next 20.0.5

TY – COMP
T1 – Manual del usuario de Aimsun Next 20.0.5
A1 – Aimsun
ET – Aimsun Next Version 20.0.5
Y1 – 2021
Y2 – Acceso: Mes, Día, Año
CY – Barcelona, España
PB – Aimsun
UR – [In software]. Available: qthelp://aimsun.com.aimsun.20.0/doc/UsersManual/Intro.html