Skip to content

Instantly share code, notes, and snippets.

View bokner's full-sized avatar

Boris Okner bokner

  • Barrie, ON, Canada
View GitHub Profile
include "globals.mzn";
int: N;
set of int: NODES = 1..N;
int: E;
set of int: EDGES = 1..E;
int: M;
set of int: MANDATORY = 1..M;
array[EDGES] of int: from;
include "globals.mzn";
int: N;
int: M;
set of int: CARS = 1..N;
set of int: MACHINES = 1..M;
array[CARS, MACHINES] of int: durations;
include "globals.mzn";
int: N;
int: M;
set of int: JOBS = 1..N;
set of int: MACHINES = 1..M;
array[JOBS, MACHINES] of int: durations;
array[JOBS, MACHINES] of int: steps;