Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/18/08 00:40:57 (17 years ago)
Author:
swagner
Message:

Worked on ticket #15

  • adapted interfaces of static Apply methods
  • added missing variable info Maximization in HeuristicCrossover
  • simplified code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.RealVector/DiscreteCrossover.cs

    r70 r73  
    1515
    1616      for (int i = 0; i < length; i++) {
    17         if (random.NextDouble() < 0.5) {
     17        if (random.NextDouble() < 0.5)
    1818          result[i] = parent1[i];
    19         } else {
     19        else
    2020          result[i] = parent2[i];
    21         }
    2221      }
    23 
    2422      return result;
    2523    }
Note: See TracChangeset for help on using the changeset viewer.