Skip to content

Confusion on Incidence Matrix Format #23

@haruharu9

Description

@haruharu9

Hi, I am a graduate student in civil engineering. I am trying to apply recursive logit model for a route choice analysis. I have come across your repo and Tien Mai’s. I am confused about the formulation for incidence matrix.

The incidence matrix should be (start_node, end_node, 1) or (start_link, succeeding_link, 1)?

Based on the observation matrix format ([Dest, Orig, Link1, Link2, ..., LinkN, Dest]), seems like the incidence matrix should be link based. But according to your comments in your network_visualiser.py, the incidence matrix format should be node based (Tien Mai's code is node based?). If the incidence matrix is node based, the link ID information is not stored in the incidence matrix, how can we get a link based observation matrix?

Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions