next up previous
Next: In The Works Up: EMME/2 News 10 October 1990 Previous: CNTPOST: A Macro for Optimal

DEMADJ: A Macro for Demand Matrix Adjustment Using Observed Volumes

(contributed by Heinz Spiess, EMME/2 Support Center)

In most transportation planning applications, the input data which is the most difficult and expensive to obtain is the origin-destination demand matrix. Since the demand data cannot be observed directly, it must be collected by carrying out elaborate and expensive surveys, involving home- or road-based interviews or complicated number plate tagging schemes. By contrast, observed link volumes can be obtained easily and with reasonable precision by simply counting the traffic at certain count post links, either manually or automatically, using mechanical or inductive counting devices.

Thus, it is not surprising that a considerable amount of research has been carried out to investigate the possibility of estimating or improving an origin-destination demand matrix with observed volumes on the links of the considered network. While the models proposed in the past differ greatly in their mathematical formulation and interpretation, they all share the fact that using them for real size networks is difficult, if not impossible. This is due to the complexity of the computations that are involved and the need for very specialized software to carry them out.

During the last two years, we have developed a new approach for the matrix adjustment problem. It is based on the gradient method: While minimizing an objective function based on the difference of observed - predicted volumes on the count post links, the concept of steepest descent, which is inherent to the gradient approach, ensures that the initial demand matrix is not changed more than necessary. The mathematical details of this new method are described in a separate publication (Spiess H., A Gradient Approach for the O-D Matrix Adjustment Problem, CRT Publication #693).

Most important from the practical point of view, is the fact that this method can be implemented as a macro in EMME/2 without the need of any additional software! This also implies that the method can be applied to any network and matrix size that can be handled in EMME/2. The implementation of one iteration of the adjustment method consists in a normal auto assignment, two Additional Options auto assignments, as well as several with network and matrix calculations. A scattergram of the observed vs. assigned volumes on the count post links is generated for each iteration; this facilitates monitoring the progress of the adjustment process.

During 1988 and 1989, we had the opportunity to test the proposed gradient method and apply it in practice in several studies. The test example used was based on the standard EMME/2 Winnipeg Demonstration Database. The applications include two urban applications for the cities of Bern and Basel (in collaboration with Rapp AG) and the two national road networks of Sweden (with Transek AB) and Finland (with Finnmap OY) The table below gives some characteristics of these applications: number of traffic zones, number of network links, number of links with observed volumes, the tex2html_wrap_inline233 -value between observed and assigned volumes using the initial demand, the tex2html_wrap_inline233 -value after the adjustment, and, finally, the number of gradient iterations that were carried out for the adjustment.

StudyZonesLinksCountsinitial tex2html_wrap_inline233 final tex2html_wrap_inline233 Iter.
Winnipeg1542983700.8340.97111
Basel3302202290.9230.9706
Bern22626763380.9600.99520
Sweden52238793340.8270.99220
Finland4691247657590.4910.88630

As an example, the scattergrams of observed versus assigned volumes before and after 20 iterations of the adjustment procedure are shown below for the Swedish national road network application. The computations were carried out on a SUN SPARCstation 1 computer. On this equipment, each iteration of the gradient method took about 25 minutes of computing time.

figure74

In all applications that were carried out so far, the gradient method was found to perform very well. However, there are some important practical points to consider before applying the algorithm:

The macro DEMADJ is called in the following way:

~<demadj gqp dpq iter relgap normgap gstep [cnt]

The parameter are defined as follows:

gpq
Demand matrix to be adjusted (e.g. "mf6"). Since the initial contents of this matrix will be overwritten with the resulting adjusted matrix, it is recommended to first do a copy. This matrix must not be write protected.
dpq
Temporary matrix of type mf which is used to hold the gradient direction matrix. This matrix must exist and must not be write-protected. Its initial contents will be lost.
iter
Number of iterations stopping criteria used in assignment.
relgap
Relative gap stopping criteria used in assignment.
normgap
Normalized gap stopping criteria used in assignment.
gstep
Number of gradient steps to be performed (adjustment iterations).
cnt
This is an optional argument. If set to 1, the first "half step" (i.e. a regular auto assignment to compute volumes) is skipped, assuming that this assignment was already performed. Use this option only when continuing with more steps on the same adjustment (i.e. higher <gstep> value).

Besides the explicit parameters, the DEMADJ macro assumes some implicit requirements on the data base. The following link user data items and scalar matrices are used by the macro:

ul1
Observed volumes (0=no count available)
ul3
Reserved for temporary storage. Original contents will be lost.
ms90
This scalar contains the current adjustment step number. If it exists, it must be initialized to 0 before a new adjustment is started. This scalar will be incremented after each adjustment step. It is compared with the gstep stopping criterion at each iteration.
ms91-ms94
Scalars to hold the value of the objective function Z, the maximum gradient, the optimal step length and temporary data. These scalars are created if they do not exist. If they do exist, their original contents will be lost.

Even though only fixed demand assignments are carried out, it is also recommended that the DEMADJ macro is used with the variable demand version of the auto assignment (see also the section Bugs+Fixes in this issue). In addition to the above, the macro itself contains more detailed instructions in the initial comment section, which should be read and observed carefully.


next up previous
Next: In The Works Up: EMME/2 News 10 October 1990 Previous: CNTPOST: A Macro for Optimal


Heinz Spiess, EMME/2 Support Center, Thu Jun 6 14:22:53 MET DST 1996