Changeset 14905 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Boolean
- Timestamp:
- 05/02/17 20:42:40 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Boolean/BooleanRandomErcValue.cs
r14898 r14905 16 16 public BooleanRandomErcValue() : this(false, true, true) { } 17 17 18 public BooleanRandomErcValue(bool isEnabled, bool allowTrue, bool allowFalse ) {18 public BooleanRandomErcValue(bool isEnabled, bool allowTrue, bool allowFalse, double weight = 1d) : base(isEnabled, weight) { 19 19 if (!allowTrue && allowFalse) { 20 20 throw new InvalidOperationException("true and false values are disabled"); … … 22 22 23 23 Name = "Boolean random"; 24 IsEnabled = isEnabled;25 24 Parameters.Add(new FixedValueParameter<BoolValue>(AllowTrueParameterName, new BoolValue(allowTrue))); 26 25 Parameters.Add(new FixedValueParameter<BoolValue>(AllowFalseParameterName, new BoolValue(allowFalse)));
Note: See TracChangeset
for help on using the changeset viewer.