File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
concepts/pragmatic/problem
vrp-cli/src/extensions/import Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
13
13
* improve managing packages with cargo's workspace
14
14
* update dependencies
15
15
* ` breaking ` : refactor internal models to simplify cost/telemetry handling
16
+ * change duration in csv import command from minutes to seconds
16
17
17
18
### Added
18
19
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ defined. Each task has the following properties:
40
40
Each `place` consists of the following properties:
41
41
42
42
- **location** (required): a place location
43
- - **duration** (required): service (operational) time to serve task here
43
+ - **duration** (required): service (operational) time to serve task here (in seconds)
44
44
- **times** (optional): time windows
45
45
- **tag** (optional): a job place tag which will be returned within job's activity in result solution.
46
46
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Jobs csv defines a `plan` of the problem and should have the following columns:
28
28
* positive: ` pickup `
29
29
* negative: ` delivery `
30
30
* zero: ` service `
31
- * ` DURATION ` __ (integer)__ : job duration in minutes
31
+ * ` DURATION ` __ (integer)__ : job duration in seconds
32
32
* ` TW_START ` __ (date in RFC3999)__ : earliest time when job can be served
33
33
* ` TW_END ` __ (date in RFC3999)__ : latest time when job can be served
34
34
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ mod actual {
67
67
let get_task = |job : & CsvJob | JobTask {
68
68
places : vec ! [ JobPlace {
69
69
location: Location :: Coordinate { lat: job. lat, lng: job. lng } ,
70
- duration: job. duration as f64 * 60. ,
70
+ duration: job. duration as f64 ,
71
71
times: parse_tw( job. tw_start. clone( ) , job. tw_end. clone( ) ) . map( |tw| vec![ tw] ) ,
72
72
tag: None ,
73
73
} ] ,
You can’t perform that action at this time.
0 commit comments