Skip to content
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 test for a feasibility problem #241

Merged
merged 2 commits into from
Feb 20, 2018

Conversation

tkoolen
Copy link
Contributor

@tkoolen tkoolen commented Feb 19, 2018

No description provided.

@codecov-io
Copy link

codecov-io commented Feb 19, 2018

Codecov Report

Merging #241 into master will decrease coverage by 0.21%.
The diff coverage is 40%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #241      +/-   ##
==========================================
- Coverage   59.17%   58.96%   -0.22%     
==========================================
  Files          23       23              
  Lines        3559     3599      +40     
==========================================
+ Hits         2106     2122      +16     
- Misses       1453     1477      +24
Impacted Files Coverage Δ
src/Test/contlinear.jl 54.34% <40%> (-0.74%) ⬇️

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 f411c1a...e40391e. Read the comment docs.

function linear13test(model::MOI.ModelLike, config::TestConfig)
atol = config.atol
rtol = config.rtol
# find x
Copy link
Member

Choose a reason for hiding this comment

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

"find x" -> "find x, y"


c1sol = 2 * xsol + 3 * ysol
@test c1sol >= 1 || isapprox(c1sol, 1.0, atol=atol, rtol=rtol)
@test xsol - ysol ≈ 0 atol=atol rtol=rtol
Copy link
Member

Choose a reason for hiding this comment

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

We should check ConstraintPrimal too

@tkoolen
Copy link
Contributor Author

tkoolen commented Feb 20, 2018

Thanks, I've addressed the comments.

@blegat
Copy link
Member

blegat commented Feb 20, 2018

Thanks !

@blegat blegat merged commit 572b5ae into jump-dev:master Feb 20, 2018
@tkoolen tkoolen deleted the tk/feasibility-problem branch February 20, 2018 16:46
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