Last change
on this file since 17511 was
15771,
checked in by bburlacu, 7 years ago
|
#2895: Add solution skeleton for PushGP with genealogy analysis.
|
File size:
810 bytes
|
Line | |
---|
1 | namespace HeuristicLab.Problems.ProgramSynthesis { |
---|
2 | using HeuristicLab.Common;
|
---|
3 | using HeuristicLab.Core;
|
---|
4 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
5 |
|
---|
6 | [StorableClass]
|
---|
7 | public abstract class ErcOption<T> : ErcOptionConvertible<T, T> {
|
---|
8 | protected ErcOption() : this(false, new WeightedErcItem<T>[0]) { }
|
---|
9 |
|
---|
10 | protected ErcOption(bool isEnabled, params WeightedErcItem<T>[] values)
|
---|
11 | : base(isEnabled, values) { }
|
---|
12 |
|
---|
13 | [StorableConstructor]
|
---|
14 | protected ErcOption(bool deserializing)
|
---|
15 | : base(deserializing) {
|
---|
16 | }
|
---|
17 |
|
---|
18 | protected ErcOption(ErcOptionConvertible<T, T> origin, Cloner cloner)
|
---|
19 | : base(origin, cloner) {
|
---|
20 | }
|
---|
21 |
|
---|
22 | public override T GetErcValue(IRandom random) {
|
---|
23 | return GetErcValue(random, x => x);
|
---|
24 | }
|
---|
25 | }
|
---|
26 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.