Assgm 2 - Traffic Assignment problem - MM

Assgm 2 - Traffic Assignment problem - MM

My parameters: [[Assgm 2 - Parameters - MM.pdf]]

Name ID File_XX.jpg cij dij O-D Flow Aug. factor for cij at red links
Matteo Meloni ca41844hp 18 2 0,1863 30 2.9430

You are assigned the following network

Assgm 2 - Traffic Assignment problem - MM 2024-12-08 11.36.44.excalidraw.png

The Volume delay function is the same for each link, and it's equal to:

sij(x)=cij+dijxij2

where:

According to the assigned parameters, the values are as follows:

❗❗ Keep in mind, parameters have different names in the AMPL code...

What we have to do

Solve a 02 - Traffic Assignment Problem - MM using AMPL.

Beckmann's problem - Assgm 2

Given the volume delay function:

t0ij(vij)=cij+capijvij2

the Beckmann's problem is

minxijijA0xijt0ij(x)dx

Subject to

Av=b

where A is the set containing all the links in the network

The objective function can be written explicitly:

0vijt0ij(x)dx=0vij(cij+capijxij2)dx=cijvij+13capijvij3

In AMPL, the Beckmann's problem is problem Q:

problem Q: v_k, v, N, flux_total, Vnl; # Traffic Assignment (Equilibrium problem) Definition

Which uses:

The objective function in the .mod file appears as

minimize Vnl: sum { (i,j) in links} (gamma * c[i,j] + cap[i,j] * (1/3) * v[i,j]^3);

which corresponds to

minvVnl=minv(γcij+capij13vij3)

where:

Last question

Pick 4 OD pairs.
For each OD pair, pick 3 paths.

Picked OD pairs and paths:

The problems in AMPL

Assgm 2 - Traffic Assignment problem - MM 2024-12-09 15.43.53.excalidraw.png

Assgm 2 - Traffic Assignment problem - MM 2024-12-11 09.37.19.excalidraw.png