Skip to content

Commit 1270f6e

Browse files
🤖 Format .jl files (#136)
Co-authored-by: tmigot <tmigot@users.noreply.github.com>
1 parent e5447d7 commit 1270f6e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/NLPModelsIpopt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ end
110110

111111
function SolverCore.reset!(solver::IpoptSolver)
112112
problem = solver.problem
113-
113+
114114
problem.obj_val = Inf
115115
problem.status = -1 # Use -1 to indicate not solved yet
116116
problem.intermediate = nothing
117-
117+
118118
return solver
119119
end
120120

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,16 @@ end
123123
nlp = ADNLPModel(f, [-1.2; 1.0])
124124
stats = GenericExecutionStats(nlp)
125125
solver = IpoptSolver(nlp)
126-
126+
127127
# Solve the problem first
128128
stats = solve!(solver, nlp, stats, print_level = 0)
129129
@test stats.status == :first_order
130130
@test isapprox(stats.solution, [1.0; 1.0], atol = 1e-6)
131-
131+
132132
# Change initial guess and reset solver
133133
nlp.meta.x0 .= 2.0
134134
reset!(solver)
135-
135+
136136
# Solve again with new initial guess
137137
stats = solve!(solver, nlp, stats, print_level = 0)
138138
@test stats.status == :first_order

0 commit comments

Comments
 (0)