Originally posted by: restu
When I looked at the documentation, the transition times is written like this:
using CP;
int n = 10; range R = 1..n; tuple triplet
{
int id1;
int id2;
int value;
};
{ triplet
} tt =
{ <i,j, ftoi(abs(i-j))> | i,j in R
};
The problem with this is that for each combination i and j, the value will be different, because it is subtracting j from i. For example, when the i = 1, and j = 10, the value will be 9. But when i = 2 and j = 10, the value will be 8.
What i want to do is to have the value the same every time. So, i tried to write it like this:
{ triplet
} tt =
{ <i,j, 10> | i,j in R
};
So I can have 10 as the value every time. But I got no solution.
Anyone knows how to make the value static / consistent?
Thanks in advance.
#CPOptimizer#DecisionOptimization