-
Notifications
You must be signed in to change notification settings - Fork 94
Adding get function for MOI.ConstraintSet for NonposToNonnegBridge #1066
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
Adding get function for MOI.ConstraintSet for NonposToNonnegBridge #1066
Conversation
test/Bridges/Variable/flip_sign.jl
Outdated
@test MOI.get(bridged_mock, MOI.VariablePrimalStart(), y) == 1 | ||
end | ||
|
||
@testset "Test Mock model" begin |
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.
Put this testset inside the lin2v
testset.
test/Bridges/Variable/flip_sign.jl
Outdated
|
||
@testset "Test Bridged model" begin | ||
var_names = ["x", "y", "z", "w"] | ||
MOI.set(bridged_mock, MOI.VariableName(), MOI.get(bridged_mock, MOI.ListOfVariableIndices()), var_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.
Move this outside and before both testsets
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.
Looks good! Thanks
Adding a get function to for
MOI.ConstraintSet
attribute forFlipSignBridge
. Test is also added.