X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=octave_packages%2Fga-0.10.0%2F__gaoptimset_default_options__.m;fp=octave_packages%2Fga-0.10.0%2F__gaoptimset_default_options__.m;h=441e1d647000419502936b81d345546acfd84386;hb=f5f7a74bd8a4900f0b797da6783be80e11a68d86;hp=0000000000000000000000000000000000000000;hpb=1705066eceaaea976f010f669ce8e972f3734b05;p=CreaPhase.git diff --git a/octave_packages/ga-0.10.0/__gaoptimset_default_options__.m b/octave_packages/ga-0.10.0/__gaoptimset_default_options__.m new file mode 100644 index 0000000..441e1d6 --- /dev/null +++ b/octave_packages/ga-0.10.0/__gaoptimset_default_options__.m @@ -0,0 +1,53 @@ +## Copyright (C) 2008, 2009, 2010 Luca Favatella +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; If not, see . + +## Author: Luca Favatella +## Version: 1.2.3 + +function default_options = __gaoptimset_default_options__ () + default_options.CreationFcn = @gacreationuniform; + default_options.CrossoverFcn = @crossoverscattered; + default_options.CrossoverFraction = 0.8; + #default_options.Display = "final"; + #default_options.DistanceMeasureFcn gamultiobj + default_options.EliteCount = 2; + default_options.FitnessLimit = -Inf; + default_options.FitnessScalingFcn = @fitscalingrank; + default_options.Generations = 100; + #default_options.HybridFcn = []; + #default_options.InitialPenalty = 10; + default_options.InitialPopulation = []; + default_options.InitialScores = []; + #default_options.MigrationDirection = "forward"; + #default_options.MigrationFraction = 0.2; + #default_options.MigrationInterval = 20; + default_options.MutationFcn = {@mutationgaussian, 1, 1}; + #default_options.OutputFcns = []; + #default_options.ParetoFraction = 0.35; + #default_options.PenaltyFactor = 100; + #default_options.PlotFcns = []; + #default_options.PlotInterval = 1; + default_options.PopInitRange = [0; 1]; + default_options.PopulationSize = 20; + #default_options.PopulationType = "doubleVector"; + default_options.SelectionFcn = @selectionstochunif; + #default_options.StallGenLimit = 50; + #default_options.StallTimeLimit = Inf; + default_options.TimeLimit = Inf; + #default_options.TolCon = 1e-6; + #default_options.TolFun = 1e-6; + default_options.UseParallel = "never"; + default_options.Vectorized = "off"; +endfunction \ No newline at end of file