我正在解决一个多期问题。有6个客户和3个期间。客户的需求在excel中编写如下:
Customer 1 Demand in period 1(B3) Demand of period 2 Demand in period 3(D3)
Customer 6
我在.dat中写了以下内容:Dem from SheetRead(sheet,"Data!B3:D8");
它给出了错误
答案 0 :(得分:-1)
.mod
range customers=1..6;
range periods=1..3;
int Dem[customers][periods]=...;
.dat
SheetConnection sheet("test.xlsx");
Dem from SheetRead(sheet,"Data!B3:D8");
很好。
您确定您拥有Excel并拥有Windows计算机吗?