Originally posted by: hugotorres
I want to concatenate the value of a variable to a string, but I'm failing to do so. I'm pretty sure that there's a way to do this but I can't find the example I was looking for.
The idea is to read from an excel file dynamically, changing the number of the row. Right now my code on the .dat file is this one:
myString = "A"+start+":K"+end
SheetConnection mysheet("FiresReport_waste.xlsx");
SheetConnection zonesSheet("zonesbin.xlsx");
tableFires from SheetRead(mysheet,"TableFires");
possibleZones from SheetRead(zonesSheet,myString);
I get an error on the declaration of myString, saying "Unexpected character in "+", try using quoted string data, or check the encoding".
Any suggestion on how to solve this?
#DecisionOptimization#OPLusingCPLEXOptimizer