Changeset 14744 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Creator
- Timestamp:
- 03/10/17 21:42:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Creator/PointsBasedPushProgramCreator.cs
r14733 r14744 1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.Creator {1 //namespace HeuristicLab.Problems.ProgramSynthesis.Push.Creator { 2 2 3 using HeuristicLab.Common;4 using HeuristicLab.Core;5 using HeuristicLab.Operators;6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;7 using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;8 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;9 using HeuristicLab.Problems.ProgramSynthesis.Push.Generators;3 // using HeuristicLab.Common; 4 // using HeuristicLab.Core; 5 // using HeuristicLab.Operators; 6 // using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 7 // using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration; 8 // using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 9 // using HeuristicLab.Problems.ProgramSynthesis.Push.Generators; 10 10 11 [Item("PointBasedPushProgramCreator", "Creates a Push program whereby points specify the max size but not the min size of the program.")]12 [StorableClass]13 public class PointsBasedPushProgramCreator : InstrumentedOperator, IPushProgramCreator {11 // [Item("PointBasedPushProgramCreator", "Creates a Push program whereby points specify the max size but not the min size of the program.")] 12 // [StorableClass] 13 // public class PointsBasedPushProgramCreator : InstrumentedOperator, IPushProgramCreator { 14 14 15 public PointsBasedPushProgramCreator(bool deserializing) : base(deserializing) { }15 // public PointsBasedPushProgramCreator(bool deserializing) : base(deserializing) { } 16 16 17 public PointsBasedPushProgramCreator(PointsBasedPushProgramCreator origin, Cloner cloner) : base(origin, cloner) {17 // public PointsBasedPushProgramCreator(PointsBasedPushProgramCreator origin, Cloner cloner) : base(origin, cloner) { 18 18 19 }19 // } 20 20 21 public override IDeepCloneable Clone(Cloner cloner) {22 return new PointsBasedPushProgramCreator(this, cloner);23 }21 // public override IDeepCloneable Clone(Cloner cloner) { 22 // return new PointsBasedPushProgramCreator(this, cloner); 23 // } 24 24 25 public PushProgram CreateProgram(IRandom random, IReadonlyPushConfiguration config) {26 return CodeGenerator.RandomProgram(10, random, config);27 }28 }29 }25 // public PushProgram CreateProgram(IRandom random, IReadonlyPushConfiguration config) { 26 // return CodeGenerator.RandomProgram(10, random, config); 27 // } 28 // } 29 //}
Note: See TracChangeset
for help on using the changeset viewer.