Changeset 14046 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves
- Timestamp:
- 07/12/16 19:34:31 (9 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves/ChangeGrouping/ChangeGroupingMove.cs
r13032 r14046 25 25 using HeuristicLab.Encodings.IntegerVectorEncoding; 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Problems.BinPacking .Interfaces;27 using HeuristicLab.Problems.BinPacking; 28 28 29 29 namespace HeuristicLab.Encodings.PackingEncoding.GroupingVector { 30 30 [Item("Change Grouping Move", "A move on a grouping vector that is specified by a single group-assignment-index.")] 31 31 [StorableClass] 32 public class ChangeGroupingMove : GroupingMove, IPackingMove {32 public class ChangeGroupingMove : GroupingMove, IPackingMove { 33 33 [Storable] 34 34 public int Index { get; protected set; } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves/ChangeGrouping/ChangeGroupingMoveGenerator.cs
r13032 r14046 26 26 using HeuristicLab.Parameters; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.Problems.BinPacking .Interfaces;28 using HeuristicLab.Problems.BinPacking; 29 29 30 30 namespace HeuristicLab.Encodings.PackingEncoding.GroupingVector { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves/GroupingMove.cs
r13032 r14046 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Problems.BinPacking .Interfaces;26 using HeuristicLab.Problems.BinPacking; 27 27 28 28 namespace HeuristicLab.Encodings.PackingEncoding.GroupingVector { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves/GroupingMoveHardTabuCriterion.cs
r13032 r14046 27 27 using HeuristicLab.Parameters; 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Problems.BinPacking .Interfaces;29 using HeuristicLab.Problems.BinPacking; 30 30 31 31 namespace HeuristicLab.Encodings.PackingEncoding.GroupingVector { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves/GroupingMoveMaker.cs
r13032 r14046 27 27 using HeuristicLab.Parameters; 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Problems.BinPacking.Interfaces; 29 using HeuristicLab.Problems.BinPacking; 30 30 31 31 32 namespace HeuristicLab.Encodings.PackingEncoding.GroupingVector { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves/GroupingMoveSoftTabuCriterion.cs
r13032 r14046 27 27 using HeuristicLab.Parameters; 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Problems.BinPacking .Interfaces;29 using HeuristicLab.Problems.BinPacking; 30 30 31 31 namespace HeuristicLab.Encodings.PackingEncoding.GroupingVector { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves/GroupingTabuMaker.cs
r13032 r14046 25 25 using HeuristicLab.Parameters; 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Problems.BinPacking.Interfaces; 27 using HeuristicLab.Problems.BinPacking; 28 28 29 29 30 namespace HeuristicLab.Encodings.PackingEncoding.GroupingVector { 30 31 [Item("Grouping tabu maker", "Declares a given grouping move as tabu, by adding its attributes to the tabu list and also store the solution quality or the move quality (whichever is better).")] 31 32 [StorableClass] 32 public class GroupingTabuMaker : TabuMaker, IGroupingVectorMoveOperator {33 public class GroupingTabuMaker : TabuMaker, IGroupingVectorMoveOperator { 33 34 public ILookupParameter<IPackingMove> PackingMoveParameter { 34 35 get { return (ILookupParameter<IPackingMove>)Parameters["PackingMove"]; } … … 43 44 public GroupingTabuMaker() 44 45 : base() { 45 46 Parameters.Add(new LookupParameter<IPackingMove>("PackingMove", "The move to evaluate.")); 46 47 Parameters.Add(new LookupParameter<GroupingVectorEncoding>("GroupingVector", "The solution to evaluate.")); 47 48 } … … 53 54 protected override IItem GetTabuAttribute(bool maximization, double quality, double moveQuality) { 54 55 IPackingMove move = PackingMoveParameter.ActualValue; 55 GroupingVectorEncoding groupingVector = GroupingVectorParameter.ActualValue; 56 GroupingVectorEncoding groupingVector = GroupingVectorParameter.ActualValue; 56 57 double baseQuality = moveQuality; 57 if (maximization && quality > moveQuality || !maximization && quality < moveQuality) 58 if (maximization && quality > moveQuality || !maximization && quality < moveQuality) 58 59 baseQuality = quality; // we make an uphill move, the lower bound is the solution quality 59 60 -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves/SwapGrouping/SwapGroupingMove.cs
r13032 r14046 25 25 using HeuristicLab.Encodings.IntegerVectorEncoding; 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Problems.BinPacking.Interfaces; 27 using HeuristicLab.Problems.BinPacking; 28 28 29 29 30 namespace HeuristicLab.Encodings.PackingEncoding.GroupingVector { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/GroupingVector/Moves/SwapGrouping/SwapGroupingMoveGenerator.cs
r13032 r14046 26 26 using HeuristicLab.Parameters; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.Problems.BinPacking.Interfaces; 28 using HeuristicLab.Problems.BinPacking; 29 29 30 30 31 namespace HeuristicLab.Encodings.PackingEncoding.GroupingVector {
Note: See TracChangeset
for help on using the changeset viewer.