New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Variable bridges to use runtests without unbridged_variable #2498
base: master
Are you sure you want to change the base?
Conversation
_test_structural_identical( | ||
test, | ||
model; | ||
allow_constraint_function_error = allow_outer_constraint_function_error, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allow_constraint_function_error = allow_outer_constraint_function_error, | |
allow_constraint_function_error, |
This should be sufficient instead of the long line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note the outer_
. I only want to allow it when comparing test
with model
, not with inner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm open to better names ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I, in fact, did not notice the _outer_
😆
Did you try |
I did not try, I was just hoping it could serve as a test |
The issue is that a bunch of other places may call |
Some variable bridges don't support
unbridged_variable
and that makesruntests
fail when gettingConstraintFunction
or when gettingConstraintSet
for scalar constraints. For example,ZerosBridge
does not support it so it cannot useruntests
.Another example is the SOS cone: jump-dev/SumOfSquares.jl#353 I could support it in the nonweighted version but if it's weighted by arbitrary polynomials, it seems difficult to unbridge. It might be possible but it's not high priority. By using only vector cones in the tests, it turns out that only this small change is enough to pass the tests. This is still testing the inner model completely.
ZerosBridge
by adding a tests without scalar sets