Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/20/13 18:44:04 (11 years ago)
Author:
sawinkle
Message:

#2109:

  • Removed the parameters MaxFunctionDefinitions and MaxFunctionArguments from GEArtificialAntProblem.cs, because automatically defined functions (adf) won't be supported by the Grammatical Evolution implementation of the Artificial Ant problem.
  • Switched from SharpDevelop to Visual Studio 2012 and installed 'Productivity Power Tools 2012'. This extension includes the options 'Format Document on save' and 'Remove and Sort Usings on save', so that some usings were deleted, sorted and the formating changed slightly. Furthermore 'Visual Studio 2010 text editor settings.vssettings' were included.
  • Added new folders ArtificialAnt and Symbolic to separate the files for the ArtificialAnt problem and the Symbolic Regression problem (single objective).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Mappers/RandomMapper.cs

    r10039 r10068  
    2020#endregion
    2121
    22 using System;
    2322using HeuristicLab.Common;
    2423using HeuristicLab.Core;
     
    3433  [StorableClass]
    3534  public class RandomMapper : GenotypeToPhenotypeMapper {
    36    
     35
    3736    [StorableConstructor]
    3837    protected RandomMapper(bool deserializing) : base(deserializing) { }
     
    4342      return new RandomMapper(this, cloner);
    4443    }
    45    
    46    
     44
     45
    4746    /// <summary>
    4847    /// Maps a genotype (an integer vector) to a phenotype (a symbolic expression tree).
     
    5453    public override SymbolicExpressionTree Map(ISymbolicExpressionGrammar grammar,
    5554                                               IntegerVector genotype) {
    56      
     55
    5756      SymbolicExpressionTree tree = new SymbolicExpressionTree();
    58       var rootNode  = (SymbolicExpressionTreeTopLevelNode)grammar.ProgramRootSymbol.CreateTreeNode();
     57      var rootNode = (SymbolicExpressionTreeTopLevelNode)grammar.ProgramRootSymbol.CreateTreeNode();
    5958      var startNode = (SymbolicExpressionTreeTopLevelNode)grammar.StartSymbol.CreateTreeNode();
    6059      rootNode.AddSubtree(startNode);
    6160      tree.Root = rootNode;
    62      
     61
    6362      // TODO
    64      
     63
    6564      return tree;
    6665    }
Note: See TracChangeset for help on using the changeset viewer.