In my .dat file, I want to fill an array with values of a column from an Excel Sheet. Depending on the problem, the number of values are different, that means there might be values from A1:A10 or from A1:A20. The number is specified in another Excel cell and is also used as a variable in the model and therefore also read. How can I now Sheetread the array with its correct size? Maybe string concatonation would work. I search for something like:
numberRows from SheetRead(DataSource, "Data!B1");
input = "Data!A1:A" + numberRows;
variable from SheetRead(DataSource, input);
Is something similar possible in CPLEX?