Skip to content

Commit

Permalink
cf -> cf1, cf2
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jul 19, 2017
1 parent 287c91f commit 685f95c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/contlinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ function contlineartest(solver::MOI.AbstractSolver, ε=Base.rtoldefault(Float64)
cf1 = MOI.ScalarAffineFunction([x, y], [2.0,1.0], 0.0)
cf2 = MOI.ScalarAffineFunction([x, y], [1.0,2.0], 0.0)

c1 = MOI.addconstraint!(m, cf, MOI.LessThan(4.0))
c2 = MOI.addconstraint!(m, cf, MOI.LessThan(4.0))
c1 = MOI.addconstraint!(m, cf1, MOI.LessThan(4.0))
c2 = MOI.addconstraint!(m, cf2, MOI.LessThan(4.0))

@test MOI.getattribute(m, MOI.NumberOfConstraints{MOI.ScalarAffineFunction{Float64},MOI.LessThan{Float64}}()) == 2

Expand Down

0 comments on commit 685f95c

Please sign in to comment.