Documentation of objfun1b
Global Index (all files) (short | long)
| Local contents
| Local Index (files in subdir) (short | long)
Function Synopsis
ObjVal = objfun1b(Chrom, option);
Help text
OBJective function for rotated hyper-ellipsoid
This function implements the rotated hyper-ellipsoid.
Syntax: ObjVal = objfun1b(Chrom, option)
Input parameters:
Chrom - Matrix containing the chromosomes of the current
population. Each row corresponds to one individual's
string representation.
if Chrom == [], then special values will be returned
option - if Chrom == [] and
option == 1 (or []) return boundaries
option == 2 return title
option == 3 return value of global minimum
Output parameters:
ObjVal - Column vector containing the objective values of the
individuals in the current population.
if called with Chrom == [], then ObjVal contains
option == 1, matrix with the boundaries of the function
option == 2, text for the title of the graphic output
option == 3, value of global minimum
See also: objfun1, objfun1a, objfun2, objfun6, objfun7, objfun8, objfun9, objfun10
Cross-Reference Information
|
This function is called by |
|
|
Listing of function objfun1b
% Author: Hartmut Pohlheim
% History: 07.04.94 file created
% 17.02.95 direct Dim removed and function cleaned
function ObjVal = objfun1b(Chrom, option);
% Compute population parameters
[Nind, Nvar] = size(Chrom);
% Check size of Chrom and do the appropriate thing
% if Chrom is [], then define size of boundary-matrix and values
if Nind == 0
% Default dimension of objective function
Dim = 10;
% return text of title for graphic output
if option == 2
ObjVal = ['Rotated hyper-ellipsoid 1b'];
% return value of global minimum
elseif option == 3
ObjVal = 0;
% define size of boundary-matrix and values
else
% lower and upper bound, identical for all n variables
ObjVal = repmat([-65; 65], [1 Dim]);
end
% compute values of function
else
% function 1b, sum over i of ( sum of xj )^2 for i = 1:Nvar, j = 1:i (Nvar = 30)
% n = Nvar, -65 <= xj <= 65
% global minimum at (xi) = (0) ; fmin = 0
ObjVal = sum(cumsum(Chrom').^2)';
end
% End of function
This document is part of
version 3.7 of the
GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab -
www.geatbx.com.
The Genetic and Evolutionary Algorithm Toolbox is
not public domain.
© 1994-2005 Hartmut Pohlheim, All Rights Reserved,
(support@geatbx.com).