public Permutation(PermutationTypes type, IntArray elements) : this(type, elements.Length) { for (int i = 0; i < array.Length; i++) { array[i] = elements[i]; } }
public Permutation(PermutationTypes type, int length) : base(length) { for (int i = 0; i < length; i++) { this[i] = i; } permutationType = type; }
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(); }
public Permutation(PermutationTypes type, IntArray elements) : this(type, elements.Length) { for (int i = 0; i < array.Length; i++) array[i] = elements[i]; }
public Permutation(PermutationTypes type, int[] elements) : base(elements) { permutationType = type; }
public Permutation(PermutationTypes type, int length, IRandom random) : this(type, length) { Randomize(random); }
public Permutation(PermutationTypes type, int length) : base(length) { for (int i = 0; i < length; i++) this[i] = i; permutationType = type; }
public Permutation(PermutationTypes type) : base() { permutationType = type; }
protected Permutation(Permutation original, Cloner cloner) : base(original, cloner) { this.permutationType = original.permutationType; }