Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/26/10 01:38:30 (14 years ago)
Author:
abeham
Message:

Added an exception to indicate that multi crossover doesn't contain any crossovers (also for manipulators)
fixed text in StochasticMultiOperator
#893

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/3.3/StochasticMultiOperator.cs

    r3445 r3527  
    3434  /// Base class for stochastic multi operators.
    3535  /// </summary>
    36   [Item("StochasticMultiOperator", "Base class for stochastic multi operators.")]
     36  [Item("StochasticMultiOperator<T>", "Base class for stochastic multi operators.")]
    3737  [StorableClass]
    3838  public abstract class StochasticMultiOperator<T> : MultiOperator<T> where T : class, IOperator {
     
    5858    protected StochasticMultiOperator(bool deserializing) : base(deserializing) { }
    5959    /// <summary>
    60     /// Initializes a new instance of <see cref="StochasticMultiBranch"/> with two parameters
     60    /// Initializes a new instance of <see cref="StochasticMultiOperator"/> with two parameters
    6161    /// (<c>Probabilities</c> and <c>Random</c>).
    6262    /// </summary>
     
    119119      DoubleArray probabilities = ProbabilitiesParameter.ActualValue;
    120120      if(probabilities.Length != Operators.Count) {
    121         throw new InvalidOperationException("MultiCrossover: The list of probabilities has to match the number of operators");
     121        throw new InvalidOperationException(Name + ": The list of probabilities has to match the number of operators");
    122122      }
    123123      double sum = 0;
Note: See TracChangeset for help on using the changeset viewer.