Originally posted by: JorisK
When programming in C++, is there any difference between these two (i.e. does Cplex treat them differently):
IloNumVar x(env, 0, 17, IloNumVar::Int);
IloIntVar y(env, 0, 17);
similarly, are these treated differently:
IloIntVar u(env, 0,1);
IloBoolVar w(env, varName);
The reason I'm asking is that I have a cut separation routine that takes a Map<Edge, IloNumVar> which maps an Edge in a graph to a variable. I've two different models: in the first model, the variables corresponding with the edges are continues (IloNumVars), whereas in the second model the variables are boolean (IloBoolVar). For both models, I could use the same separation routine if I would declare the variables as IloNumVars.
#CPLEXOptimizers#DecisionOptimization