Originally posted by: 020W_Denni_Nußbaum
Hello
I has an CPL Code which gernates an symmetric matrices for an tournament. My Problem is, that I would not like to use these CPL, but
I need these Code in math algorithm. That means I do need not the Programming languange instead I need the mathematical formula.
Maybe someone could help me, because I need it soon and I don't know how to writh this code in mathematical formula.
First it stand all the declaration of range, int, but I will leave this out.
var team P[X,Y];
var Venues V[X,Y];
solve{
forall(x in X)
alldifferent(all(y in Y) P[x,y]);
forall(a in X & i in Y] {
P[a,a]=0;
P[a,i]=P[i,a];
V[a,i]=V[i,a];
};
forall(ordered a,b in X & c,d in Y : c>a & d>b) {
P[a,c]=P[b,d]=>V[a,c]<>V[b,d];
};
};
search {
generade(P);
};
#DecisionOptimization#OPLusingCPLEXOptimizer