Originally posted by: SystemAdmin
I'm not positive (I work with Java, not C++), but I'm pretty sure that IloNum is just an alias for double, does not have a constructor, and is not tied to an environment. So I think the compiler is looking at "IloNum(env)" as an attempt to cast env to an IloNum.
You might want to look at one or two of the C++ examples that ship with CPLEX to see how IloNum is used in practice. When I was <nightmare>coding in C++</nightmare>, I don't think I ever used IloNum; I just used ordinary doubles.
Paul
Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
#DecisionOptimization#MathematicalProgramming-General