Originally posted by: Calvin Sun Hainan
I have an error message in my OPL script "Scripting runtime error: cannot convert to an integer, "2777734350"."
This is strange as OPL script should have no problem to handle a big integer value up to 9e+15 based on my previous understanding.
The only possible cause I can think about is the data type "var" not allow values as big as 2777734350.
In my script, I have some calculation like this.
int x = 2780000000;
execute {
var a;
......
x -= a;
}
It looks like OPL script tries to convert the variable "a" from "var" to "int" to do the calculation for "x". However, that fails for some reason.
#DecisionOptimization#OPLusingCPLEXOptimizer