Originally posted by: SystemAdmin
[shadi said:]
Dear Frank,
i thought that i solved this problem using another way, but now When generateing the odm application from my project i can see that the way that i followed is not correct, i want to pass parameters from the scenario to this model, my current code is:
var cpConfig0 = new IloOplRunConfiguration("btpair.mod", "basicData.dat");
var cpModel0 = cpConfig0.oplModel;
var cpData0 = cpModel0.dataElements;
// i want to pass many data here in order to initialize my global data like :
cpData0.nSeq=10;
cpModel0.addDataSource(cpData0);
cpModel0.generate();
and the btpair model use only the data from the basicData data file and not the data that i passed before the generate function (nSeq=20 and not 10).
can you explain to me how i can do that in details, becuase i have not only simple variable like nSeq, i have more complex data structures like tupleset and arrays, and i want pass these data from database from the odm.
where to add the code that you sent? after the cpModel0.generate(); command?
thanks in advanced
Kshieboun Shadi
#DecisionOptimization#OPLusingCPOptimizer