/// <summary>
 /// Initializes a new instance of the <see cref="StochasticNeighborGenerator"/> class.
 /// </summary>
 /// <param name="discreteSpaceDescriptor">The discrete space descriptor.</param>
 /// <param name="direction">The direction.</param>
 /// <param name="maxNumNeighbors">The maximum number neighbors.</param>
 public StochasticNeighborGenerator(DesignSpaceDescription discreteSpaceDescriptor, optimize direction,
                                    int maxNumNeighbors = 250)
     : base(discreteSpaceDescriptor)
 {
     r              = new Random();
     changeVectors  = discreteSpaceDescriptor.CreateNeighborChangeVectors(maxNumNeighbors);
     this.direction = direction;
     ResetStats();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExhaustiveNeighborGenerator"/> class.
 /// </summary>
 /// <param name="discreteSpaceDescriptor">The discrete space descriptor.</param>
 /// <param name="minNumNeighbors">The minimum number neighbors.</param>
 public ExhaustiveNeighborGenerator(DesignSpaceDescription discreteSpaceDescriptor, int minNumNeighbors = 250)
     : base(discreteSpaceDescriptor)
 {
     r             = new Random();
     changeVectors = discreteSpaceDescriptor.CreateNeighborChangeVectors(minNumNeighbors);
 }