[![在此处输入图像说明][1]][1]我正在运行”bendersatsp.py“来自CPLEX通过eclips提出的例子。我只添加了atsp.dat公司在定义了“filename=”的main子句中。伦恩似乎只是在它执行之后才执行的(系统argv)=1并给出以下结果。你知道问题出在哪里吗?为什么它不能完全运行?在
Usage: bendersatsp.py {0|1} [filename]
0: Benders' cuts only used as lazy constraints,
to separate integer infeasible solutions.
1: Benders' cuts also used as user cuts,
to separate fractional infeasible solutions.
filename: ATSP instance file name.
File C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio1261\cplex\examples/data/atsp.dat used if no name is provided.
0 | 1参数是必需的。例如,需要按如下方式运行脚本:
或者,假设您已经更改了默认的
^{pr2}$filename
路径:我在解析以下命令行参数的代码中添加了一些注释,试图使这一点更清楚:
相关问题 更多 >
编程相关推荐