Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/01/17 09:28:34 (8 years ago)
Author:
pkimmesw
Message:

#2665 Fixed Benchmark Problem Definition, Converted LoopExpressions to stateless expressions, Added several unit test to ensure funcionality, Fixed UI bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Generators/CodeGenerator/CodeGeneratorUtils.cs

    r14897 r15017  
    9696            : new CharPushExpression(ercOptions.CharErcOptions.GetErcValue(random));
    9797
     98        case StackTypes.IntegerVector:
     99          return ercOptions.IntegerVectorErcOptions == null || !ercOptions.IntegerVectorErcOptions.IsEnabled
     100            ? Noop
     101            : new IntegerVectorPushExpression(ercOptions.IntegerVectorErcOptions.GetErcValue(random).Select(i => (long)i).ToList());
     102
     103        case StackTypes.FloatVector:
     104          return ercOptions.FloatVectorErcOptions == null || !ercOptions.FloatVectorErcOptions.IsEnabled
     105            ? Noop
     106            : new FloatVectorPushExpression(ercOptions.FloatVectorErcOptions.GetErcValue(random));
     107
     108        case StackTypes.StringVector:
     109          return ercOptions.StringVectorErcOptions == null || !ercOptions.StringVectorErcOptions.IsEnabled
     110            ? Noop
     111            : new StringVectorPushExpression(ercOptions.StringVectorErcOptions.GetErcValue(random));
     112
    98113        default:
    99114          return Noop;
Note: See TracChangeset for help on using the changeset viewer.