Originally posted by: JPatrick
Hi,
When I try to define a int parameter value using:
int Blanks [Tests,Days]=...;
string NumberOfWeeks = Blanks[1,Days];
int W = NumberOfWeeks.lastIndexOf("10");
Blanks is a matrix with zeros and ones and I am trying to find the index of the highest value d in "Days" for which Blanks[1,d] contains a 1 in it. The error message I get is
"sytnax error, unexpected '(', expecting ';'
I also tried using last-index-of instead and go the message
"expecting a tuple and got a string"
JP
#DecisionOptimization#OPLusingCPLEXOptimizer