One of the arguments of a function in Cplex concert C++ has IloNumArray type and it must be an empty dynamic array. The size of the array is not known until the end of the solution. I declared the array like this:
const IloNumVarArray var(env);
IloNumArray down;
IloNumArray up;
IloInt64 iteration1 = var.getSize();
IloCplex::getStrongBranch(down, up, var, iteration1);
But I got this error: no instance of overloaded function matches the argument list
The link is here. The down and up arrays have to be dynamic arrays.