Pyomo经验系列--- FileNotFoundError: [Errno 2] No such file or directory
这里代码问题,是因为 代码末端加了 “逗号”导致 string 变为 tuple 类型,传入 model导致报错。上面报错信息并不是某一段代码有问题,不容易定位,检查输入model的参数是否正确。注意输入model中的参数类型, 传入 cplex 标准是string 传入 tuple 就会出问题。
原创
2024-05-06 23:41:58 ·
413 阅读 ·
0 评论