Originally posted by: isczg
Hi all,
The ref doc states that IloTupleSet.add() method will return the tuple added or already existing, but I find it is not the case for "sorted" tuple sets.
Please run the following code, then you'll find that the return value not always equals the added value.
tuple T {
key string s;
int a;
}
sorted {T} ts;
execute {
for (var i=0; i<100; i++) {
var obj = ts.add(i.toString(), i);
if (obj.a != i) writeln(obj);
}
}
My Cplex Studio version is 12.6.0, and does the problem above exist in newer version?
Is that a bug or just an implementary option forgotten to write on the doc?
#DecisionOptimization#OPLusingCPOptimizer