Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature] Implement YAML export during assignment #251

Open
r-akemii opened this issue Oct 12, 2023 · 1 comment
Open

[New Feature] Implement YAML export during assignment #251

r-akemii opened this issue Oct 12, 2023 · 1 comment

Comments

@r-akemii
Copy link
Collaborator

Implement a JSON export during assignment and, then, run assignment using QGIS processing provider with a function just like #250 (would take the JSON as only input).

@r-akemii r-akemii changed the title Implement JSON export during assignment [New Feature] Implement JSON export during assignment Oct 12, 2023
@Art-Ev
Copy link
Contributor

Art-Ev commented Nov 14, 2023

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

  • Used YAML file as pyyaml already shipped with QGIS (also I think that yaml file are more userfriendly to read/edit)
  • Have tried to follow the menus for organising/grouping parameters
  • Will easily allow the addition of future functions (ex. link analyses)

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

@Art-Ev Art-Ev changed the title [New Feature] Implement JSON export during assignment [New Feature] Implement YAML export during assignment Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants