コード例 #1
0
 public Permutation(PermutationTypes type, IntArray elements)
     : this(type, elements.Length)
 {
     for (int i = 0; i < array.Length; i++)
     {
         array[i] = elements[i];
     }
 }
コード例 #2
0
 public Permutation(PermutationTypes type, int length)
     : base(length)
 {
     for (int i = 0; i < length; i++)
     {
         this[i] = i;
     }
     permutationType = type;
 }
コード例 #3
0
        public PermutationEncoding(string name, int length, PermutationTypes type)
            : base(name)
        {
            lengthParameter          = new FixedValueParameter <IntValue>(Name + ".Length", new IntValue(length));
            permutationTypeParameter = new FixedValueParameter <PermutationType>(Name + ".Type", new PermutationType(type));
            Parameters.Add(lengthParameter);
            Parameters.Add(permutationTypeParameter);

            SolutionCreator = new RandomPermutationCreator();
            RegisterParameterEvents();
            DiscoverOperators();
        }
コード例 #4
0
ファイル: Permutation.cs プロジェクト: t-h-e/HeuristicLab
 public Permutation(PermutationTypes type, IntArray elements)
   : this(type, elements.Length) {
   for (int i = 0; i < array.Length; i++)
     array[i] = elements[i];
 }
コード例 #5
0
ファイル: Permutation.cs プロジェクト: t-h-e/HeuristicLab
 public Permutation(PermutationTypes type, int[] elements)
   : base(elements) {
   permutationType = type;
 }
コード例 #6
0
ファイル: Permutation.cs プロジェクト: t-h-e/HeuristicLab
 public Permutation(PermutationTypes type, int length, IRandom random)
   : this(type, length) {
   Randomize(random);
 }
コード例 #7
0
ファイル: Permutation.cs プロジェクト: t-h-e/HeuristicLab
 public Permutation(PermutationTypes type, int length)
   : base(length) {
   for (int i = 0; i < length; i++)
     this[i] = i;
   permutationType = type;
 }
コード例 #8
0
ファイル: Permutation.cs プロジェクト: t-h-e/HeuristicLab
 public Permutation(PermutationTypes type)
   : base() {
   permutationType = type;
 }
コード例 #9
0
ファイル: Permutation.cs プロジェクト: t-h-e/HeuristicLab
 protected Permutation(Permutation original, Cloner cloner)
   : base(original, cloner) {
   this.permutationType = original.permutationType;
 }
コード例 #10
0
 public Permutation(PermutationTypes type, int[] elements)
     : base(elements)
 {
     permutationType = type;
 }
コード例 #11
0
 public Permutation(PermutationTypes type, int length, IRandom random)
     : this(type, length)
 {
     Randomize(random);
 }
コード例 #12
0
 public Permutation(PermutationTypes type)
     : base()
 {
     permutationType = type;
 }
コード例 #13
0
 protected Permutation(Permutation original, Cloner cloner)
     : base(original, cloner)
 {
     this.permutationType = original.permutationType;
 }