From 6889587defd0fbf3af77fee59f967585b8006f11 Mon Sep 17 00:00:00 2001 From: tmigot Date: Sat, 19 Jun 2021 07:19:52 +0200 Subject: [PATCH] bump to nlpmodels 015 and co --- Project.toml | 4 ++-- test/runtests.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 30b1b0d..bc00be2 100644 --- a/Project.toml +++ b/Project.toml @@ -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] diff --git a/test/runtests.jl b/test/runtests.jl index f7361ff..53348cf 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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)