Skip to content

Commit 5f6164b

Browse files
solve unallocated memory issue
1 parent 7fbfc5c commit 5f6164b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TRDH_alg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function TRDHSolver(
5252
@assert !has_bnds
5353
l_bound = copy.l)
5454
u_bound = copy.u)
55-
@. l_bound_k = max(xk - one(T), l_bound)
56-
@. u_bound_k = min(xk + one(T), u_bound)
55+
@. l_bound_k = max(x0 - one(T), l_bound)
56+
@. u_bound_k = min(x0 + one(T), u_bound)
5757
has_bnds = true
5858
set_bounds!(ψ, l_bound_k, u_bound_k)
5959
else

0 commit comments

Comments
 (0)