%----------------------------------------------------------% % Rehan Abdul Aziz % % Road construction problem. % %----------------------------------------------------------% %input int: n; set of int: N = 1..n; array[N,N] of int: distance; array[N,N] of int: cost; int: budget; int: M = 1000000; %decision variables array[N,N,N] of var 0..M: sp; array[N,N] of var bool: construct; constraint forall (x in N) ( construct[x,x] = false /\ forall (s in N) (sp[x,x,s] = 0) ); constraint forall (x,y in N where x