[9495] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using HeuristicLab.Collections;
|
---|
| 6 | using HeuristicLab.Core;
|
---|
| 7 | using HeuristicLab.Encodings.IntegerVectorEncoding;
|
---|
| 8 | using HeuristicLab.Encodings.PackingEncoding.GroupingVector;
|
---|
| 9 | using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector;
|
---|
| 10 | using HeuristicLab.Encodings.PackingEncoding.PackingSequence;
|
---|
| 11 | using HeuristicLab.Problems.BinPacking.Dimensions;
|
---|
| 12 | using HeuristicLab.Problems.BinPacking.Interfaces;
|
---|
| 13 | using HeuristicLab.Problems.BinPacking.PackingBin;
|
---|
| 14 | using HeuristicLab.Problems.BinPacking.PackingItem;
|
---|
| 15 | using HeuristicLab.Problems.BinPacking.Shapes;
|
---|
| 16 |
|
---|
| 17 | namespace HeuristicLab.Problems.BinPacking.Decoders {
|
---|
| 18 | public static class ExtremePointsFunctions<D,B,I>
|
---|
| 19 | where D : class, IPackingDimensions
|
---|
| 20 | where B : PackingShape<D>, IPackingBin, IRegularPackingShape
|
---|
| 21 | where I : PackingShape<D>, IPackingItem, IRegularPackingShape {
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 | public static ObservableDictionary<int, D> ExtremePointBasedPacking(IItem solution, B binMeasures, ItemList<I> itemMeasures) {
|
---|
| 25 | var actualSolutionMCV = solution as MultiComponentVectorEncoding;
|
---|
| 26 | var actualSolutionGV = solution as GroupingVectorEncoding;
|
---|
| 27 | var actualSolutionPS = solution as PackingSequenceEncoding;
|
---|
| 28 | if (actualSolutionMCV != null)
|
---|
| 29 | return ExtremePointBasedPacking(actualSolutionMCV, binMeasures, itemMeasures);
|
---|
| 30 | else if (actualSolutionGV != null)
|
---|
| 31 | return ExtremePointBasedPacking(actualSolutionGV, binMeasures, itemMeasures);
|
---|
| 32 | else if (actualSolutionPS != null)
|
---|
| 33 | return ExtremePointBasedPacking(actualSolutionPS, binMeasures, itemMeasures);
|
---|
| 34 | else
|
---|
| 35 | return new ObservableDictionary<int,D>();
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | public static ObservableDictionary<int, D> ExtremePointBasedPacking(MultiComponentVectorEncoding solution, B binMeasures, ItemList<I> itemMeasures) {
|
---|
| 39 |
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | public static ObservableDictionary<int, D> ExtremePointBasedPacking(GroupingVectorEncoding solution, B binMeasures, ItemList<I> itemMeasures) {
|
---|
| 43 |
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | public static ObservableDictionary<int, D> ExtremePointBasedPacking(PackingSequenceEncoding solution, B binMeasures, ItemList<I> itemMeasures) {
|
---|
| 47 |
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 | }
|
---|
| 51 | }
|
---|