首页 > 解决方案 > Cplex-从 Excel 文件中读取数据

问题描述

我有一个问题,我无法从 EXCEL 文件中加载我的数据。这是我的代码,

in mod file

    int i = ...;
    range values = 1..i;
    int storage[values] = ...;

in dat file
    SheetConnection store("DataSet-5.xlsx");

storage from SheetRead(store,"'Sheet1'!B2:B201"); ##Sheet1 is the sheet name where the data is located.
    i = 201;

文件与我的项目位于同一位置。但它给出了内部错误。

标签: excelcplexopl

解决方案


推荐阅读