Skip to content

Commit 8d5e090

Browse files
authored
Update toint.jl
1 parent fbfe1e2 commit 8d5e090

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
@@ -8,8 +8,8 @@ function toint(; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) wher
88

99
for j = max(1, i - 2):min(n, i + 2)
1010
aij = 5 * (1 + mod(i, 5) + mod(j, 5))
11-
bij = (i + j) / 10
12-
cj = (1 + j) / 10
11+
bij = (i + j) // 10
12+
cj = (1 + j) // 10
1313
s += aij * sin(bij + ci * x[i] + cj * x[j])
1414
end
1515
end

0 commit comments

Comments
 (0)