Diff of /inst/__ga_initial_population__.m [6f794c] .. [48d621]  Maximize  Restore

Switch to side-by-side view

--- a/inst/__ga_initial_population__.m
+++ b/inst/__ga_initial_population__.m
@@ -26,10 +26,10 @@
                                 #TODO consider PopulationSize as a
                                 #vector for multiple subpopolations
 
-function Population = \
+function Population = ...
       __ga_initial_population__ (GenomeLength, FitnessFcn, options)
   if (isempty (options.InitialPopulation))
-    Population(1:options.PopulationSize, 1:GenomeLength) = \
+    Population(1:options.PopulationSize, 1:GenomeLength) = ...
         options.CreationFcn (GenomeLength, FitnessFcn, options);
   else
     if (columns (options.InitialPopulation) != GenomeLength) ## columns (InitialPopulation) > 0
@@ -40,15 +40,15 @@
         error ("nonempty 'InitialPopulation' must have no more than \
             'PopulationSize' rows");
       elseif (nrIP == options.PopulationSize)
-        Population(1:options.PopulationSize, 1:GenomeLength) = \
+        Population(1:options.PopulationSize, 1:GenomeLength) = ...
             options.InitialPopulation;
       else # rows (InitialPopulation) < PopulationSize
 
         ## create a complete new population, and then select only needed
         ## individuals (creating only a partial population is difficult)
-        CreatedPopulation(1:options.PopulationSize, 1:GenomeLength) = \
+        CreatedPopulation(1:options.PopulationSize, 1:GenomeLength) = ...
             options.CreationFcn (GenomeLength, FitnessFcn, options);
-        Population(1:options.PopulationSize, 1:GenomeLength) = vertcat \
+        Population(1:options.PopulationSize, 1:GenomeLength) = vertcat ...
             (options.InitialPopulation(1:nrIP, 1:GenomeLength),
              CreatedPopulation(1:(options.PopulationSize - nrIP),
                                1:GenomeLength));

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks