Changeset 14154 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/PermutationEncoding
- Timestamp:
- 07/21/16 15:08:21 (8 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/PermutationEncoding
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/PermutationEncoding/PermutationProblem.cs
r14153 r14154 23 23 24 24 using System.Linq; 25 using System.Windows.Forms; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 72 73 Encoding.ConfigureOperators(Operators.OfType<IOperator>()); 73 74 74 // TODO: configure the move evaluators (add interface for my move evaluators) 75 foreach (var op in Operators.OfType<IOperator<Permutation>>()) { 76 op.BinShapeParameter.ActualName = BinShapeParameter.Name; 77 op.ItemsParameter.ActualName = ItemsParameter.Name; 78 op.SolutionEvaluatorParameter.ActualName = SolutionEvaluatorParameter.Name; 79 op.DecoderParameter.ActualName = DecoderParameter.Name; 80 } 75 81 } 76 82 -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/PermutationEncoding/Swap2MoveEvaluator.cs
r14149 r14154 50 50 // uses full evaluation 51 51 Swap2Manipulator.Apply(permutation, move.Index1, move.Index2); 52 var solution = PackingSolutionDecoderParameter.ActualValue.Decode(permutation, binShape, items);52 var solution = DecoderParameter.ActualValue.Decode(permutation, binShape, items); 53 53 54 return PackingPlanEvaluatorParameter.ActualValue.Evaluate(solution);54 return SolutionEvaluatorParameter.ActualValue.Evaluate(solution); 55 55 } 56 56 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/PermutationEncoding/TranslocationMoveEvaluator.cs
r14149 r14154 51 51 // uses full evaluation 52 52 TranslocationManipulator.Apply(permutation, move.Index1, move.Index2, move.Index3); 53 var solution = PackingSolutionDecoderParameter.ActualValue.Decode(permutation, binShape, items);53 var solution = DecoderParameter.ActualValue.Decode(permutation, binShape, items); 54 54 55 return PackingPlanEvaluatorParameter.ActualValue.Evaluate(solution);55 return SolutionEvaluatorParameter.ActualValue.Evaluate(solution); 56 56 } 57 57 }
Note: See TracChangeset
for help on using the changeset viewer.