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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Core;
|
---|
6 | using HeuristicLab.Data;
|
---|
7 |
|
---|
8 | namespace 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.