Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12940


Ignore:
Timestamp:
09/04/15 10:26:33 (9 years ago)
Author:
gkronber
Message:

#2472: minor fix in multiplexer problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/MultiplexerProblem.cs

    r12938 r12940  
    103103    public override double Evaluate(ISymbolicExpressionTree tree, IRandom random) {
    104104      if (NumberOfBits <= 0) throw new NotSupportedException("Number of bits must be larger than zero.");
    105       if (NumberOfBits > 40) throw new NotSupportedException("Mupltiplexer does not support problems with number of bits > 37.");
     105      if (NumberOfBits > 37) throw new NotSupportedException("Mupltiplexer does not support problems with number of bits > 37.");
    106106      var bs = Enumerable.Range(0, (int)Math.Pow(2, NumberOfBits));
    107107      var addrBits = (int)Math.Log(NumberOfBits, 2); // largest power of two that fits into the number of bits
Note: See TracChangeset for help on using the changeset viewer.