Pyomo(PySP)将“ \”更改为“ /”

时间:2019-05-07 00:50:56

标签: python pyomo

当我在Anaconda Prompt(Windows操作系统)中使用runef命令(PySP)

(base) D:\Downloads\Documents\models_Opt_estocastica> runef --solve --solver=gurobi

我遇到了错误:

"runef: IO ERROR:
path does not exist: D:/Downloads/Documents/models_Opt_estocastica/ReferenceModel.py

问题在于Pyomo将“ \”符号更改为“ /”符号,因此它无法识别我给出的路径。你有什么想法我可以解决这个问题吗?

非常感谢您的帮助。

0 个答案:

没有答案