rust-or / lp-solvers

library implementing interaction with various linear programming solvers
https://docs.rs/lp-solvers/
MIT License
17 stars 9 forks source link

Gurobi solver not working due to wrong file format #7

Closed FjodorGit closed 4 months ago

FjodorGit commented 4 months ago

I tried running the example from the readme with the GurobiSolver::default()-solver and received an the error Unknown file type for file '/tmp/.tmpaFP4S9' from the solver. After testing it with gurobi_cl I figured out that gurobi expects a valid suffix for the ResultFile=-parameter. So this can be fixed by adding a default solution_suffix-method for the GurobiSolver.