Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
updating tests to julia v0.5 and JuMP v0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoffrin committed Mar 31, 2017
1 parent 9f65a13 commit 341266c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
julia 0.4
julia 0.5
Clp
Cbc
Ipopt
Expand Down
2 changes: 1 addition & 1 deletion test/REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
JuMP 0.13
JuMP 0.15
OffsetArrays 0.2.13
FactCheck
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ nvar = 10
solver=OsilSolver(solver = "couenne")
m = Model(solver=solver)
@variable(m, -10 <= x[i=1:nvar] <= 10)
@NLobjective(m, Min, sum{1/(1+exp(-x[i])), i=1:nvar})
@constraint(m, sum{x[i], i=1:nvar} <= .4*nvar)
@NLobjective(m, Min, sum(1/(1+exp(-x[i])) for i in 1:nvar))
@constraint(m, sum(x[i] for i in 1:nvar) <= .4*nvar)
@test solve(m) == :Optimal
@test isapprox(getvalue(x[1]),-10.0)
@test isapprox(getvalue(x[1]), -10.0)


include(Pkg.dir("JuMP","test","runtests.jl"))

0 comments on commit 341266c

Please sign in to comment.