Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/03/17 01:31:10 (8 years ago)
Author:
pkimmesw
Message:

#2665 Fixed VectorExpression errors, Fixed BenchmarkSuite Problem Data View issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Configuration/PushConfiguration.cs

    r14905 r14909  
    166166      EnabledExpressions.Clear();
    167167
    168       // Enable those are required
    169168      foreach (StackTypes type in Enum.GetValues(types.GetType())) {
    170169        if (type == StackTypes.None) continue;
    171 
    172170        enabledStacks[type] = false;
    173 
    174         if (types.HasFlag(type))
    175           EnableStack(type, false, true);
     171      }
     172
     173      foreach (var pair in ExpressionTable.StackDependencyToNamesTable) {
     174        if (types.HasFlag(pair.Key)) {
     175          foreach (var name in pair.Value) {
     176            EnableExpression(name, true);
     177          }
     178        }
    176179      }
    177180    }
Note: See TracChangeset for help on using the changeset viewer.