AequilibraE / aequilibrae

aequilibrae - Python package for transportation modeling
https://www.aequilibrae.com
Other
166 stars 38 forks source link

Route choice docs and adjusting #532

Closed pedrocamargo closed 3 months ago

pedrocamargo commented 4 months ago

Adds route choice capabilities to AequilibraE. Items still missing:

janzill commented 4 months ago

@Jake-Moss it looks like we calculate path overlap factors before excluding paths with the provided minimum probability parameter. However, we want to exclude these paths from the choice set, which means we want to calculate path overlap factors AFTER exclusion.

janzill commented 4 months ago

We might also want to think about using the minimum probability as an early stopping criterion for path searches.

Jake-Moss commented 4 months ago

@Jake-Moss it looks like we calculate path overlap factors before excluding paths with the provided minimum probability parameter. However, we want to exclude these paths from the choice set, which means we want to calculate path overlap factors AFTER exclusion.

Ah damn, we are too. Shouldn't be a difficult fix

pedrocamargo commented 3 months ago

@janzill , since we are saying that utility is positive and the negative sign is in the computation itself, then I think we should do three things:

janzill commented 3 months ago

@janzill , since we are saying that utility is positive and the negative sign is in the computation itself, then I think we should do three things:

  • Make sure the math is correct also for the binary logit
  • Document that assumption (needed to compute paths, actually)

Hm, maybe we should refer to cost instead of utility. The cost of a link is a measure that has to be positive for the shortest path algorithm to work, and we need our total cost to be the sum of link costs. The observed utility in the path size logit calculations is then the negative path cost plus parameter times path overlap term (which itself is calculated with link costs). I double-checked, the maths should be correct using cost.