You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With good_lp API the only chance I can get an instance of highs::Model is to call good_lp::solvers::highs::HighsProblem::into_inner as solve does internally.
Then I can have several set_option calls and at the end solve method call. Even though I still cannot have HighsSolution instance as solution: highs::Solution field is private and HighsSolution does not have any explicit constructor like new method.
Good_lp offers the into_inner escape hatch if you need to work with a raw Highs instance. But if you use it, you are then on your own, and have to use highs directly to get your solution.
I don't think it would be a good thing for good_lp to let you do anything you want with the model, and then take it back as if nothing happened. The model you give back could have nothing to do with the one good_lp initially handed out to you !
However, if there are options that are safe to use within good_lp, please open a pull request to add support for them directly in good_lp !
I tried to set time limit option but I found there is no way to call
highs::Model::set_option
.With good_lp API the only chance I can get an instance of
highs::Model
is to callgood_lp::solvers::highs::HighsProblem::into_inner
assolve
does internally.good_lp/src/solvers/highs.rs
Line 65 in 65b4018
Then I can have several
set_option
calls and at the endsolve
method call. Even though I still cannot haveHighsSolution
instance assolution: highs::Solution
field is private andHighsSolution
does not have any explicit constructor likenew
method.good_lp/src/solvers/highs.rs
Line 126 in 65b4018
Can you give me any suggestion to simultaneously use good_lp API as well as set Highs options?
Thank you.
The text was updated successfully, but these errors were encountered: