gruobi:使用了model.write但无法找到该文件

时间:2015-09-09 15:38:15

标签: c++ gurobi

我正在使用Gurobi和C ++,并希望将Lp保存为file.lp.因此,我用了

model.write("model.lp");
model.optimize();

这是我的输出,也不会发生错误:

Optimize a model with 105 rows, 58 columns and 186 nonzeros
Coefficient statistics:
  Matrix range    [1e+00, 1e+00]
  Objective range [1e+00, 1e+00]
  Bounds range    [0e+00, 0e+00]
  RHS range       [1e+00, 6e+00]
Presolve removed 105 rows and 58 columns
Presolve time: 0.00s
Presolve: All rows and columns removed
Iteration    Objective       Primal Inf.    Dual Inf.      Time
       0   -0.0000000e+00   0.000000e+00   0.000000e+00      0s

Solved in 0 iterations and 0.00 seconds
Optimal objective -0.000000000e+00
obj: -0
Status2
Process finished with exit code 0

因此我的LP中可能存在错误,因为最佳解决方案不应为0.这就是为什么我要查看model.lp文件。但是,我找不到它。我搜索了整台电脑。我错过了什么吗?

0 个答案:

没有答案