Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/29/19 15:04:12 (5 years ago)
Author:
mkommend
Message:

#3005: Adapted genetic programming problems to disallow modifications of the grammar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.GeneticProgramming/3.3/ArtificialAnt/Problem.cs

    r16565 r16873  
    2323using System.Diagnostics.Contracts;
    2424using System.Linq;
     25using HEAL.Attic;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
     
    2930using HeuristicLab.Optimization;
    3031using HeuristicLab.Parameters;
    31 using HEAL.Attic;
    3232
    3333
     
    128128      g.AddTerminalSymbols(new string[] { "Move", "Left", "Right" });
    129129      base.Encoding = new SymbolicExpressionTreeEncoding(g, 20, 10);
     130      base.Encoding.GrammarParameter.ReadOnly = true;
    130131    }
    131132
Note: See TracChangeset for help on using the changeset viewer.