Skip to content

Commit

Permalink
Fix: multi_trips expands only once
Browse files Browse the repository at this point in the history
  • Loading branch information
senhalil committed Jul 1, 2020
1 parent d1d4a98 commit 5d76e2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/interpreters/multi_trips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def expand(vrp)
(0..vehicle.trips - 1).collect{ |index|
new_vehicle = Marshal.load(Marshal.dump(vehicle))
new_vehicle.id += "_trip_#{index}"
new_vehicle.trips = 1
new_vehicle
}
else
Expand Down

0 comments on commit 5d76e2c

Please sign in to comment.