x-ref https://github.com/jump-dev/MathOptInterface.jl/pull/2865#issuecomment-3379178174 Check this out: ```Julia julia> import Ipopt; import MathOptInterface as MOI julia> model = MOI.instantiate(Ipopt.Optimizer; with_bridge_type=Float64) MOIB.LazyBridgeOptimizer{IpoptMOIExt.Optimizer} ├ Variable bridges: none ├ Constraint bridges: none ├ Objective bridges: none └ model: IpoptMOIExt.Optimizer ├ ObjectiveSense: FEASIBILITY_SENSE ├ ObjectiveFunctionType: MOI.ScalarAffineFunction{Float64} ├ NumberOfVariables: 0 └ NumberOfConstraints: 0 julia> MOI.supports_constraint( model, MOI.VectorOfVariables, MOI.Indicator{MOI.ACTIVATE_ON_ONE,MOI.EqualTo{Float64}}, ) true ``` This is wrong, because it assumes that the variable will be binary, which is not part of the constraint.
Activity
odow commentedon Oct 8, 2025
Maybe the
IndicatorToMILPBridgeshould return true iff the model supportsZeroOne.