Skip to content

XXXDetTriangle bridge does not support ConstraintFunction #1605

@odow

Description

@odow

Found during jump-dev/SCS.jl#219

optimizer = SCS.Optimizer()
MOI.set(optimizer, MOI.Silent(), true)
model = MOI.Bridges.full_bridge_optimizer(
    MOI.Utilities.CachingOptimizer(
        MOI.Utilities.UniversalFallback(MOI.Utilities.Model{Float64}()),
        optimizer,
    ),
    Float64,
)

julia> MOI.Test.test_basic_VectorAffineFunction_LogDetConeTriangle(model, config)
Error During Test at /Users/oscar/.julia/dev/MathOptInterface/src/Test/test_basic_constraint.jl:168
  Test threw exception
  Expression: MOI.get(model, MOI.ConstraintFunction(), c)  constraint_function
  ArgumentError: Bridge of type `MathOptInterface.Bridges.Constraint.LogDetBridge{Float64}` does not support accessing the attribute `MathOptInterface.ConstraintFunction()`. If you encountered this error unexpectedly, it probably means your model has been reformulated using the bridge, and you are attempting to query an attribute that we haven't implemented yet for this bridge. Please open an issue at https://github.com/jump-dev/MathOptInterface.jl/issues/new and provide a reproducible example explaining what you were trying to do.
  Stacktrace:

julia> MOI.Test.test_basic_VectorAffineFunction_RootDetConeTriangle(model, config)
Error During Test at /Users/oscar/.julia/dev/MathOptInterface/src/Test/test_basic_constraint.jl:168
  Test threw exception
  Expression: MOI.get(model, MOI.ConstraintFunction(), c)  constraint_function
  ArgumentError: Bridge of type `MathOptInterface.Bridges.Constraint.RootDetBridge{Float64}` does not support accessing the attribute `MathOptInterface.ConstraintFunction()`. If you encountered this error unexpectedly, it probably means your model has been reformulated using the bridge, and you are attempting to query an attribute that we haven't implemented yet for this bridge. Please open an issue at https://github.com/jump-dev/MathOptInterface.jl/issues/new and provide a reproducible example explaining what you were trying to do.
  Stacktrace:

julia> MOI.Test.test_basic_VectorOfVariables_LogDetConeTriangle(model, config)
Error During Test at /Users/oscar/.julia/dev/MathOptInterface/src/Test/test_basic_constraint.jl:168
  Test threw exception
  Expression: MOI.get(model, MOI.ConstraintFunction(), c)  constraint_function
  ArgumentError: Bridge of type `MathOptInterface.Bridges.Constraint.LogDetBridge{Float64}` does not support accessing the attribute `MathOptInterface.ConstraintFunction()`. If you encountered this error unexpectedly, it probably means your model has been reformulated using the bridge, and you are attempting to query an attribute that we haven't implemented yet for this bridge. Please open an issue at https://github.com/jump-dev/MathOptInterface.jl/issues/new and provide a reproducible example explaining what you were trying to do.
  Stacktrace:

julia> MOI.Test.test_basic_VectorOfVariables_RootDetConeTriangle(model, config)
Error During Test at /Users/oscar/.julia/dev/MathOptInterface/src/Test/test_basic_constraint.jl:168
  Test threw exception
  Expression: MOI.get(model, MOI.ConstraintFunction(), c)  constraint_function
  ArgumentError: Bridge of type `MathOptInterface.Bridges.Constraint.RootDetBridge{Float64}` does not support accessing the attribute `MathOptInterface.ConstraintFunction()`. If you encountered this error unexpectedly, it probably means your model has been reformulated using the bridge, and you are attempting to query an attribute that we haven't implemented yet for this bridge. Please open an issue at https://github.com/jump-dev/MathOptInterface.jl/issues/new and provide a reproducible example explaining what you were trying to do.
  Stacktrace:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions