Skip to content

Commit 95b43c0

Browse files
tmigotamontoison
authored andcommitted
Bump to ADNLPModels 0.8
1 parent a72e9d7 commit 95b43c0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

test/Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
99
QPSReader = "10f199a5-22af-520b-b891-7ce84a7b1bd0"
1010
SolverCore = "ff4d7338-4cf1-434d-91df-b86cb86fb843"
1111
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
12+
SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5"
1213
SparseMatricesCOO = "fa32481b-f100-4b48-8dc8-c62f61b13870"
1314
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1415

1516
[compat]
16-
ADNLPModels = "0.7"
17+
ADNLPModels = "0.8"
1718
LinearOperators = "2"
1819
NLPModels = "0.21"
1920
NLPModelsModifiers = "0.7"
2021
NLPModelsTest = "0.10"
2122
QPSReader = "0.2"
2223
SolverCore = "0.3"
24+
SparseConnectivityTracer = "0.6"
2325
SparseMatricesCOO = "0.2"

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ using ADNLPModels,
99
NLPModelsTest,
1010
QPSReader,
1111
QuadraticModels,
12+
SparseConnectivityTracer,
1213
SparseMatricesCOO
1314

1415
@testset "test utils" begin

test/test_consistency.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ for problem in NLPModelsTest.nlp_problems
5757
nlp = eval(Symbol(problem))()
5858
x = nlp.meta.x0
5959

60-
fx, gx, Hx = obj(nlp, x), grad(nlp, x), Symmetric(hess(nlp, x), :L)
60+
fx, gx, Hx = obj(nlp, x), grad(nlp, x), hess(nlp, x)
6161
nlp_ad = if nlp.meta.ncon > 0
6262
cx, Ax = cons(nlp, x), jac(nlp, x)
6363
ADNLPModel(
@@ -68,13 +68,15 @@ for problem in NLPModelsTest.nlp_problems
6868
Ax,
6969
nlp.meta.lcon - cx,
7070
nlp.meta.ucon - cx,
71+
detector = SparseConnectivityTracer.TracerLocalSparsityDetector(),
7172
)
7273
else
7374
ADNLPModel(
7475
s -> fx + dot(gx, s) + dot(s, Hx * s) / 2,
7576
zeros(nlp.meta.nvar),
7677
nlp.meta.lvar - x,
7778
nlp.meta.uvar - x,
79+
detector = SparseConnectivityTracer.TracerLocalSparsityDetector(),
7880
)
7981
end
8082
nlp_qm = QuadraticModel(nlp, x)

0 commit comments

Comments
 (0)