Skip to content

Commit 71bca05

Browse files
committed
removing twice renditions
1 parent 84f4991 commit 71bca05

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/ADNLPProblems/toint.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ function toint(; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) wher
1212
cj = (1 + j) / 10
1313
s += aij * sin(bij + ci * x[i] + cj * x[j])
1414
end
15-
16-
if iseven(n)
17-
j = i + (n ÷ 2)
18-
if 1 <= j <= n
19-
aij = 5 * (1 + mod(i, 5) + mod(j, 5))
20-
bij = (i + j) / 10
21-
cj = (1 + j) / 10
22-
s += aij * sin(bij + ci * x[i] + cj * x[j])
23-
end
24-
end
2515
end
2616
return s / n
2717
end

src/ADNLPProblems/trig.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ function trig(; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) where
1111
bij = (i + j) / 10
1212
s += aij * sin(x[j]) + bij * cos(x[j])
1313
end
14-
15-
if iseven(n)
16-
j = i + (n ÷ 2)
17-
if 1 <= j <= n
18-
aij = 5 * (1 + mod(i, 5) + mod(j, 5))
19-
bij = (i + j) / 10
20-
s += aij * sin(x[j]) + bij * cos(x[j])
21-
end
22-
end
2314
end
2415
return s / n
2516
end

0 commit comments

Comments
 (0)