Skip to content

Commit a0d7749

Browse files
authored
Update branin.R
1 parent 0c2dbf7 commit a0d7749

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/cases.UniformSampling/branin.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# [print.f] : method to print/plot the function for information
77

88
f <- function(x) {
9-
x1 <- x[,1]*15-5
10-
x2 <- x[,2]*15
11-
matrix((x2 - 5/(4*pi^2)*(x1^2) + 5/pi*x1 - 6)^2 + 10*(1 - 1/(8*pi))*cos(x1) + 10,ncol=1)
9+
x1 <- x[1]*15-5
10+
x2 <- x[2]*15
11+
(x2 - 5/(4*pi^2)*(x1^2) + 5/pi*x1 - 6)^2 + 10*(1 - 1/(8*pi))*cos(x1) + 10
1212
}
1313
input.f = list(
1414
x1=list(min=0,max=1),

0 commit comments

Comments
 (0)