Changeset 11975 for branches/ALPS/HeuristicLab.Algorithms.ScatterSearch/3.3
- Timestamp:
- 02/10/15 09:57:29 (10 years ago)
- Location:
- branches/ALPS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS
- Property svn:mergeinfo changed
-
branches/ALPS/HeuristicLab.Algorithms.ScatterSearch/3.3/PopulationRebuildMethod.cs
r11171 r11975 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Operators; 27 using HeuristicLab.Optimization; 27 28 using HeuristicLab.Parameters; 28 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 34 35 [Item("PopulationRebuildMethod", "An operator that updates the reference set and rebuilds the population.")] 35 36 [StorableClass] 36 public sealed class PopulationRebuildMethod : SingleSuccessorOperator {37 public sealed class PopulationRebuildMethod : SingleSuccessorOperator, ISingleObjectiveOperator { 37 38 #region Parameter properties 38 39 public ScopeParameter CurrentScopeParameter { -
branches/ALPS/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearch.cs
r11404 r11975 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) -
branches/ALPS/HeuristicLab.Algorithms.ScatterSearch/3.3/SolutionPoolUpdateMethod.cs
r11171 r11975 36 36 [Item("SolutionPoolUpdateMethod", "An operator that updates the solution pool.")] 37 37 [StorableClass] 38 public sealed class SolutionPoolUpdateMethod : SingleSuccessorOperator, ISimilarityBasedOperator {38 public sealed class SolutionPoolUpdateMethod : SingleSuccessorOperator, ISimilarityBasedOperator, ISingleObjectiveOperator { 39 39 #region ISimilarityBasedOperator Members 40 40 [Storable]
Note: See TracChangeset
for help on using the changeset viewer.