Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/07/20 17:46:40 (4 years ago)
Author:
abeham
Message:

#2521: adapted readonly of reference parameters

Location:
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/EvenParityProblem.cs

    r17382 r17655  
    9595        g.AddTerminalSymbol(string.Format("{0}", i));
    9696
    97       Encoding.GrammarParameter.ReadOnly = false;
    9897      Encoding.Grammar = g;
    99       Encoding.GrammarParameter.ReadOnly = true;
     98      Encoding.GrammarParameter.ReadOnly = GrammarRefParameter.ReadOnly = true;
    10099
    101       BestKnownQualityParameter.ReadOnly = false;
    102100      BestKnownQuality = Math.Pow(2, NumberOfBits); // this is a benchmark problem (the best achievable quality is known for a given number of bits)
    103101      BestKnownQualityParameter.ReadOnly = true;
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/MultiplexerProblem.cs

    r17382 r17655  
    109109        g.AddTerminalSymbol(string.Format("d{0}", i));
    110110
    111       Encoding.GrammarParameter.ReadOnly = false;
    112111      Encoding.Grammar = g;
    113       Encoding.GrammarParameter.ReadOnly = true;
    114 
    115       BestKnownQualityParameter.ReadOnly = false;
     112      Encoding.GrammarParameter.ReadOnly = GrammarRefParameter.ReadOnly = true;
     113
    116114      BestKnownQuality = Math.Pow(2, NumberOfBits); // this is a benchmark problem (the best achievable quality is known for a given number of bits)
    117115      BestKnownQualityParameter.ReadOnly = true;
Note: See TracChangeset for help on using the changeset viewer.