Closed odow closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.42%. Comparing base (
af30cde
) to head (2e6afd9
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
It is better, it is consistent that way. But I am wondering why in
In addition, if the variables involved have finite domains, then JuMP can automatically reformulate an indicator into a mixed-integer program.
variables must have a finite domain and not just upper bounds in case of <=
and lower bounds in case of >=
.
I will try to have a look at the JuMP reformulation as I think that it is possible to have JuMP to automatically reformulate an indicator into a mixed-integer program whenever there is the right bound and not just with finite domains.
I will try to have a look at the JuMP reformulation as I think that it is possible to have JuMP to automatically reformulate an indicator into a mixed-integer program whenever there is the right bound and not just with finite domains.
Yes, that's possible. I just went with the simplest thing.
The relevant bridge is https://github.com/jump-dev/MathOptInterface.jl/blob/master/src/Bridges/Constraint/bridges/indicator_to_milp.jl
Follow-up to #3720
@remi-garcia how is this?