Changeset 14038
- Timestamp:
- 07/12/16 16:35:10 (8 years ago)
- Location:
- branches/HeuristicLab.BinPacking
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.BinPacking.sln
r13608 r14038 1 1 2 2 Microsoft Visual Studio Solution File, Format Version 12.00 3 # Visual Studio 2012 3 # Visual Studio 14 4 VisualStudioVersion = 14.0.25123.0 5 MinimumVisualStudioVersion = 10.0.40219.1 4 6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.BinPacking-3.3", "HeuristicLab.Problems.BinPacking\3.3\HeuristicLab.Problems.BinPacking-3.3.csproj", "{F8A55094-3CD5-4034-B0CA-5BD7FFB016D4}" 5 7 EndProject … … 63 65 {56DD7F51-3164-4C26-A97A-ADD6FE4B4E86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 64 66 {56DD7F51-3164-4C26-A97A-ADD6FE4B4E86}.Debug|Any CPU.Build.0 = Debug|Any CPU 65 {56DD7F51-3164-4C26-A97A-ADD6FE4B4E86}.Debug|Mixed Platforms.ActiveCfg = Debug| x8666 {56DD7F51-3164-4C26-A97A-ADD6FE4B4E86}.Debug|Mixed Platforms.Build.0 = Debug| x8667 {56DD7F51-3164-4C26-A97A-ADD6FE4B4E86}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 68 {56DD7F51-3164-4C26-A97A-ADD6FE4B4E86}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 67 69 {56DD7F51-3164-4C26-A97A-ADD6FE4B4E86}.Debug|x64.ActiveCfg = Debug|x64 68 70 {56DD7F51-3164-4C26-A97A-ADD6FE4B4E86}.Debug|x64.Build.0 = Debug|x64 … … 79 81 {95680C63-1E06-4E66-B33B-272A772321C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 80 82 {95680C63-1E06-4E66-B33B-272A772321C7}.Debug|Any CPU.Build.0 = Debug|Any CPU 81 {95680C63-1E06-4E66-B33B-272A772321C7}.Debug|Mixed Platforms.ActiveCfg = Debug| x8682 {95680C63-1E06-4E66-B33B-272A772321C7}.Debug|Mixed Platforms.Build.0 = Debug| x8683 {95680C63-1E06-4E66-B33B-272A772321C7}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 84 {95680C63-1E06-4E66-B33B-272A772321C7}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 83 85 {95680C63-1E06-4E66-B33B-272A772321C7}.Debug|x64.ActiveCfg = Debug|x64 84 86 {95680C63-1E06-4E66-B33B-272A772321C7}.Debug|x64.Build.0 = Debug|x64 -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/BinPacking2D.cs
r13612 r14038 59 59 if (sourcePointX.X < BinMeasures.Width && sourcePointX.Y < BinMeasures.Height) { 60 60 //Traversing down the y-axis 61 while (sourcePointX.Y > 0 && !IsPointOccupied(new TwoDimensionalPacking(0, sourcePointX.X, sourcePointX.Y - 1))) { 62 sourcePointX.Y--; 61 var newPoint = new TwoDimensionalPacking(0, sourcePointX.X, sourcePointX.Y - 1); 62 while (sourcePointX.Y > 0 && !IsPointOccupied(newPoint)) { 63 sourcePointX = newPoint; 64 newPoint = new TwoDimensionalPacking(0, sourcePointX.X, sourcePointX.Y - 1); 63 65 } 64 66 ExtremePoints.Add(new TwoDimensionalPacking(0, sourcePointX.X, sourcePointX.Y)); … … 72 74 if (sourcePointY.X < BinMeasures.Width && sourcePointY.Y < BinMeasures.Height) { 73 75 //Traversing down the x-axis 74 while (sourcePointY.X > 0 && !IsPointOccupied(new TwoDimensionalPacking(0, sourcePointY.X - 1, sourcePointY.Y))) { 75 sourcePointY.X--; 76 var newPoint = new TwoDimensionalPacking(0, sourcePointY.X - 1, sourcePointY.Y); 77 while (sourcePointY.X > 0 && !IsPointOccupied(newPoint)) { 78 sourcePointY = newPoint; 79 newPoint = new TwoDimensionalPacking(0, sourcePointY.X - 1, sourcePointY.Y); 76 80 } 77 81 ExtremePoints.Add(new TwoDimensionalPacking(0, sourcePointY.X, sourcePointY.Y)); … … 96 100 97 101 if (epIndex < ExtremePoints.Count) { 98 var result = ExtremePoints.ElementAt(epIndex); 99 result.Rotated = rotated; 102 var currentPoint = ExtremePoints.ElementAt(epIndex); 103 104 var result = new TwoDimensionalPacking(currentPoint.AssignedBin, currentPoint.X, currentPoint.Y, rotated); 100 105 return result; 101 106 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/BinPacking3D.cs
r13612 r14038 165 165 166 166 if (epIndex < ExtremePoints.Count) { 167 var result = ExtremePoints.ElementAt(epIndex);168 result.Rotated = rotated;167 var origPoint = ExtremePoints.ElementAt(epIndex); 168 var result = new ThreeDimensionalPacking(origPoint.AssignedBin, origPoint.X, origPoint.Y, origPoint.Z, rotated); 169 169 return result; 170 170 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/HeuristicLab.Problems.BinPacking.Views-3.3.csproj
r13612 r14038 158 158 <DependentUpon>Container2DView.xaml</DependentUpon> 159 159 </Compile> 160 <Compile Include="PackingPlan2DView.cs" /> 160 <Compile Include="PackingPlan2DView.cs"> 161 <SubType>UserControl</SubType> 162 </Compile> 161 163 <Compile Include="PackingPlan2DView.Designer.cs"> 162 164 <DependentUpon>PackingPlan2DView.cs</DependentUpon> 163 165 </Compile> 164 <Compile Include="PackingPlan3DView.cs" /> 166 <Compile Include="PackingPlan3DView.cs"> 167 <SubType>UserControl</SubType> 168 </Compile> 165 169 <Compile Include="PackingPlan3DView.Designer.cs"> 166 170 <DependentUpon>PackingPlan3DView.cs</DependentUpon> -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/PackingPlan2DView.cs
r13612 r14038 24 24 using HeuristicLab.MainForm; 25 25 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; 26 using HeuristicLab.Problems.BinPacking.Dimensions; 27 using HeuristicLab.Problems.BinPacking.PackingBin; 28 using HeuristicLab.Problems.BinPacking.PackingItem; 26 29 27 30 namespace HeuristicLab.Problems.BinPacking.Views { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Plugin.cs.frame
r13532 r14038 36 36 [PluginDependency("HeuristicLab.MainForm.WindowsForms", "3.3")] 37 37 [PluginDependency("HeuristicLab.Optimization", "3.3")] 38 [PluginDependency("HeuristicLab.SharpDX", "2.6.3")]39 38 public class HeuristicLabProblemsBinPackingViewsPlugin : PluginBase { 40 39 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/PackingSequence/PackingSequenceEncoding.cs
r13613 r14038 32 32 [Item("Packing Sequence Encoding", "Represents an encoding for a bin packing problem using permutation of item-indexes to define the packing sequence.")] 33 33 [StorableClass] 34 public class PackingSequenceEncoding : Encoding<PackingSequenceRandomCreator>{34 public class PackingSequenceEncoding : Item, IPackingSolutionEncoding { 35 35 36 36 [Storable] -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/PackingSequence/PackingSequenceRandomCreator.cs
r13613 r14038 33 33 [Item("PackingSequenceCreator", "Creator class used to create PackingSequence solutions for bin packing problems.")] 34 34 [StorableClass] 35 public class PackingSequenceRandomCreator : SingleSuccessorOperator, IPackingSequenceCreator, IStochasticOperator {35 public class PackingSequenceRandomCreator : PackingSolutionCreator, IStochasticOperator { 36 36 37 37 public ILookupParameter<IRandom> RandomParameter { … … 74 74 return solution; 75 75 } 76 76 protected override IItem CreateSolution() { 77 return Apply(PackingItemsParameter.ActualValue.Value, RandomParameter.ActualValue); 78 } 77 79 } 78 80 }
Note: See TracChangeset
for help on using the changeset viewer.