Originally posted by: banun
Hi,
I wrote the following function that creates a variable :
{
IloInt one,two;
one = val-radius;
two = val+radius;
IloIntVar var(env, one, two, ILOINT, name);
var.setName(name.c_str());
return var.getId()
}
radius and val are
int,
name is
string the compiler complains :
no matching function for call to ‘IloIntVar::IloIntVar(IloEnv&, IloInt&, IloInt&, std::string&)’
candidates are:...
What's wrong with my function ?
Thanks
#CPLEXOptimizers#DecisionOptimization