I need to create a model to assert which are the letters on each face of a 4 dices, given the results of generic 4 dices rolls. Each of the 6 faces of the 4 dices has a different letter (24 letters, J and X are missing). For example: rolling 12 times the dices and combining every time the obtained letters, we got the following words: AGHI EZIO SLAM BOVE MICK TAEG CLUB NAVE TUFO DROP QUAD YORK I can’t find an objective to solve this problem. Right now I got: .dat set I := “AGHI”,“EZIO”,“SLAM”,“BOVE”,“MICK”,“TAEG”,“CLUB”,“NAVE”,“TUFO”,“DROP”,“QUAD”,“YORK”;
set L:= A B C D E F G H I K L M N O P Q R S T U V W Y Z;
set D:= 1 2 3 4;
set F:= 1 2 3 4 5 6; .mod set I;
set L;
set D;
set F;
subject to Entry{i in I, d in D}: sum{f in F}(A[d,f,substr(i,0,1)] + A[d,f,substr(i,1,1)] + A[d,f,substr(i,2,1)] + A[d,f,substr(i,3,1)]) = 1;
subject to Unique{l in L}: sum{d in D, f in F}A[d,f,l] = 1;
subject to Unique2{d in D, f in F}: sum{l in L}A[d,f,l] = 1; But I can’t get anything out of it. Do you have suggestions? Thanks!!!