Originally posted by: Eliosa
Thanks Alex, although this is useful, I don't think that will help achieving what I want to do.
In my ID tuple I have several id, I want to have a constraint that it can only use the specific id only once. Such as my assignement * id number result in an array of 0 and unique id number.
tuple IDType {
int id;
string source;
int match;
string dest; }
{IDType} ID = {<1,A,2,B>
<1,A,3,C>
<1,A,4<D>
<5,E,6,F>
<5,E,7,G>
};
Assignment can take value [1,0,0,1,0]
but can't take value [1,1,0,1,1]
#DecisionOptimization#OPLusingCPLEXOptimizer