Skip to content

Add test_delete_bridge function #324

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

Merged
merged 1 commit into from
Apr 20, 2018
Merged

Add test_delete_bridge function #324

merged 1 commit into from
Apr 20, 2018

Conversation

blegat
Copy link
Member

@blegat blegat commented Apr 20, 2018

No description provided.

@blegat blegat force-pushed the bl/testdelbridge branch from 3c56e46 to 7c2fb77 Compare April 20, 2018 12:20
@codecov-io
Copy link

codecov-io commented Apr 20, 2018

Codecov Report

Merging #324 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #324   +/-   ##
=======================================
  Coverage   96.48%   96.48%           
=======================================
  Files          30       30           
  Lines        4525     4525           
=======================================
  Hits         4366     4366           
  Misses        159      159

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df5aaaa...7c2fb77. Read the comment docs.

@blegat blegat merged commit 2b9719b into master Apr 20, 2018
@blegat blegat deleted the bl/testdelbridge branch April 21, 2018 08:22
@test isempty(m.bridges)
test_noc(m, F, S, 0)
# As the bridge has been removed, if the constraints it has created where not removed, it wouldn't be there to decrease this counter anymore
@test MOI.get(m, MOI.NumberOfVariables()) == nvars
Copy link
Member

Choose a reason for hiding this comment

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

Do bridges change the value of MOI.NumberOfVariables() that's visible to users?

Copy link
Member Author

Choose a reason for hiding this comment

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

If it adds variables as part of the reformulation, it needs to hide it from the user

Copy link
Member

Choose a reason for hiding this comment

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

Good, just double checking!

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.

3 participants