Documentation of lectcmd1
Global Index (all files) (short | long)
| Local contents
| Local Index (files in subdir) (short | long)
Function Synopsis
[Result, Data] = lectcmd(Cmd, varargin);
Help text
CoMmanDs for LECTure for live introduction of EA optimization
Collection opf ready made commands for the lecture on EA optimization
(mostly held at the Technical University of Ilmenau).
Each of the commands serves a special purpose during the lecture.
Explanations are given in the source code below.
Syntax: Result = lectcmd1(Cmd, varargin)
Input parameters:
Cmd - String containg the command
Output parameters:
mostly text nicely formatted or a graphic on the screen
Examples:
% Mesh plot of objlive1 function with 2 dimensions
>> lectcmd1('meshlive1')
% Mesh plot of objlive1 function with 1 dimensions
>> lectcmd1('meshlive1d')
% Table of objlive1 function with 1 and 2 dimensions
>> lectcmd1('tablelive1d')
% Optimization of objlive1 directly using demogeatbx with 2 or 10 variables
>> demogatbx(13,1)
>> demogatbx(14,1)
% online simulation of objfun7 [-500 500] in 1, 2 or more
% dimensions with nicely formatted tabular output
% works identical with objlive1 and more to come
>> lectcmd1('simfun7',[5 -10; -40 80; -400 500; -500 -400])
>> lectcmd1('simlive1',[-20; 10; -4; 15; 17; 24; 32])
>> lectcmd1('simlive1',[-20 -10; 10 5; -4 10; 15 25; 17 -20; 12 24; 32 15])
% Visualize the recombination or mutation of real values
% produces a plot of a number of offspring produced from 2/1 parents
% number of offspring can be defined by the second parameter (default 150)
% supported recombination operators: recdis, recint, reclin, reclinex
>> lectcmd1('recdis', 2)
>> lectcmd1('recdis')
>> lectcmd1('recint')
>> lectcmd1('reclin', 124)
>> lectcmd1('reclinex')
% supported mutation operators: mutreal, mutint, mutrandreal, mutrandint
>> lectcmd1('mutreal')
>> lectcmd1('mutint', 12)
% Visualize distribution of ranking/selection
% first parameter (AddPara) can define selective pressure and ranking method
% supported selection functions: selrws, selsus, seltour, seltrunc
>> lectcmd1('selsus');
>> lectcmd1('selrws', [3,1]);
>> lectcmd1('seltour', 1.7);
>> lectcmd1('seltrunc', 1.3);
>> lectcmd1('seltrunc', [2.9, 1]);
See also: objlive1, objfun7, plotmesh, recdis, recint, reclin, reclinex, mutreal, mutint, mutrandreal, mutrandint
Cross-Reference Information
This document is part of
version 3.8 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-2006 Hartmut Pohlheim, All Rights Reserved,
(support@geatbx.com).