Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/13/18 16:56:35 (6 years ago)
Author:
bburlacu
Message:

#2895: Add solution skeleton for PushGP with genealogy analysis.

Location:
branches/2895_PushGP_GenealogyAnalysis
Files:
1 added
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushEncoding.cs

    r15341 r15771  
    11using System.Collections.Generic;
    22
    3 namespace HeuristicLab.Problems.ProgramSynthesis.Push.Encoding {
     3namespace HeuristicLab.Problems.ProgramSynthesis {
    44  using System;
    55  using System.Linq;
     
    1212  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    1313  using HeuristicLab.PluginInfrastructure;
    14   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc;
    15   using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
    16   using HeuristicLab.Problems.ProgramSynthesis.Push.Crossover;
    17   using HeuristicLab.Problems.ProgramSynthesis.Push.Manipulator;
    18   using HeuristicLab.Problems.ProgramSynthesis.Push.SolutionCreator;
    1914
    2015  [Item("PlushEncoding", "Describes an linear push (Plush) encoding.")]
     
    177172    [Storable]
    178173    private IValueParameter<IntValue> minLengthParameter;
    179     public IValueParameter<IntValue> MinLengthParameter
    180     {
     174    public IValueParameter<IntValue> MinLengthParameter {
    181175      get { return minLengthParameter; }
    182       set
    183       {
     176      set {
    184177        if (value == null) throw new ArgumentNullException("Min length parameter must not be null.");
    185178        if (value.Value == null) throw new ArgumentNullException("Min length parameter value must not be null.");
     
    195188    [Storable]
    196189    private IValueParameter<IntValue> maxLengthParameter;
    197     public IValueParameter<IntValue> MaxLengthParameter
    198     {
     190    public IValueParameter<IntValue> MaxLengthParameter {
    199191      get { return maxLengthParameter; }
    200       set
    201       {
     192      set {
    202193        if (value == null) throw new ArgumentNullException("Max length parameter must not be null.");
    203194        if (value.Value == null) throw new ArgumentNullException("Max length parameter value must not be null.");
     
    213204    [Storable]
    214205    private IValueParameter<IntValue> maxCloseParameter;
    215     public IValueParameter<IntValue> MaxCloseParameter
    216     {
     206    public IValueParameter<IntValue> MaxCloseParameter {
    217207      get { return maxCloseParameter; }
    218       set
    219       {
     208      set {
    220209        if (value == null) throw new ArgumentNullException("Max close parameter must not be null.");
    221210        if (value.Value == null) throw new ArgumentNullException("Max close parameter value must not be null.");
     
    231220    [Storable]
    232221    private IValueParameter<DoubleValue> closeBiasLevelParameter;
    233     public IValueParameter<DoubleValue> CloseBiasLevelParameter
    234     {
     222    public IValueParameter<DoubleValue> CloseBiasLevelParameter {
    235223      get { return closeBiasLevelParameter; }
    236       set
    237       {
     224      set {
    238225        if (value == null) throw new ArgumentNullException("Close bias level parameter must not be null.");
    239226        if (value.Value == null) throw new ArgumentNullException("Close bias level parameter value must not be null.");
     
    249236    [Storable]
    250237    private IValueParameter<PercentValue> inInstructionProbabilityParameter;
    251     public IValueParameter<PercentValue> InInstructionProbabilityParameter
    252     {
     238    public IValueParameter<PercentValue> InInstructionProbabilityParameter {
    253239      get { return inInstructionProbabilityParameter; }
    254       set
    255       {
     240      set {
    256241        if (value == null) throw new ArgumentNullException("In instruciton probability parameter must not be null.");
    257242        if (value.Value == null) throw new ArgumentNullException("In instruciton probability parameter value must not be null.");
     
    267252    [Storable]
    268253    private IValueParameter<IExpressionsConfiguration> instructionsParameter;
    269     public IValueParameter<IExpressionsConfiguration> InstructionsParameter
    270     {
     254    public IValueParameter<IExpressionsConfiguration> InstructionsParameter {
    271255      get { return instructionsParameter; }
    272       set
    273       {
     256      set {
    274257        if (value == null) throw new ArgumentNullException("Instructions paramter must not be null");
    275258        if (instructionsParameter == value) return;
     
    284267    [Storable]
    285268    private IValueParameter<ErcOptions> ercOptionsParameter;
    286     public IValueParameter<ErcOptions> ErcOptionsParameter
    287     {
     269    public IValueParameter<ErcOptions> ErcOptionsParameter {
    288270      get { return ercOptionsParameter; }
    289       set
    290       {
     271      set {
    291272        if (value == null) throw new ArgumentNullException("ErcOptions paramter must not be null");
    292273        if (ercOptionsParameter == value) return;
     
    299280    }
    300281
    301     public IExpressionsConfiguration Instructions
    302     {
     282    public IExpressionsConfiguration Instructions {
    303283      get { return InstructionsParameter.Value; }
    304284      set { InstructionsParameter.Value = value; }
    305285    }
    306286
    307     public ErcOptions ErcOptions
    308     {
     287    public ErcOptions ErcOptions {
    309288      get { return ErcOptionsParameter.Value; }
    310289      set { ErcOptionsParameter.Value = value; }
    311290    }
    312291
    313     public int MinLength
    314     {
     292    public int MinLength {
    315293      get { return MinLengthParameter.Value.Value; }
    316294      set { MinLengthParameter.Value.Value = value; }
    317295    }
    318296
    319     public int MaxLength
    320     {
     297    public int MaxLength {
    321298      get { return MaxLengthParameter.Value.Value; }
    322299      set { MaxLengthParameter.Value.Value = value; }
    323300    }
    324301
    325     public int MaxClose
    326     {
     302    public int MaxClose {
    327303      get { return MaxCloseParameter.Value.Value; }
    328304      set { MaxCloseParameter.Value.Value = value; }
    329305    }
    330306
    331     public double InInstructionProbability
    332     {
     307    public double InInstructionProbability {
    333308      get { return InInstructionProbabilityParameter.Value.Value; }
    334309      set { InInstructionProbabilityParameter.Value.Value = value; }
Note: See TracChangeset for help on using the changeset viewer.