From 4130bec2cc6007c3dc48e4c8566b13d986f598d4 Mon Sep 17 00:00:00 2001 From: Killian Fretaud <49268413+k-fretaud@users.noreply.github.com> Date: Wed, 11 Dec 2019 16:35:44 +0100 Subject: [PATCH] 1 -> b0 (#89) --- src/solution.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solution.jl b/src/solution.jl index 12d3bc0..97e3020 100644 --- a/src/solution.jl +++ b/src/solution.jl @@ -211,7 +211,7 @@ function initialize_batches!(solution::Solution, instance::Instance) push!(solution.colors, batch) end batch = Batch(1, b0) - current_color = instance.color_code[solution.sequence[1]] + current_color = instance.color_code[solution.sequence[b0]] push!(solution.colors, batch) for position in (b0+1):solution.length car = solution.sequence[position]