AequilibraE / qaequilibrae

Free QGIS add-on for transportation modeling
https://www.aequilibrae.com/qgis/latest/
Other
75 stars 24 forks source link

[New Feature] Implement YAML export during assignment #251

Open r-akemii opened 11 months ago

r-akemii commented 11 months ago

Implement a JSON export during assignment and, then, run assignment using QGIS processing provider with a function just like https://github.com/AequilibraE/qaequilibrae/pull/250 (would take the JSON as only input).

Art-Ev commented 10 months ago

Have made the "processing provider" part directly in #250 :

Yaml example display in the help of the qgis process :

Project: D:/AequilibraE/Project/

Run_name: sce_from_yaml

Traffic_classes:
    - car:
        matrix_path: D:/AequilibraE/Project/matrices/demand.aem
        matrix_core: car
        network_mode: c
        pce: 1
        blocked_centroid_flows: True
        skims: travel_time, distance
    - truck:
        matrix_path: D:/AequilibraE/Project/matrices/demand.aem
        matrix_core: truck
        network_mode: c
        pce: 2
        fixed_cost: toll
        vot: 12
        blocked_centroid_flows: True

Assignment:
    algorithm: bfw
    vdf: BPR2
    alpha: 0.15
    beta: power
    capacity_field: capacity
    time_field: travel_time
    max_iter: 250
    rgap: 0.0001