Support SC/SI variables#46
Conversation
|
Hi @lovasoa, should I also bump |
|
Yes, I think this warrants a version bump. Sorry for the delay. For the pr itself: do you think a separate knob to add zero to the solution domain would be clearer ? Something like struct SolutionDomain {
/// Allow only integers
is_integral: boolean,
/// Allow the variable to take the value 0 even if it's not in its [lower, upper] bounds
allow_zero: boolean
} |
|
HiGHS v1.15.1 is current |
|
I think |
|
@lovasoa Just as a heads up, we are still using HIGHS v1.14. |
|
we are declaring a minimal supported version of highs-sys of highs-sys = "1.14.3"unless I'm mistaken, this is already compatible with v1.15.1. highs is just a library, its job is to declare the version range of its dependencies it's compatible with. It does not decide what precise version of highs-sys will be installed when the dependency resolution algorithm runs. Your job is to maintain the cargo.toml up to date so that it does not lie about which versions of highs-sys we support. |
|
Ah, understood. |
|
Build highs* I got confused with russcip |
This PR adds support for semicontinuous and semi-integer variables.
We add an Integrality enum (
Continuous,Integer,SemiContinuous,SemiInteger) and methods to create semicontinuous/semi-integer vars, which take value 0 or fall within their bounds.