Originally posted by: SystemAdmin
[shadi said:]
hello,
can i change some values each time the next function accur???
e.g. i want to generate 300 initial bus duties for each trip using the cp optimizer,
so i have the following code:
for (var t=0;t<TripNumber;t++){<br />set som values
generate new cp configuration
startnewSearch()
while (next()){
// here we generate the 300 bus duties
}
}
my problem is that the 300 duties is independent from each other, and i want these duties to be related togather in order to have 300 GOOD initial duties. can i chande some values inside the next function, without to declare 300 times the same configuration from the begainging, becuase it take a lot of time??
maybe i can solve this problem if the cp model can read the data from dynamic data file that can be modified each time the next function occur.
thanks in advanced
Kshieboun Shadi
#CPOptimizer#DecisionOptimization