Documentation of demodebconstr
Global Index (all files) (short | long)
| Local contents
| Local Index (files in subdir) (short | long)
Help text
DEMO for testing DEB's MO function
This function provides an example for using the GEATbx for
multiobjective optimization.
Syntax: demodebconstr
Input parameter:
no input parameter
Output parameter:
no output parameter
See also: geaoptset, geamain2, mobj*
Cross-Reference Information
Listing of script demodebconstr
% Author: Hartmut Pohlheim
% History: 10.04.2005 file created
% Get default parameters for real variables (globally oriented)
GeaOpt = tbx3real; % mutation, recombination, variable format
% Define special parameters
GeaOpt = geaoptset( GeaOpt ...
, 'NumberSubpopulation', 5 ... % Number of subpopulation
, 'NumberIndividuals', [50, 30, 30, 40, 50] ... % Number of individuals per subpopulation
);
% Define special parameters
% GeaOpt = geaoptset( GeaOpt ...
% , 'NumberSubpopulation', 1 ... % Number of subpopulation
% , 'NumberIndividuals', [200] ... % Number of individuals per subpopulation
% , 'Mutation.Range', [1e-2] ... % mutation range
% , 'Mutation.Precision', [24] ... % mutation precision
% );
% Define objective function to use and the respective parameters
%#function mobjfonseca1 mobjfonseca2
% name of objfun, number of variables, number of objectives, goals
ObjFun = 'mobjdebconstr';
ObjGoals = [Inf, Inf, 0, 0];
% Get variable boundaries from objective function
VLUB = geaobjpara(ObjFun, 1);
% Switch on the multi-objective ranking and the plotmop visualization (para is > 10)
GeaOpt = geaoptset( GeaOpt , 'Selection.RankingMultiobj', 15 ...
, 'System.ObjFunGoals', ObjGoals ...
);
% Define the output options, path and name of result data files
GeaOpt = geaoptset( GeaOpt, tbx3output ...
, 'Output.TextInterval', 5 ... % Text output every xx generations
, 'Output.GrafikInterval', 10 ... % 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', 300 ... % 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).