Skip to content

Commit

Permalink
🤖 Format .jl files
Browse files Browse the repository at this point in the history
  • Loading branch information
dpo committed Jan 17, 2025
1 parent 356eef3 commit 11e2a62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/demo-cutest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ callback =
stats = AL(nlp, h, atol = 1e-6, verbose = 1, callback = callback)
print(stats)

finalize(nlp)
finalize(nlp)
2 changes: 1 addition & 1 deletion src/AL_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,4 @@ project_y!(nlp::AugLagModel) = project_y!(nlp::AugLagModel, -1e20, 1e20)
function project_y!(nlp::AugLagModel, ymin::V, ymax::V) where {V}
nlp.y .= max.(ymin, min.(nlp.y, ymax))
nlp.μc_y .= nlp.μ .* nlp.cx .- nlp.y
end
end
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ More specifically, construct a GenericExecutionStats on the NLPModel of reg_nlp
This is useful for reducing the number of allocations when calling solve!(..., reg_nlp, stats) and should be used by default.
Warning: This should *not* be used when adding other solver_specific entries that do not have the current scalar type.
"""
function RegularizedExecutionStats(reg_nlp :: AbstractRegularizedNLPModel{T, V}) where{T, V}
function RegularizedExecutionStats(reg_nlp::AbstractRegularizedNLPModel{T, V}) where {T, V}
stats = GenericExecutionStats(reg_nlp.model, solver_specific = Dict{Symbol, T}())
set_solver_specific!(stats, :smooth_obj, T(Inf))
set_solver_specific!(stats, :nonsmooth_obj, T(Inf))
return stats
end
end

0 comments on commit 11e2a62

Please sign in to comment.