Skip to content

Commit

Permalink
bump to nlpmodels 015 and co
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot authored and abelsiqueira committed Jun 19, 2021
1 parent a8cd614 commit 6889587
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ SolverCore = "ff4d7338-4cf1-434d-91df-b86cb86fb843"

[compat]
Ipopt = "0.5.0, 0.6"
NLPModels = "0.14"
SolverCore = "0.1"
NLPModels = "0.14, 0.15"
SolverCore = "0.1, 0.2"
julia = "^1.3.0"

[extras]
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function tests()
@test stats.status == :first_order

meta = NLPModelMeta(1, x0 = rand(1), lvar = zeros(1), uvar = ones(1), minimize = false)
nlp = ADNLPModel(meta, Counters(), ADNLPModels.ForwardDiffAD(), x -> x[1], x -> [])
nlp = ADNLPModel(meta, Counters(), ADNLPModels.ForwardDiffAD(1), x -> x[1], x -> [])
stats = ipopt(nlp, print_level = 0)
@test isapprox(stats.solution, ones(1), rtol = 1e-6)
@test isapprox(stats.objective, 1.0, rtol = 1e-6)
Expand Down

0 comments on commit 6889587

Please sign in to comment.