We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2dbf7 commit a0d7749Copy full SHA for a0d7749
src/test/cases.UniformSampling/branin.R
@@ -6,9 +6,9 @@
6
# [print.f] : method to print/plot the function for information
7
8
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)
+ x1 <- x[1]*15-5
+ x2 <- x[2]*15
+ (x2 - 5/(4*pi^2)*(x1^2) + 5/pi*x1 - 6)^2 + 10*(1 - 1/(8*pi))*cos(x1) + 10
12
}
13
input.f = list(
14
x1=list(min=0,max=1),
0 commit comments