Code covered by the BSD License
-
ackley(x)
Ackley function.
-
autodiff(x,func,varargin)
AUTODIFF is a function that can be used to wrap some
-
autodiff_sparse(x,func,vararg...
AUTOdiff_SPARSE is a function that can be used to wrap some
-
colville(x)
% Colville function
-
easom(x)
-
hart3(x)
% Hartmann function
-
interp1(x,y,xi,method)
interp1(x,y,xi) does interpolation for autodiff objects
-
mich(x)
% Michalewicz function
-
powell(x)
% Powell function
-
powerfunc(x)
-
rosen(x)
% Rosenbrock function
-
schw(x)
% Schwefel function
-
y=bh1(x)
% Bohachecsky function 1
-
adiff(a,b,c)
adiff(x) creates an autodiff object from a column vector x.
-
testsuite.m
-
View all files
from
Automatic Differentiation with Matlab Objects
by William McIlhagga
Automatically compute derivatives of functions, without using finite-difference approximations.
|
| mich(x)
|
function y = mich(x)
%
% Michalewicz function
% Matlab Code by A. Hedar (Nov. 23, 2005).
% The number of variables n should be adjusted below.
% The default value of n =2.
%
m = 10;
s = 0;
n = length(x);
for i = 1:n;
s = s+sin(x(i))*(sin(i*x(i)^2/pi))^(2*m);
end
y = -s;
|
|
Contact us