Originally posted by: SystemAdmin
Lets declare an array of boolean variables in this way:
y = IloNumVarArray(*m_env, m_nrLocations, 0, 1, ILOBOOL);
or
y = IloNumVarArray(*m_env, m_nrLocations, 0, 1, ILOINT);
they when using y[i].getType() the result seems incorrect. The output I think is supposed to be 3 (according to declaration enum Type { Int=1, Float=2, Bool=3 };
inside the header file 'iloexpression.h') but surprisingly it can be 1 for
some of the variables.
I came across this when trying to add addDiversityFilter to the cplex object and it said "3003".
#CPLEXOptimizers#DecisionOptimization