From 354a6e7d6633183dc01b0c61703f8689c288381c Mon Sep 17 00:00:00 2001 From: Imko Marijnissen Date: Thu, 2 Apr 2026 11:02:47 +0200 Subject: [PATCH] fix: incorrect indices used in tsptw for durToPred --- 2025/tsptw/tsptw.mzn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2025/tsptw/tsptw.mzn b/2025/tsptw/tsptw.mzn index daa8aba..5822191 100644 --- a/2025/tsptw/tsptw.mzn +++ b/2025/tsptw/tsptw.mzn @@ -30,7 +30,7 @@ int: depot = 1; % The first location is the depot array[Locations] of var Locations: pred; % durToPred[l] = the distance from location pred[l] to location l: array[Locations] of var 0..max(duration): durToPred = [ - duration[l, pred[l]] | l in Locations]; + duration[pred[l], l] | l in Locations]; % arrival[l] = the arrival at location l: array[Locations] of var 0..max(late): arrival; % departure[l] = the departure at location l: