Export solution in R as .sol file?
AnsweredIs 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
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
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
Post is closed for comments.
Comments
2 comments