Skip to content

Conversation

yashvardhan747
Copy link
Contributor

@yashvardhan747 yashvardhan747 commented Apr 8, 2020

Adding a get function to for MOI.ConstraintSet attribute for FlipSignBridge . Test is also added.

@yashvardhan747 yashvardhan747 changed the title Adding get function for MOI.ConstraintSet for NonposToNonnegBridge br… Adding get function for MOI.ConstraintSet for NonposToNonnegBridge Apr 8, 2020
@test MOI.get(bridged_mock, MOI.VariablePrimalStart(), y) == 1
end

@testset "Test Mock model" begin
Copy link
Member

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.


@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)
Copy link
Member

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

Copy link
Member

@blegat blegat left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks

@blegat blegat merged commit 5efa8c2 into jump-dev:master Apr 9, 2020
@blegat blegat added this to the v0.9.14 milestone May 30, 2020
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