Changeset 11898 for stable/HeuristicLab.Algorithms.ScatterSearch/3.3
- Timestamp:
- 02/05/15 09:27:24 (10 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11404,11839
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearch.cs
r11170 r11898 62 62 } 63 63 public IValueParameter<BoolValue> ExecutePathRelinkingParameter { 64 get { return (IValue LookupParameter<BoolValue>)Parameters["ExecutePathRelinking"]; }64 get { return (IValueParameter<BoolValue>)Parameters["ExecutePathRelinking"]; } 65 65 } 66 66 public IConstrainedValueParameter<IImprovementOperator> ImproverParameter { … … 175 175 Parameters.Add(new ValueParameter<MultiAnalyzer>("Analyzer", "The analyzer used to analyze each iteration.", new MultiAnalyzer())); 176 176 Parameters.Add(new ConstrainedValueParameter<ICrossover>("Crossover", "The operator used to cross solutions.")); 177 Parameters.Add(new ValueParameter<BoolValue>("ExecutePathRelinking", "True if path relinking should be executed instead of crossover, otherwise false.", new BoolValue( true)));177 Parameters.Add(new ValueParameter<BoolValue>("ExecutePathRelinking", "True if path relinking should be executed instead of crossover, otherwise false.", new BoolValue(false))); 178 178 Parameters.Add(new ConstrainedValueParameter<IImprovementOperator>("Improver", "The operator used to improve solutions.")); 179 179 Parameters.Add(new ValueParameter<IntValue>("MaximumIterations", "The maximum number of iterations which should be processed.", new IntValue(100))); … … 309 309 base.Problem_OperatorsChanged(sender, e); 310 310 } 311 private void PathRelinkerParameter_ValueChanged(object sender, EventArgs e) { 312 ExecutePathRelinking.Value = PathRelinkerParameter.Value != null; 313 } 311 314 private void SimilarityCalculatorParameter_ValueChanged(object sender, EventArgs e) { 312 315 ParameterizeMainLoop(); … … 322 325 #region Helpers 323 326 private void Initialize() { 327 PathRelinkerParameter.ValueChanged += new EventHandler(PathRelinkerParameter_ValueChanged); 324 328 SimilarityCalculatorParameter.ValueChanged += new EventHandler(SimilarityCalculatorParameter_ValueChanged); 325 329 if (Problem != null)
Note: See TracChangeset
for help on using the changeset viewer.