Skip to content

Commit e5c9882

Browse files
arnavk23tmigot
andauthored
Update src/ADNLPProblems/toint.jl
Co-authored-by: Tangi Migot <tangi.migot@gmail.com>
1 parent 5e003e5 commit e5c9882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ADNLPProblems/toint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function toint(; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) wher
99
for j = max(1, i - 2):min(n, i + 2)
1010
aij = 5 * (1 + mod(i, 5) + mod(j, 5))
1111
bij = (i + j) // 10
12-
cj = (1 + 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)