-
Notifications
You must be signed in to change notification settings - Fork 98
Closed
Description
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:
MathOptInterface.jl/src/Bridges/Constraint/bridges/RSOCtoSOCBridge.jl
Lines 46 to 51 in 3bbca2a
| 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:
MathOptInterface.jl/src/Bridges/Variable/bridges/RSOCtoSOCBridge.jl
Lines 38 to 43 in 3bbca2a
| 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
Labels
No labels