Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.1/sources/HeuristicLab.SimOpt/PermutationParameterPartiallyMatchedCrossover.cs @ 583

Last change on this file since 583 was 583, checked in by abeham, 16 years ago

Adding communication framework to branch 3.1 (ticket #278)

File size: 679 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Core;
6using HeuristicLab.Data;
7
8namespace HeuristicLab.SimOpt {
9  class PermutationParameterPartiallyMatchedCrossover : SimOptCrossoverBase {
10    public override string Description {
11      get { return @"Applies a PMX on a permutation parameter"; }
12    }
13
14    public PermutationParameterPartiallyMatchedCrossover()
15      : base() {
16    }
17
18    protected override object Cross(IRandom random, object parent1, object parent2, IScope scope) {
19      return Permutation.PartiallyMatchedCrossover.Apply(random, (int[])parent1, (int[])parent2);
20    }
21  }
22}
Note: See TracBrowser for help on using the repository browser.