Originally posted by: Rajasekhar_Kadambur
Hi,
I am trying to bench mark a model by playing around the settings parameters.
I trying to solve the CP model for various number of workmen.
the model is as follows:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
range cores = 1..10;
int NoWorker[cores] = [32,24,20,16,12, 8,6,4,2,1];
main {
thisOplModel.generate();
var data1 = thisOplModel.dataElements;
var opl2 = new IloOplRunConfiguration("Learning_BenchMarking.mod","Learning_BenchMarking.dat");
var source2 = new IloOplModelSource("Learning_BenchMarking.mod");
var data1 = new IloOplDataSource("Learning_BenchMarking.dat");
opl2.cp.param.timemode = "ElapsedTime";
opl2.cp.param.timelimit = 150;
opl2.cp.param.SearchType = "MultiPoint";
writeln("Cores Objective")
for(var i in thisOplModel.cores){
opl2.cp.param.workers = thisOplModel.NoWorker[i];
if (opl2.cp.solve()){
writeln(thisOplModel.NoWorker[i]," ",opl2.cp.getObjValue());
}
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//output is like this
Cores Objective
32 null
24 null
20 null
16 null
12 null
8 null
6 null
4 null
2 null
1 null
How to resolve this issue.
i am fixing the
solve time to 600 seconds
search method to MultiPoint
TimeMode is ElapsedTime
Any suggestion are welcome. thanks in advance.
#DecisionOptimization#OPLusingCPOptimizer