Originally posted by: kaarthiksundar
Thanks,
But the problem is I do the two methods specified in those links and have tried both the setvector and addMIPStart. This is what I did and it seems to have no effect on the way cplex solves the problem
IloNumArray vals(env);
IloNumVarArray vars(env);
for(int i = 0; i < NoOfTargets; i++)
{
for(int j = 0; j < NoOfTargets; j++)
{
vars.add(x[i][j]);
vals.add(initial[i][j]);
}
}
IloCplex cplex(model);
//cplex.setVectors(vals, 0, vars, 0, 0, 0);
cplex.addMIPStart(vars,vals);
cplex.extract(model);
cplex.solve();
Regards
Kaarthik
#CPLEXOptimizers#DecisionOptimization