HiGHS icon indicating copy to clipboard operation
HiGHS copied to clipboard

Suggestion: enum for some integer options

Open andrea-cassioli-maersk opened this issue 1 year ago • 2 comments

Hi Team, I have a suggestion: will you consider providing enums for some of the integer options?

For instance setting the simplex_strategy option could be more readable if I can use an enum instead of say 4.

andrea-cassioli-maersk avatar Sep 04 '24 13:09 andrea-cassioli-maersk

Clearly we could make them enums - although enum classes would have downsides - but I'm wary of encouraging people to experiment. Serial dual simplex is much the most robust, and its performance is typically at least as good as parallel simplex these days (and generally rather better than primal simplex).

Maybe I'll add them when I get around to making the primal simplex solver more robust and efficient. I've got a use case that may mean I work in this in the winter of 2024-25.

jajhall avatar Sep 04 '24 13:09 jajhall

Thanks @jajhall

My suggestion is more on a general note rather than specific for the simplex_strategy, that was just an example.

But it is good to hear there might be some focus on the primal simplex anyway! We currently use it in a classic column generation and seems to be the best option in our case.

andrea-cassioli-maersk avatar Sep 21 '24 16:09 andrea-cassioli-maersk