Originally posted by: monsieursoif
Hi,
I'm trying to read data from an excel spreadsheet and I've been getting an internal error since I implemented the connection.
my .mod-file:
int varm = ...;
int varn = ...;
{int} legs = asSet(0..varm-1);
{int} odpairs = asSet(0..varn-1);
int capacity[legs] = ...;
float rate[odpairs] = ...;
int meandemand[odpairs] = ...;
int lowerb[odpairs] = ...;
int upperb[odpairs] = ...;
int interval[legs][odpairs];
my .dat-file:
SheetConnection data("data.xlsx")
varm = 5;
varn = 15;
capacity from SheetRead (data, "capacityS1");
rate from SheetRead (data, "ratesS1");
meandemand from SheetRead (data, "demandS1");
lowerb from SheetRead (data, "lowerbS1");
upperb from SheetRead (data, "upperbS1");
I'm pretty sure I named all the ranges in excel correctly and I really don't have a clue what goes wrong there. I will include my excel-file as an attachment although I'm almost sure the problem doesn't lie there.
Thank you in advance for your help!
soif
#DecisionOptimization#OPLusingCPLEXOptimizer