Changeset 8319 for branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs
- Timestamp:
- 07/24/12 15:04:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs
r8086 r8319 291 291 op.ValuesParameter.Hidden = true; 292 292 } 293 foreach ( var op in Operators.OfType<IBinaryVectorMultiNeighborhoodShakingOperator>()) {293 foreach (IBinaryVectorMultiNeighborhoodShakingOperator op in Operators.OfType<IBinaryVectorMultiNeighborhoodShakingOperator>()) { 294 294 op.BinaryVectorParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 295 295 op.BinaryVectorParameter.Hidden = true; 296 296 } 297 foreach (I ImprovementOperator op in Operators.OfType<IImprovementOperator>()) {298 op. TargetParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName;299 op. TargetParameter.Hidden = true;300 } 301 foreach (I PathRelinker op in Operators.OfType<IPathRelinker>()) {297 foreach (ISingleObjectiveImprovementOperator op in Operators.OfType<ISingleObjectiveImprovementOperator>()) { 298 op.SolutionParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 299 op.SolutionParameter.Hidden = true; 300 } 301 foreach (ISingleObjectivePathRelinker op in Operators.OfType<ISingleObjectivePathRelinker>()) { 302 302 op.ParentsParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 303 303 op.ParentsParameter.Hidden = true; 304 304 } 305 foreach ( ISimilarityCalculator op in Operators.OfType<ISimilarityCalculator>()) {306 op. Target= SolutionCreator.BinaryVectorParameter.ActualName;305 foreach (KnapsackSimilarityCalculator op in Operators.OfType<KnapsackSimilarityCalculator>()) { 306 op.SolutionVariableName = SolutionCreator.BinaryVectorParameter.ActualName; 307 307 } 308 308 }
Note: See TracChangeset
for help on using the changeset viewer.