Skip to content

Commit

Permalink
include distance in readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathf committed Apr 19, 2024
1 parent 7431231 commit 4800e99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Basic usage
... vroom.Job(1616, location=2),
... vroom.Job(1717, location=3)])
>>> problen_instance.set_geometry()
>>> solution = problem_instance.solve(exploration_level=5, nb_threads=4)
>>> solution.summary.cost
Expand All @@ -63,7 +65,7 @@ Basic usage
'waiting_time', 'location_index', 'id', 'description'],
dtype='object')
>>> solution.routes[["vehicle_id", "type", "arrival", "location_index", "id"]]
>>> solution.routes[["vehicle_id", "type", "arrival", "location_index", "id", "distance"]]
vehicle_id type arrival location_index id
0 47 start 0 0 <NA>
1 47 job 2104 1 1515
Expand Down Expand Up @@ -96,7 +98,7 @@ Usage with a routing engine
>>> sol = problem_instance.solve(exploration_level=5, nb_threads=4)
>>> print(sol.summary.duration)
2698
2704
Installation
------------
Expand Down

0 comments on commit 4800e99

Please sign in to comment.