Changeset 14154 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/PermutationEncoding
- Timestamp:
- 07/21/16 15:08:21 (8 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/PermutationEncoding
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/PermutationEncoding/PermutationProblem.cs
r14153 r14154 70 70 Operators.RemoveAll(x => x is SingleObjectiveMoveEvaluator); 71 71 72 Encoding.ConfigureOperators(Operators.OfType<IOperator>()); 72 Encoding.ConfigureOperators(Operators.OfType<IOperator>()); 73 73 74 // TODO: configure my move evaluators (introduce interface) 74 foreach (var op in Operators.OfType<IOperator<Permutation>>()) { 75 op.BinShapeParameter.ActualName = BinShapeParameter.Name; 76 op.ItemsParameter.ActualName = ItemsParameter.Name; 77 op.SolutionEvaluatorParameter.ActualName = SolutionEvaluatorParameter.Name; 78 op.DecoderParameter.ActualName = DecoderParameter.Name; 79 op.UseStackingConstraintsParameter.ActualName = UseStackingConstraintsParameter.Name; 80 } 75 81 } 76 82 -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/PermutationEncoding/Swap2MoveEvaluator.cs
r14153 r14154 50 50 // uses full evaluation 51 51 Swap2Manipulator.Apply(permutation, move.Index1, move.Index2); 52 var solution = PackingSolutionDecoderParameter.ActualValue.Decode(permutation, binShape, items, useStackingConstraints);52 var solution = DecoderParameter.ActualValue.Decode(permutation, binShape, items, useStackingConstraints); 53 53 54 return PackingPlanEvaluatorParameter.ActualValue.Evaluate(solution);54 return SolutionEvaluatorParameter.ActualValue.Evaluate(solution); 55 55 } 56 56 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/PermutationEncoding/TranslocationMoveEvaluator.cs
r14153 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, useStackingConstraints);53 var solution = DecoderParameter.ActualValue.Decode(permutation, binShape, items, useStackingConstraints); 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.