Skip to content

Simple Python wrapper #9

Description

@munterfi
  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions