![](/img/trans.png)
[英]Anylogic import new Excel file for each iteration of a simulation experiment - anylogic help code does not work
[英]Does Anylogic provide the option of saving datasets to Excel/csv-files after the running an experiment?
我正在构建我的第一个 anylogic model。我在模拟运行时收集数据集中重要变量的值。 运行完成后,如何将这些数据自动保存到 excel/csv 文件中?
根据 Big Book of Simulation Modeling,有将数据保存到数据库的选项,但我使用的计算机没有 MS Access,管理规则不允许我安装新软件。
关于如何使用 excel api 将数据写入您的 excel https://anylogic.help/api/com/anylogic/engine/connectivity/ExcelFile.html的帮助文档有一整章
您需要使用连接面板中的 excel object
然后你可以做一些事情,比如
excel.setCellValue(value, sheetIndex, rowIndex, columnIndex);
excel.writeFile();
写一个你做的数据集
excel.writeDataSet(DataSet dataSet, int sheetIndex, int rowIndex, int columnIndex)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.