Documentation of democantilever
Global Index (all files) (short | long)
| Local contents
| Local Index (files in subdir) (short | long)
Function Synopsis
[xnew, GeaOpt] = democantilever
Help text
DEMO for multiobjective optimization of cantilever beam system
This function provides an example for using the GEATbx for
multiobjective optimization.
The options are defined by the structure method providing a
higher flexibility.
Syntax: democantilever(OptVariant, FunVariant)
Input parameter:
no input prameter
Output parameter:
xnew, GeaOpt - output parameter from geamain2, see there
See also: mobjcantilever, geaoptset, geamain2
Cross-Reference Information
Listing of function democantilever
% Author: Hartmut Pohlheim
% History: 19.08.2004 file created (based on demomop)
% 08.05.2005 documentation extended
function [xnew, GeaOpt] = democantilever
% Get default parameters for real variables (globally oriented)
% and define special parameters
GeaOpt = geaoptset( tbx3real ...
, 'NumberSubpopulation', 5 ... % Number of subpopulation
, 'NumberIndividuals', [50, 30, 30, 40, 50] ... % Number of individuals per subpopulation
);
% Define objective function to use and the respective parameters
%#function mobjcantilever
objfun = 'mobjcantilever';
% Get variable boundaries from objective function
VLUB = geaobjpara(objfun, [1 2]);
% Switch on the multi-objective ranking and the plotmop visualization (para is > 10)
% Define the goals of the objectives
GeaOpt = geaoptset( GeaOpt , 'Selection.RankingMultiobj', 15 ...
, 'System.ObjFunGoals', [Inf, 5, 300] ...
);
% Define the output options, path and name of result data files
GeaOpt = geaoptset( GeaOpt, tbx3output ...
, 'Output.TextInterval', 1 ... % Text output every xx generations
, 'Output.GrafikInterval', 5 ... % Grafic results every 10 generations
... % , 'Output.GrafikMethod', 111 ... % Grafic method to use
... % , 'Output.GrafikStyle', 614144 ... % Grafic styles for specified methods
);
% termination criteria with their options
GeaOpt = geaoptset( GeaOpt ...
, 'Termination.Method', [1 ] ... % Termination method: use max gen and max time
, 'Termination.MaxGenerations', 100 ... % Terminate after xx generations
);
% Call main function for optimization
PopInit = [];
[xnew, GeaOpt] = geamain2(objfun, GeaOpt, VLUB, PopInit);
% End of script
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).