Skip to content

Commit

Permalink
Added Latex version of the Bukin N.6 and Booth functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhr committed Aug 26, 2016
1 parent 4271ac9 commit e8e73f5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_site
.sass-cache/
10 changes: 5 additions & 5 deletions benchmarks/bulkinfcn.m → benchmarks/bukinn6fcn.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Computes the value of the Bulkin benchmark function.
% SCORES = BULKINFCN(X) computes the value of the Bulkin's function at
% point X. BULKINFCN accepts a matrix of size M-by-2 and returns a
% Computes the value of the Bulkin N. 6 benchmark function.
% SCORES = BULKINN6FCN(X) computes the value of the Bulkin N. 6 function at
% point X. BULKINN6FCN accepts a matrix of size M-by-2 and returns a
% vetor SCORES of size M-by-1 in which each row contains the function value
% for the corresponding row of X.
% For more information please visit:
Expand All @@ -9,9 +9,9 @@
% Author: Mazhar Ansari Ardeh
% Please forward any comments or bug reports to mazhar.ansari.ardeh at
% Google's e-mail service or feel free to kindly modify the repository.
function scores = bulkinfcn(x)
function scores = bukinn6fcn(x)
n = size(x, 2);
assert(n == 2, 'Bulkin''s functions is only defined on a 2D space.')
assert(n == 2, 'The Bulkin N. 6 functions is only defined on a 2D space.')

X = x(:, 1);
X2 = X .^ 2;
Expand Down
1 change: 1 addition & 0 deletions benchmarks/latex/boothfcn.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f(x, y)=(x+2y-7)^2 + (2x+y-5)^2
1 change: 1 addition & 0 deletions benchmarks/latex/bukinn6fcn.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f(x,y)=100\sqrt{|y-0.01x^2|}+0.01|x+10|

0 comments on commit e8e73f5

Please sign in to comment.