- Timestamp:
- 07/27/10 18:57:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Interpretation/TreeInterpreter.cs
r4108 r4117 254 254 case OpCodes.Variable: { 255 255 var variableTreeNode = currentInstr.dynamicNode as VariableTreeNode; 256 return variables[variableTreeNode.VariableName] * variableTreeNode.Weight; 256 if (variables.ContainsKey(variableTreeNode.VariableName)) 257 return variables[variableTreeNode.VariableName] * variableTreeNode.Weight; 258 else return -1.0 * variableTreeNode.Weight; 257 259 } 258 260 case OpCodes.Constant: {
Note: See TracChangeset
for help on using the changeset viewer.