Skip to content

[Bridges] map_set is the wrong way round #2667

Closed
@odow

Description

@odow

I have been trying to write better tests for Variable.SetMapBridge in #2664, and I got hopelessly confused. But, I think I found the culprit:

In Constraint.SetMapBridge, map_set is the forward user-space -> bridged-space:

function MOI.Bridges.map_set(
::Type{<:RSOCtoSOCBridge},
set::MOI.RotatedSecondOrderCone,
)
return MOI.SecondOrderCone(MOI.dimension(set))
end

In Variable.SetMapbridge, map_set is the backward bridged-space -> user-space:

function MOI.Bridges.map_set(
::Type{<:RSOCtoSOCBridge},
set::MOI.SecondOrderCone,
)
return MOI.RotatedSecondOrderCone(MOI.dimension(set))
end

@blegat is this intentional? Can I fix this? Or are there other packages using this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions