Oscar Dowson

Results 1419 comments of Oscar Dowson

Seems similar to https://github.com/jump-dev/MathOptInterface.jl/issues/2384 https://github.com/jump-dev/MathOptInterface.jl/pull/2396

Here's a pure MOI ```Julia julia> import MathOptInterface as MOI julia> src = MOI.Utilities.UniversalFallback(MOI.Utilities.Model{Float64}()) MOIU.UniversalFallback{MOIU.Model{Float64}} fallback for MOIU.Model{Float64} julia> x = MOI.add_variable(src) MOI.VariableIndex(1) julia> MOI.add_constraint(src, x, MOI.GreaterThan(1.0)) MathOptInterface.ConstraintIndex{MathOptInterface.VariableIndex, MathOptInterface.GreaterThan{Float64}}(1) julia>...

I think the issue is the interaction of the variable and constraint bridges, but it gets pretty complicated following the `call_in_context`.

A hacky work-around for now is `remove_bridge`: ```julia julia> using JuMP, Clarabel julia> model = Model(Clarabel.Optimizer) A JuMP Model Feasibility problem with: Variables: 0 Model mode: AUTOMATIC CachingOptimizer state: EMPTY_OPTIMIZER...

I need to discuss this with @blegat, but he's a bit busy this week.

@blegat I think this one is for you. I really don't understand the ins and outs of `call_in_context`. I poke one bit and some unrelated stuff starts erroring.

I swear I tested this: ```Julia julia> using JuMP, Clarabel julia> model = Model(Clarabel.Optimizer) A JuMP Model Feasibility problem with: Variables: 0 Model mode: AUTOMATIC CachingOptimizer state: EMPTY_OPTIMIZER Solver name:...

I think all that is missing is to populate `.coldual` following https://github.com/jump-dev/HiGHS.jl/blob/c736c0260d9bf74dcb544e4e76ebf05a00ac0593/src/MOI_wrapper.jl#L1906-L1953

I have no plans to add these features to MOI.