Changeset 13631 for stable/HeuristicLab.Problems.ExternalEvaluation
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 13491,13498,13500
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs
r13259 r13631 59 59 get { return (IFixedValueParameter<SingleObjectiveOptimizationSupportScript>)Parameters["SupportScript"]; } 60 60 } 61 62 private IFixedValueParameter<BoolValue> MaximizationParameter { 63 get { return (IFixedValueParameter<BoolValue>)Parameters["Maximization"]; } 64 } 61 65 #endregion 62 66 63 67 #region Properties 68 public new IEncoding Encoding { 69 get { return base.Encoding; } 70 set { base.Encoding = value; } 71 } 64 72 public EvaluationCache Cache { 65 73 get { return CacheParameter.Value; } … … 100 108 public override bool Maximization { 101 109 get { return Parameters.ContainsKey("Maximization") && ((IValueParameter<BoolValue>)Parameters["Maximization"]).Value.Value; } 110 } 111 112 public virtual void SetMaximization(bool maximization) { 113 MaximizationParameter.Value.Value = maximization; 102 114 } 103 115 -
stable/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
r13259 r13631 56 56 get { return (IFixedValueParameter<MultiObjectiveOptimizationSupportScript>)Parameters["SupportScript"]; } 57 57 } 58 59 private IFixedValueParameter<BoolArray> MaximizationParameter { 60 get { return (IFixedValueParameter<BoolArray>)Parameters["Maximization"]; } 61 } 58 62 #endregion 59 63 60 64 #region Properties 65 public new IEncoding Encoding { 66 get { return base.Encoding; } 67 set { base.Encoding = value; } 68 } 61 69 public EvaluationCache Cache { 62 70 get { return CacheParameter.Value; } … … 97 105 return Parameters.ContainsKey("Maximization") ? ((IValueParameter<BoolArray>)Parameters["Maximization"]).Value.ToArray() : new bool[0]; 98 106 } 107 } 108 109 public virtual void SetMaximization(bool[] maximization) { 110 ((IStringConvertibleArray)MaximizationParameter.Value).Length = maximization.Length; 111 var array = MaximizationParameter.Value; 112 for (var i = 0; i < maximization.Length; i++) 113 array[i] = maximization[i]; 99 114 } 100 115
Note: See TracChangeset
for help on using the changeset viewer.