Skip to content

Commit 01495d5

Browse files
authored
Specify reset! SolverCore and NLPModels (#129)
* reset! * cache
1 parent 1d2c03d commit 01495d5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
version: ${{ matrix.version }}
3838
arch: ${{ matrix.arch }}
39-
- uses: actions/cache@v1
39+
- uses: actions/cache@v4
4040
env:
4141
cache-name: cache-artifacts
4242
with:

src/NLPModelsIpopt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function SolverCore.solve!(
166166
kwargs...,
167167
)
168168
problem = solver.problem
169-
reset!(stats)
169+
SolverCore.reset!(stats)
170170
kwargs = Dict(kwargs)
171171

172172
# see if user wants to warm start from an initial primal-dual guess

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using ADNLPModels, NLPModelsIpopt, NLPModels, Ipopt, SolverCore, Test
1313
@test stats.dual_feas 0.0 atol = 1.49e-8
1414

1515
nlp = ADNLPModel(x -> (x[1])^2 + 100 * (x[2] - x[1]^2)^2, [-1.2; 1.0])
16-
reset!(solver, nlp)
16+
SolverCore.reset!(solver, nlp)
1717
stats = solve!(solver, nlp, stats, print_level = 0)
1818
@test isapprox(stats.solution, [0.0; 0.0], atol = 1e-6)
1919
@test stats.status == :first_order

0 commit comments

Comments
 (0)