PuTUpdater methodology

The Optima PuTUpdater service is a stand alone application that updates the Optima DB every time the a new static public transport dataset in GTFS format is available. It works monitoring a file path: every time a change of the monitored file is detected, is triggered the update process.

The process is performed by Visum via COM interface.

Important:  As prerequisite, you must have installed the version of Visum compliant with your Optima version (see → Installing PuTUpdater).

The input of the process is composed by the Optima Visum model (.ver file) and a .zip file containing the GTFS data.

The output is an updated Optima DB.

The service can be configured to be:

Important:  You can handle this process only if you have a robust knowledge of Visum.

All the configuration parameters involved into the process are described in → PuTUpdater configuration.

The process proceed as shown:

  1. The new GTFS zip file is detected (see the GTFSFilePath configuration parameter).

  2. The result of the GTFS import (from now on called GTFS Model) is saved as a Visum file (.ver extension) (see the PuTSupplyDataDirectory configuration parameter).

  3. A new Visum Instance is run and the Optima private transport model is opened (see the OptimaBaseModelPath configuration parameter).

    Important:  In a Visum model, the pedestrian transport system used for commuting is of type PutWalk. This transport system must have the attributes code=PTWalk.

  4. The Put Supply import procedure is configured and run using the result of the GTFS import as source and the Optima private transport model as a target. The result is saved in a Visum model (from now on called Merged Model).

  5. The evaluation of the quality of the process is based on:

    • For the GTFS Model:

      1. The number of routes (NR) in GTFS is compared with the number of lines (NL) in the Visum model.

      2. The number of stops (NS) in GTFS with the number of stop areas (NSA) in the Visum model.

      If NR<>NL or NS<>NSA, the quality assessment is failed.

    • For the Merged Model: a set of quality KPIs (see → → Quality KPIs) is computed and compared with the thresholds defined in configuration (see the → THRESHOLDS configuration parameters). If any KPI value is above the threshold, the quality assessment is failed.

    For additional details about quality assessment, see → Quality assessment of the PuTUpdater process.

  6. Different things can happen:

    1. The service is configured to require the operator validation (see the AutomaticProcess configuration parameter). The result of the step 6 is saved as a Visum file in a configurable location (see the ToBeValidatedModelDirectoryconfiguration parameter).

    2. The service is configured to be automatic, but the quality KPIs are below the thresholds. The result of the previous step is saved as a Visum file in a configurable location (see the ToBeValidatedModelDirectory configuration parameter).

    3. The service is configured to be automatic and the quality assessment is passed successfully. Proceed to step 9.

  7. If the operator validation is requested (steps 7.A and 7.B), the operator:

  8. A new Visum instance is run and the Optima SaveAll script is automatically run.

    Important:  The SaveAll script is automatically included in the PuTUpdater package, and the user can ignore where it is stored.

  9. The TDE is configured and run and Optima public transport DB tables are updated (all DB updates are reverted in case of failure).

  10. The final step is to force the reload of the static PuT model.

Important:  If the process fails, it will try to restart with frequency set by the configuration parameter PollingIntervalInSeconds. For avoiding retry is necessary to remove the GTFS zip file.