Export solution in R as .sol file?
回答済みIs there a way to export the solution as a .sol file in R using the `gurobi` R package? The gurobi_write() function returns a error:
```
m <- gurobi_read("test.mps")
result <- gurobi(m)
gurobi_write(result, "test.sol")
Error: length(model$A) == 0
```
1
-
The gurobi_write() function is used to write model files, not solution files. You can write a solution file via the ResultFile parameter. For example:
params <- list(ResultFile="test.sol")
result <- gurobi(m, params)0
サインインしてコメントを残してください。
コメント
1件のコメント