Changeset 11999 for trunk/sources
- Timestamp:
- 02/13/15 12:29:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/EvaluationTracker.cs
r11987 r11999 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; 26 using HeuristicLab.Data; 26 27 using HeuristicLab.Encodings.BinaryVectorEncoding; 28 using HeuristicLab.Parameters; 27 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 30 using HeuristicLab.Problems.Binary; … … 80 82 Evaluations = 0; 81 83 BestFoundOnEvaluation = 0; 84 85 if (Parameters.ContainsKey("Maximization")) Parameters.Remove("Maximization"); 86 Parameters.Add(new FixedValueParameter<BoolValue>("Maximization", "Set to false if the problem should be minimized.", (BoolValue)new BoolValue(Maximization).AsReadOnly()) { Hidden = true }); 82 87 } 83 84 85 88 86 89 public override double Evaluate(BinaryVector vector, IRandom random) { … … 102 105 103 106 public override bool Maximization { 104 get { return problem.Maximization; } 107 get { 108 if (problem == null) return false; 109 return problem.Maximization; 110 } 105 111 } 106 112
Note: See TracChangeset
for help on using the changeset viewer.