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

Simple Python wrapper #9

Open
munterfi opened this issue Sep 23, 2022 · 0 comments
Open

Simple Python wrapper #9

munterfi opened this issue Sep 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@munterfi
Copy link
Member

  • I would suggest a python wrapper, all calculations happen in C, python only knows the pointer to the network struct and calls the C functions on the struct pointer.
  • Functionality:
    • Network Class with methods:
      • net.add_node(name, coords)
      • net.add_route(node_list, trip_list, vehicle_list)
      • connection or None = net.find_route(nodeA, nodeB, departure, seats) --> check several places at once, e.g. families etc.
      • net.reserve_connection(connection)
      • container/vehicle = net.optimize_utilization(trip): Optimizes seat reservations (THE MAGIC IS HERE)
      • net.export(): Suggestion --> We export the network as MATSim XML public transport network, then it can be used for simulations.
      • net.import(): Imports MATSim XML public transport network, advantage: already existing networks can be imported.
      • Visualizations: Plot network, plot utilization per route, plot utilization per vehicle/trip.
@munterfi munterfi added the enhancement New feature or request label Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant