Skip to content

Commit 84f4991

Browse files
committed
fixing remaining mentions of xi variable
1 parent 2968284 commit 84f4991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ADNLPProblems/toint.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function toint(; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) wher
1010
aij = 5 * (1 + mod(i, 5) + mod(j, 5))
1111
bij = (i + j) / 10
1212
cj = (1 + j) / 10
13-
s += aij * sin(bij + ci * xi + cj * x[j])
13+
s += aij * sin(bij + ci * x[i] + cj * x[j])
1414
end
1515

1616
if iseven(n)
@@ -19,7 +19,7 @@ function toint(; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) wher
1919
aij = 5 * (1 + mod(i, 5) + mod(j, 5))
2020
bij = (i + j) / 10
2121
cj = (1 + j) / 10
22-
s += aij * sin(bij + ci * xi + cj * x[j])
22+
s += aij * sin(bij + ci * x[i] + cj * x[j])
2323
end
2424
end
2525
end

0 commit comments

Comments
 (0)