Originally posted by: 82BF_AIT_HADDADENE_Syrine_Rouf
thank you for your reply.
Yes I am sure that the model is feasible because though nothing is displayed in the browser problems, I can see solutions on the console these are correct.
I do not know if there is a command to add to the main function to display the solutions in the browser problems?
Here is my main function
main
{
var opl = thisOplModel;
var mod = opl.modelDefinition;
var dat = opl.dataElements;
var status = 0;
var best;
var curr = Infinity;
while (best != curr)
{
best=curr;
// IloCplex() sert à résoudre a Mixed Integer Programming
var cplex1 = new IloCplex();
opl = new IloOplModel(mod,cplex1);
opl.addDataSource(dat);
opl.generate();
if (!cplex1.solve()) {
writeln("ERROR: could not solve");
status = 1;
opl.end();
break;
}
opl.postProcess();
curr = cplex1.getObjValue();
writeln("Current solution : ", curr);
writeln("Arcs Adjacents : ", opl.Adj);
if (opl.newk!=0)
{
dat.subtours.add(opl.newk, opl.newS);
writeln("le sous tours existant : ", opl.subtours);
opl.end();
cplex1.end();
}
else
{
writeln("y a rien à rajouter");
opl.end();
cplex1.end();
break;
}
}
status;
}
regards.
#DecisionOptimization#OPLusingCPLEXOptimizer