Changeset 12940 for trunk/sources
- Timestamp:
- 09/04/15 10:26:33 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/MultiplexerProblem.cs
r12938 r12940 103 103 public override double Evaluate(ISymbolicExpressionTree tree, IRandom random) { 104 104 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."); 106 106 var bs = Enumerable.Range(0, (int)Math.Pow(2, NumberOfBits)); 107 107 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.