Skip to content

Instantly share code, notes, and snippets.

int: n = 4; % number of gangs
set of int: Gang = 1..n;
array[Gang] of int: m = [3, 2, 2, 3]; % size of each gang
int: t = sum(m);
set of int: Time = 1..t;
set of int: Student = 1..t;
%%%%%%%
array[Student] of var Time: interview; % at what time do we see a given student?