]> Creatis software - CreaPhase.git/blob - octave_packages/ga-0.10.0/__gaoptimset_default_options__.m
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / ga-0.10.0 / __gaoptimset_default_options__.m
1 ## Copyright (C) 2008, 2009, 2010 Luca Favatella <slackydeb@gmail.com>
2 ##
3 ## This program is free software; you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation; either version 2 of the License, or
6 ## (at your option) any later version.
7 ##
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 ## GNU General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program; If not, see <http://www.gnu.org/licenses/>.
15
16 ## Author: Luca Favatella <slackydeb@gmail.com>
17 ## Version: 1.2.3
18
19 function default_options = __gaoptimset_default_options__ ()
20   default_options.CreationFcn = @gacreationuniform;
21   default_options.CrossoverFcn = @crossoverscattered;
22   default_options.CrossoverFraction = 0.8;
23                                 #default_options.Display = "final";
24                                 #default_options.DistanceMeasureFcn gamultiobj
25   default_options.EliteCount = 2;
26   default_options.FitnessLimit = -Inf;
27   default_options.FitnessScalingFcn = @fitscalingrank;
28   default_options.Generations = 100;
29                                 #default_options.HybridFcn = [];
30                                 #default_options.InitialPenalty = 10;
31   default_options.InitialPopulation = [];
32   default_options.InitialScores = [];
33                                 #default_options.MigrationDirection = "forward";
34                                 #default_options.MigrationFraction = 0.2;
35                                 #default_options.MigrationInterval = 20;
36   default_options.MutationFcn = {@mutationgaussian, 1, 1};
37                                 #default_options.OutputFcns = [];
38                                 #default_options.ParetoFraction = 0.35;
39                                 #default_options.PenaltyFactor = 100;
40                                 #default_options.PlotFcns = [];
41                                 #default_options.PlotInterval = 1;
42   default_options.PopInitRange = [0; 1];
43   default_options.PopulationSize = 20;
44                                 #default_options.PopulationType = "doubleVector";
45   default_options.SelectionFcn = @selectionstochunif;
46                                 #default_options.StallGenLimit = 50;
47                                 #default_options.StallTimeLimit = Inf;
48   default_options.TimeLimit = Inf;
49                                 #default_options.TolCon = 1e-6;
50                                 #default_options.TolFun = 1e-6;
51   default_options.UseParallel = "never";
52   default_options.Vectorized = "off";
53 endfunction