Originally posted by: SystemAdmin
[shadi said:]
Didier,
i did the following steps:
1. I create a new model file dummy.mod
tuple pairCst_T {
int i;
int v;
int bc;
int DrivingTime;
int DrivingDistance;
int BreakTime;
int DutyPeriod;
};
{pairCst_T} pairCst = ...;
2. i create a new data file EmptyTupleSets.dat
pairCst = {};
3. in the main block I added the following code:
var dummy = new IloOplRunConfiguration("dummy.mod");
dummy.oplModel.addDataSource(new IloOplDataSource("EmptyTupleSets.dat"));
dummy.oplModel.generate();
for (var PairCstTempElement in thisOplModel.pairCstTemp) {
dummy.oplModel.pairCst.add(PairCstTempElement);
}
My question now is how to implement the following peudo code:
thisOplModel.pairCst=dummy.oplModel.pairCst;
I still have the same problem.
i dont know why there is no simple function that can empty a tupleset without all this process? i think this process use a lot of time becuase i will need to empty the tupleset millions times.
maybe a good solution for my problem if there is way to delete a tuple from a tupleset
i mean, how I can delete the last tuple from pairCst???
Thanks in advanced
Kshieboun shadi
#ConstraintProgramming-General#DecisionOptimization