Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push.Base/Erc/Integer/IntegerConstantErc.cs @ 15771

Last change on this file since 15771 was 15771, checked in by bburlacu, 6 years ago

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

File size: 883 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis {
2  using Common;
3  using Data;
4  using Persistence.Default.CompositeSerializers.Storable;
5
6  [StorableClass]
7  public class IntegerConstantErc : ConstantsWeightedErc<int, IntArray> {
8
9    public IntegerConstantErc() : this(true, 1d) { }
10
11    public IntegerConstantErc(params int[] constants) : this(true, 1d, constants) { }
12
13    public IntegerConstantErc(bool isEnabled, double weight = 1d, params int[] constants)
14      : base(isEnabled, new IntArray(constants), weight) {
15    }
16
17    [StorableConstructor]
18    public IntegerConstantErc(bool deserializing) : base(deserializing) { }
19
20    public IntegerConstantErc(IntegerConstantErc origin, Cloner cloner) : base(origin, cloner) { }
21
22    public override IDeepCloneable Clone(Cloner cloner) {
23      return new IntegerConstantErc(this, cloner);
24    }
25  }
26}
Note: See TracBrowser for help on using the repository browser.