Skip to content

Commit

Permalink
Merge pull request #26 from nextmv-io/feature/eng-4940-change-default…
Browse files Browse the repository at this point in the history
…-runtime-of-nextroute-to-5-seconds

Feature/eng 4940 change default runtime of nextroute to 5 seconds
  • Loading branch information
nilsbeck authored Apr 9, 2024
2 parents 5b4216f + 19a97f1 commit 865ccaf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion solve_solver_parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Iterations string = "iterations"
// ParallelSolveOptions holds the options for the parallel solver.
type ParallelSolveOptions struct {
Iterations int `json:"iterations" usage:"maximum number of iterations, -1 assumes no limit; iterations are counted after start solutions are generated" default:"-1"`
Duration time.Duration `json:"duration" usage:"maximum duration of the solver" default:"30s"`
Duration time.Duration `json:"duration" usage:"maximum duration of the solver" default:"5s"`
ParallelRuns int `json:"parallel_runs" usage:"maximum number of parallel runs, -1 results in using all available resources" default:"-1"`
StartSolutions int `json:"start_solutions" usage:"number of solutions to generate on top of those passed in; one solution generated with sweep algorithm, the rest generated randomly" default:"-1"`
RunDeterministically bool `json:"run_deterministically" usage:"run the parallel solver deterministically"`
Expand Down
4 changes: 2 additions & 2 deletions tests/golden/testdata/max_distance.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@
"name": "1 * vehicles_duration + 1 * unplanned_penalty",
"objectives": [
{
"base": 148.9095949929201,
"base": 148.90959499292012,
"factor": 1,
"name": "vehicles_duration",
"value": 148.9095949929201
"value": 148.90959499292012
},
{
"base": 6000000,
Expand Down
8 changes: 4 additions & 4 deletions tests/golden/testdata/min_stops.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@
"name": "1 * vehicles_duration + 1 * unplanned_penalty + 1 * min_stops",
"objectives": [
{
"base": 909.04663596676,
"base": 909.0466359667603,
"factor": 1,
"name": "vehicles_duration",
"value": 909.04663596676
"value": 909.0466359667603
},
{
"factor": 1,
Expand All @@ -91,7 +91,7 @@
"value": 0
}
],
"value": 909.04663596676
"value": 909.0466359667603
},
"unplanned": [],
"vehicles": [
Expand Down Expand Up @@ -214,7 +214,7 @@
"unplanned_stops": 0
},
"duration": 0.123,
"value": 909.04663596676
"value": 909.0466359667603
},
"run": {
"duration": 0.123,
Expand Down
8 changes: 4 additions & 4 deletions tests/golden/testdata/vehicle_start_end_location.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@
"name": "1 * vehicles_duration + 1 * unplanned_penalty",
"objectives": [
{
"base": 375.47202306044016,
"base": 375.4720230604402,
"factor": 1,
"name": "vehicles_duration",
"value": 375.47202306044016
"value": 375.4720230604402
},
{
"factor": 1,
"name": "unplanned_penalty",
"value": 0
}
],
"value": 375.47202306044016
"value": 375.4720230604402
},
"unplanned": [],
"vehicles": [
Expand Down Expand Up @@ -255,7 +255,7 @@
"unplanned_stops": 0
},
"duration": 0.123,
"value": 375.47202306044016
"value": 375.4720230604402
},
"run": {
"duration": 0.123,
Expand Down

0 comments on commit 865ccaf

Please sign in to comment.