Skip to content

Simplify test_conic_linear with forced bridging#2595

Closed
blegat wants to merge 2 commits intomasterfrom
bl/test_conic_linear_forced
Closed

Simplify test_conic_linear with forced bridging#2595
blegat wants to merge 2 commits intomasterfrom
bl/test_conic_linear_forced

Conversation

@blegat
Copy link
Copy Markdown
Member

@blegat blegat commented Dec 17, 2024

A lot of these helpers could be simplified with SingleBridgeOptimizer. What we are doing is basically hardcoding a bridge so adding a SingleBridgeOptimizer would be equivalent since this bridge optimizer layer always applies the bridge, even if the constraint is supported (which is why I call it forced bridging).
This PR just does it for one test as a proof of concept.

Comment thread src/Test/test_conic.jl
_test_conic_linear_helper(model, config, false)
config::Config{T},
) where {T}
test_conic_linear_VectorOfVariables(MOI.Bridges.Constraint.VectorFunctionize{T}(model), config)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Because we can't nest SingleBridgeOptimizer and LazyBridgeOptimizer.

Copy link
Copy Markdown
Member

@odow odow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment about nesting SingleBridgeOptimizer and LazyBridgeOptimizer

@odow
Copy link
Copy Markdown
Member

odow commented Dec 20, 2024

@blegat blegat closed this Jan 2, 2025
@odow odow deleted the bl/test_conic_linear_forced branch January 5, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants