Changeset 15334 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Individual
- Timestamp:
- 08/21/17 11:33:53 (8 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP
- Property svn:ignore
-
old new 1 1 *.user 2 packages 3 TestResults
-
- Property svn:ignore
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Individual/InduvidualMapper.cs
r15273 r15334 47 47 var expressionType = expression.GetType(); 48 48 49 if (config. ParenthesesCloseBiasLevel > 0) {50 close += random.NextBiased(0, config.Max ParenthesesClose, config.ParenthesesCloseBiasLevel);49 if (config.CloseBiasLevel > 0) { 50 close += random.NextBiased(0, config.MaxClose, config.CloseBiasLevel); 51 51 52 52 // check if expression requires additional blocks … … 54 54 var attr = ExpressionTable.TypeToAttributeTable[expressionType]; 55 55 56 for (var blockIdx = 0u; blockIdx < attr. ExecIn&& currentIndex < vector.Length; blockIdx++) {56 for (var blockIdx = 0u; blockIdx < attr.RequiredBlockCount && currentIndex < vector.Length; blockIdx++) { 57 57 if (close != 0) { 58 58 close--;
Note: See TracChangeset
for help on using the changeset viewer.