Skip to content

Commit e2e817a

Browse files
fix memory bug in AL
1 parent 1648324 commit e2e817a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AL_alg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function ALSolver(reg_nlp::AbstractRegularizedNLPModel{T, V}; kwargs...) where {
155155
cx = V(undef, ncon)
156156
y = V(undef, ncon)
157157
has_bnds = has_bounds(nlp)
158-
sub_model = AugLagModel(nlp, V(undef, ncon), T(0), x, T(0), V(undef, ncon))
158+
sub_model = AugLagModel(nlp, V(undef, ncon), T(0), x, T(0), cx)
159159
sub_problem = RegularizedNLPModel(sub_model, reg_nlp.h, reg_nlp.selected)
160160
sub_solver = R2Solver(reg_nlp; kwargs...)
161161
sub_stats = RegularizedExecutionStats(sub_problem)

0 commit comments

Comments
 (0)