Originally posted by: pnuzyf
My solution to this problem is:
forall((m,n) in Links)
{
//only one color can be assigned to a given edge
sum(i in Channels) x(m,n,i) <= 1;
}
forall((m,n) in Links, i in Channels)
{
//ensure each color can be assigned to a pair of nodes at most one time within a interference range, note that x(m,n,i) = x(n,m,i), and (n,m) belongs to Interference(m,n)
x(m,n,i) - sum((p,q) in Interference(m,n)) x(p,q,i) <= 0
}
However, after I add the second constraint to my model, it takes long time to run and finally "out of memory" message comes out. Is there any better way to express the second constraint? Thanks in advance!
#DecisionOptimization#OPLusingCPLEXOptimizer