Changeset 7789 for branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs
- Timestamp:
- 05/10/12 10:42:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs
r7351 r7789 28 28 using HeuristicLab.Encodings.BinaryVectorEncoding; 29 29 using HeuristicLab.Optimization; 30 using HeuristicLab.Optimization.Operators; 30 31 using HeuristicLab.Parameters; 31 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 244 245 } 245 246 private void InitializeOperators() { 247 Operators.Add(new KnapsackImprovementOperator()); 248 Operators.Add(new KnapsackMultipleGuidesPathRelinker()); 249 Operators.Add(new KnapsackPathRelinker()); 250 Operators.Add(new KnapsackSimultaneousPathRelinker()); 251 Operators.Add(new KnapsackSimilarityCalculator()); 252 246 253 Operators.Add(new BestKnapsackSolutionAnalyzer()); 247 254 ParameterizeAnalyzer(); … … 290 297 op.BinaryVectorParameter.Hidden = true; 291 298 } 299 foreach (IImprovementOperator op in Operators.OfType<IImprovementOperator>()) { 300 op.TargetParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 301 op.TargetParameter.Hidden = true; 302 } 303 foreach (IPathRelinker op in Operators.OfType<IPathRelinker>()) { 304 op.ParentsParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 305 op.ParentsParameter.Hidden = true; 306 } 307 foreach (ISimilarityCalculator op in Operators.OfType<ISimilarityCalculator>()) { 308 op.TargetParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 309 op.TargetParameter.Hidden = true; 310 } 292 311 } 293 312 #endregion
Note: See TracChangeset
for help on using the changeset viewer.