Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/10 18:57:01 (14 years ago)
Author:
abeham
Message:

#1041

  • Added views plugin for variable symbol to set the variable names
  • Beautified interface in the channel views (images in buttons)
  • fixed a bug in the tree interpreter regarding missing variables
  • Added missing frame file for ExternalEvaluation.Views plugin
  • Fixed build of ProtoGen in the solution file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Interpretation/TreeInterpreter.cs

    r4108 r4117  
    254254        case OpCodes.Variable: {
    255255            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;
    257259          }
    258260        case OpCodes.Constant: {
Note: See TracChangeset for help on using the changeset viewer.