Пример #1
0
        /// <summary>
        /// Set DE operator variants to be used, and determine the number
        /// of behavioural parameters associated with that variant.
        /// </summary>
        /// <param name="crossover">Crossover variant to be used.</param>
        /// <param name="dither">Dither variant to be used.</param>
        void SetVariant(DECrossover.Variant crossover, DitherVariant dither)
        {
            _dither    = dither;
            _crossover = crossover;

            if (_dither == DitherVariant.None)
            {
                _dimensionality = 3;
            }
            else
            {
                _dimensionality = 4;
            }
        }
Пример #2
0
 /// <summary>
 /// Construct the object.
 /// </summary>
 /// <param name="numAgentsMultiple">Population size multiple, e.g. 4 ensures populations are sized 4, 8, 12, 16, ...</param>
 /// <param name="problem">Problem to optimize.</param>
 /// <param name="crossover">Crossover variant to be used.</param>
 /// <param name="dither">Dither variant to be used.</param>
 public DESuite(int numAgentsMultiple, Problem problem, DECrossover.Variant crossover, DitherVariant dither)
     : base(problem, crossover, dither)
 {
     NumAgentsMultiple = numAgentsMultiple;
 }
Пример #3
0
 /// <summary>
 /// Construct the object.
 /// </summary>
 /// <param name="problem">Problem to optimize.</param>
 /// <param name="crossover">Crossover variant to be used.</param>
 /// <param name="dither">Dither variant to be used.</param>
 public DESuite(Problem problem, DECrossover.Variant crossover, DitherVariant dither)
     : this(1, problem, crossover, dither)
 {
 }
Пример #4
0
 /// <summary>
 /// Construct the object.
 /// </summary>
 /// <param name="crossover">Crossover variant to be used.</param>
 /// <param name="dither">Dither variant to be used.</param>
 public DESuite(DECrossover.Variant crossover, DitherVariant dither)
     : this(1, crossover, dither)
 {
 }
Пример #5
0
 /// <summary>
 /// Construct the object.
 /// </summary>
 /// <param name="numAgentsMultiple">Population size multiple, e.g. 4 ensures populations are sized 4, 8, 12, 16, ...</param>
 /// <param name="problem">Problem to optimize.</param>
 /// <param name="crossover">Crossover variant to be used.</param>
 /// <param name="dither">Dither variant to be used.</param>
 public DESuite(int numAgentsMultiple, Problem problem, DECrossover.Variant crossover, DitherVariant dither)
     : base(problem, crossover, dither)
 {
     NumAgentsMultiple = numAgentsMultiple;
 }
Пример #6
0
 /// <summary>
 /// Construct the object.
 /// </summary>
 /// <param name="problem">Problem to optimize.</param>
 /// <param name="crossover">Crossover variant to be used.</param>
 /// <param name="dither">Dither variant to be used.</param>
 public DESuite(Problem problem, DECrossover.Variant crossover, DitherVariant dither)
     : this(1, problem, crossover, dither)
 {
 }
Пример #7
0
 /// <summary>
 /// Construct the object.
 /// </summary>
 /// <param name="crossover">Crossover variant to be used.</param>
 /// <param name="dither">Dither variant to be used.</param>
 public DESuite(DECrossover.Variant crossover, DitherVariant dither)
     : this(1, crossover, dither)
 {
 }
Пример #8
0
 /// <summary>
 /// Construct the object.
 /// </summary>
 /// <param name="problem">Problem to optimize.</param>
 /// <param name="crossover">Crossover variant to be used.</param>
 /// <param name="dither">Dither variant to be used.</param>
 public DESuite(Problem problem, DECrossover.Variant crossover, DitherVariant dither)
     : base(problem)
 {
     // Set DE operator variants to be used.
     SetVariant(crossover, dither);
 }
Пример #9
0
        /// <summary>
        /// Set DE operator variants to be used, and determine the number
        /// of behavioural parameters associated with that variant.
        /// </summary>
        /// <param name="crossover">Crossover variant to be used.</param>
        /// <param name="dither">Dither variant to be used.</param>
        void SetVariant(DECrossover.Variant crossover, DitherVariant dither)
        {
            _dither = dither;
            _crossover = crossover;

            if (_dither == DitherVariant.None)
            {
                _dimensionality = 3;
            }
            else
            {
                _dimensionality = 4;
            }
        }
Пример #10
0
 /// <summary>
 /// Construct the object.
 /// </summary>
 /// <param name="problem">Problem to optimize.</param>
 /// <param name="crossover">Crossover variant to be used.</param>
 /// <param name="dither">Dither variant to be used.</param>
 public DESuite(Problem problem, DECrossover.Variant crossover, DitherVariant dither)
     : base(problem)
 {
     // Set DE operator variants to be used.
     SetVariant(crossover, dither);
 }