rust-or / highs

Safe rust bindings to the Highs MILP Solver.
https://crates.io/crates/highs
MIT License
20 stars 12 forks source link

Add iteration count method for SolverModel #18

Closed nunzioono closed 1 month ago

nunzioono commented 5 months ago

As mentioned in this discussion, there was not a direct method to get the iteration count of the model. I made a very simple method to get it, as it happens also for the status of the model implemented in the same struct SolverModel i think it would be nice to have a function to have the iteration count without dealing with the unsafe code either cause there already an interface written to deal with the c bindings.

nunzioono commented 5 months ago

@lovasoa hope this solves my problem and also helps future users of highs