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

Basic tests to catch edge cases #379

Merged
merged 4 commits into from
Jun 6, 2018
Merged

Basic tests to catch edge cases #379

merged 4 commits into from
Jun 6, 2018

Conversation

odow
Copy link
Member

@odow odow commented Jun 5, 2018

  • Relating to ScalarQuadraticFunctions:
    (1) duplicate terms on the diagonal; and
    (2) duplicate terms on the off-diagonal, including duplicates of elements at locations (i,j) and (j,i).
  • Deleting mixtures of scalaraffine and vectoraffine functions.

  (1) duplicate terms on the diagonal; and
  (2) duplicate terms on the off-diagonal, including duplicates of
		elements at locations (i,j) and (j,i).
@odow odow mentioned this pull request Jun 5, 2018
12 tasks
@codecov-io
Copy link

codecov-io commented Jun 5, 2018

Codecov Report

Merging #379 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #379      +/-   ##
==========================================
+ Coverage   96.31%   96.35%   +0.03%     
==========================================
  Files          40       40              
  Lines        4836     4884      +48     
==========================================
+ Hits         4658     4706      +48     
  Misses        178      178
Impacted Files Coverage Δ
src/Test/UnitTests/objectives.jl 100% <100%> (ø) ⬆️
src/Test/UnitTests/constraints.jl 100% <100%> (ø) ⬆️

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 3e513af...b679227. Read the comment docs.

@odow odow changed the title Basic tests to catch edge cases relating to ScalarQuadraticFunctions Basic tests to catch edge cases Jun 6, 2018
MOI.set!(model, MOI.ObjectiveSense(), MOI.MaxSense)
MOI.set!(model,
MOI.ObjectiveFunction{MOI.ScalarAffineFunction{Float64}}(),
MOI.ScalarAffineFunction{Float64}(
Copy link
Member

Choose a reason for hiding this comment

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

You don't have to explicitely specify the type {Float64}. At least it is inconsistent with other tests

@odow odow merged commit 8a34c48 into master Jun 6, 2018
@odow odow deleted the odow/qp branch June 6, 2018 20:03
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.

4 participants