Hi all,
I'm working on a cutting plane algorithm with callback, then run a relaxed problem (few restrictions) and iteratively solve a problem, in each iteration added a new set of cuts and verify if the solution is only one route, if so ends the algorithm .
cplex.use(CtCallback(env, model, cplex, x, y, lhs, rhs, cplex.getParam(IloCplex::EpRHS)));
ILOUSERCUTCALLBACK7(CtCallback, IloModel, model, IloCplex&, cplex, IloArray <IloArray <IloArray <IloBoolVar> > >, x,
IloArray <IloArray <IloArray <IloIntVar > > >, y,
IloExprArray, lhs, IloExprArray, rhs,
IloNum, eps){
IloExpr exprA (getEnv());
IloExpr exprB (getEnv());
exprA+= x[0][0][0];
exprB+= y[0][0][0]+y[2][1][0];
model(exprA<exprB);
}
Error: main.cpp:66: error: no match for call to '(IloModel) (IloConstraint)'... as I can make this process that at each iteration adding a set of constraints and that is also iterative?
Greetings and thank you very much,