/// <summary>
 /// Initializes a new instance of the <see cref="BitStringNeighborGenerator"/> class.
 /// </summary>
 /// <param name="discreteSpaceDescriptor">The discrete space descriptor.</param>
 public BitStringNeighborGenerator(DesignSpaceDescription discreteSpaceDescriptor)
     : base(discreteSpaceDescriptor)
 {
     limits          = BitByteHexFunctions.InitializeBitString(discreteSpaceDescriptor);
     bitStringLength = limits[n - 1].EndIndex;
     rnd             = new Random();
 }
Exemplo n.º 2
0
 public GACrossoverBitString(DesignSpaceDescription discreteSpaceDescriptor, double crossoverRate = 1.7)
     : base(discreteSpaceDescriptor)
 {
     limits          = BitByteHexFunctions.InitializeBitString(discreteSpaceDescriptor);
     bitStringLength = limits[n - 1].EndIndex;
     xRatePerBit     = crossoverRate / bitStringLength;
     rnd             = new Random();
 }
Exemplo n.º 3
0
 public GAMutationBitString(DesignSpaceDescription discreteSpaceDescriptor, double mutationRate = 0.1)
     : base(discreteSpaceDescriptor)
 {
     limits          = BitByteHexFunctions.InitializeBitString(discreteSpaceDescriptor);
     bitStringLength = limits[n - 1].EndIndex;
     mRatePerBit     = mutationRate / bitStringLength;
     rnd             = new Random();
 }