Originally posted by: SystemAdmin
[shadi said:]
hi
in my main block i have the following loop:
for (t=0;t<nTrips;t++){<br />
var cpConfig2 = new IloOplRunConfiguration("btpair_no_preprocess.mod");
var cpModel2 = cpConfig2.oplModel;
cpConfig2.cp.param.LogVerbosity="Quiet";
cpConfig2.cp.param.searchType ="Restart";
cpModel2.addDataSource(.,,,,t,,,,)
cpModel2.generate();
while (cpConfig2.cp.next()) { // next loop
pairCst.add(,,,);
}
}
question
how i can get unduplicated solution even for different trips (t), how i can do that in the cp model, i mean can i add a constrain which forbid duplicated columns in the cp model????
i dont want to check if the column is exist after the next() function.
thanks in advanced
kshieboun shadi
#ConstraintProgramming-General#DecisionOptimization