Changeset 14909 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Configuration
- Timestamp:
- 05/03/17 01:31:10 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Configuration/PushConfiguration.cs
r14905 r14909 166 166 EnabledExpressions.Clear(); 167 167 168 // Enable those are required169 168 foreach (StackTypes type in Enum.GetValues(types.GetType())) { 170 169 if (type == StackTypes.None) continue; 171 172 170 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 } 176 179 } 177 180 }
Note: See TracChangeset
for help on using the changeset viewer.