Originally posted by: qtbgo
Hi, in the following code, is the sequence of the end methods (including cp.endSearch();
) correct?
main{
var modsource = new IloOplModelSource("CPInitialNoTuple.mod"); //
var def = new IloOplModelDefinition(modsource);
var cp = new IloCP();
cp.param.TimeLimit = 10;
var opl = new IloOplModel(def,cp);
var dataSource = new IloOplDataSource(.....);
opl.addDataSource(dataSource);
opl.generate();
opl.settings.mainEndEnabled = true;
cp.startNewSearch();
while( cp.next() )
{ ......
}
cp.endSearch();
opl.end();
dataSource.end();
def.end();
modsource.end();
}
#DecisionOptimization#OPLusingCPOptimizer