- Timestamp:
- 11/26/15 09:30:43 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3
- Files:
-
- 2 added
- 10 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3
- Property svn:ignore
-
old new 5 5 *.vs10x 6 6 Plugin.cs 7 *.DotSettings
-
- Property svn:ignore
-
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorEncoding.cs
r13396 r13404 52 52 } 53 53 #endregion 54 55 54 56 55 public int Length { … … 108 107 typeof (IBinaryVectorMoveOperator), 109 108 typeof (IBinaryVectorMultiNeighborhoodShakingOperator), 109 typeof (IBinaryVectorSolutionOperator), 110 typeof (IBinaryVectorSolutionsOperator) 110 111 }; 111 112 } … … 129 130 ConfigureBitFlipMoveOperators(operators.OfType<IOneBitflipMoveOperator>()); 130 131 ConfigureShakingOperators(operators.OfType<IBinaryVectorMultiNeighborhoodShakingOperator>()); 132 ConfigureSolutionOperators(operators.OfType<IBinaryVectorSolutionOperator>()); 133 ConfigureSolutionsOperators(operators.OfType<IBinaryVectorSolutionsOperator>()); 131 134 } 132 135 … … 134 137 private void ConfigureCreators(IEnumerable<IBinaryVectorCreator> creators) { 135 138 foreach (var creator in creators) { 136 creator.BinaryVectorParameter.ActualName = Name;137 139 creator.LengthParameter.ActualName = LengthParameter.Name; 138 140 } … … 145 147 } 146 148 private void ConfigureManipulators(IEnumerable<IBinaryVectorManipulator> manipulators) { 147 foreach (var manipulator in manipulators) { 148 manipulator.BinaryVectorParameter.ActualName = Name; 149 } 149 // binary vector manipulators don't contain additional parameters besides the solution parameter 150 150 } 151 151 private void ConfigureMoveOperators(IEnumerable<IBinaryVectorMoveOperator> moveOperators) { 152 foreach (var moveOperator in moveOperators) { 153 moveOperator.BinaryVectorParameter.ActualName = Name; 154 } 152 // binary vector move operators don't contain additional parameters besides the solution parameter 155 153 } 156 154 private void ConfigureBitFlipMoveOperators(IEnumerable<IOneBitflipMoveOperator> oneBitflipMoveOperators) { … … 160 158 } 161 159 private void ConfigureShakingOperators(IEnumerable<IBinaryVectorMultiNeighborhoodShakingOperator> shakingOperators) { 162 foreach (var shakingOperator in shakingOperators) { 163 shakingOperator.BinaryVectorParameter.ActualName = Name; 164 } 160 // binary vector shaking operators don't contain additional parameters besides the solution parameter 161 } 162 private void ConfigureSolutionOperators(IEnumerable<IBinaryVectorSolutionOperator> solutionOperators) { 163 foreach (var solutionOperator in solutionOperators) 164 solutionOperator.BinaryVectorParameter.ActualName = Name; 165 } 166 private void ConfigureSolutionsOperators(IEnumerable<IBinaryVectorSolutionsOperator> solutionsOperators) { 167 foreach (var solutionsOperator in solutionsOperators) 168 solutionsOperator.BinaryVectorsParameter.ActualName = Name; 165 169 } 166 170 #endregion -
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/HeuristicLab.Encodings.BinaryVectorEncoding-3.3.csproj
r11961 r13404 127 127 <Compile Include="BinaryVector.cs" /> 128 128 <Compile Include="Interfaces\IBinaryVectorMultiNeighborhoodShakingOperator.cs" /> 129 <Compile Include="Interfaces\IBinaryVectorSolutionsOperator.cs" /> 130 <Compile Include="Interfaces\IBinaryVectorSolutionOperator.cs" /> 131 <Compile Include="Interfaces\IOneBitflipMoveQualityOperator.cs" /> 129 132 <Compile Include="Interfaces\IOneBitflipMoveOperator.cs" /> 130 133 <Compile Include="Interfaces\IBinaryVectorCreator.cs" /> -
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Interfaces/IBinaryVectorCreator.cs
r13336 r13404 28 28 /// An interface which represents an operator for creating vectors of bool-valued data. 29 29 /// </summary> 30 public interface IBinaryVectorCreator : IBinaryVector Operator, ISolutionCreator<BinaryVector> {30 public interface IBinaryVectorCreator : IBinaryVectorSolutionOperator, ISolutionCreator<BinaryVector> { 31 31 IValueLookupParameter<IntValue> LengthParameter { get; } 32 ILookupParameter<BinaryVector> BinaryVectorParameter { get; }33 32 } 34 33 } -
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Interfaces/IBinaryVectorManipulator.cs
r12012 r13404 20 20 #endregion 21 21 22 using HeuristicLab.Core;23 22 using HeuristicLab.Optimization; 24 23 … … 27 26 /// An interface which represents an operator for manipulating vectors of bool-valued data. 28 27 /// </summary> 29 public interface IBinaryVectorManipulator : IBinaryVectorOperator, IManipulator { 30 ILookupParameter<BinaryVector> BinaryVectorParameter { get; } 28 public interface IBinaryVectorManipulator : IBinaryVectorSolutionOperator, IManipulator { 31 29 } 32 30 } -
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Interfaces/IBinaryVectorMoveOperator.cs
r12012 r13404 20 20 #endregion 21 21 22 using HeuristicLab.Core;23 22 using HeuristicLab.Optimization; 24 23 25 24 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 26 public interface IBinaryVectorMoveOperator : IBinaryVectorOperator, IMoveOperator { 27 ILookupParameter<BinaryVector> BinaryVectorParameter { get; } 25 public interface IBinaryVectorMoveOperator : IBinaryVectorSolutionOperator, IMoveOperator { 28 26 } 29 27 } -
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Interfaces/IBinaryVectorMultiNeighborhoodShakingOperator.cs
r12012 r13404 20 20 #endregion 21 21 22 using HeuristicLab.Core;23 22 24 23 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 25 public interface IBinaryVectorMultiNeighborhoodShakingOperator : IBinaryVectorOperator { 26 ILookupParameter<BinaryVector> BinaryVectorParameter { get; } 24 public interface IBinaryVectorMultiNeighborhoodShakingOperator : IBinaryVectorSolutionOperator { 27 25 } 28 26 } -
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Interfaces/IOneBitflipMoveQualityOperator.cs
r13402 r13404 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Data; 23 24 24 25 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 25 public interface IOneBitflipMove Operator : IBinaryVectorMoveOperator {26 ILookupParameter< OneBitflipMove> OneBitflipMoveParameter { get; }26 public interface IOneBitflipMoveQualityOperator : IOneBitflipMoveOperator { 27 ILookupParameter<DoubleValue> MoveQualityParameter { get; } 27 28 } 28 29 } -
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveMaker.cs
r12012 r13404 31 31 [Item("OneBitflipMoveMaker", "Peforms a one bitflip move on a given BitVector and updates the quality.")] 32 32 [StorableClass] 33 public class OneBitflipMoveMaker : SingleSuccessorOperator, IOneBitflipMove Operator, IMoveMaker, ISingleObjectiveOperator {33 public class OneBitflipMoveMaker : SingleSuccessorOperator, IOneBitflipMoveQualityOperator, IMoveMaker, ISingleObjectiveOperator { 34 34 public override bool CanChangeName { 35 35 get { return false; } -
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveTabuChecker.cs
r12012 r13404 31 31 [Item("OneBitflipMoveTabuChecker", "Prevents peforming a one bitflip move again.")] 32 32 [StorableClass] 33 public class OneBitflipMoveTabuChecker : SingleSuccessorOperator, IOneBitflipMove Operator, ITabuChecker {33 public class OneBitflipMoveTabuChecker : SingleSuccessorOperator, IOneBitflipMoveQualityOperator, ITabuChecker { 34 34 public override bool CanChangeName { 35 35 get { return false; } -
branches/ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/OneBitflipMoveTabuMaker.cs
r12012 r13404 29 29 [Item("OneBitflipMoveTabuMaker", "Declares a given one bitflip move as tabu, by adding its attributes to the tabu list. It also removes the oldest entry in the tabu list when its size is greater than tenure.")] 30 30 [StorableClass] 31 public class OneBitflipMoveTabuMaker : TabuMaker, IOneBitflipMove Operator {31 public class OneBitflipMoveTabuMaker : TabuMaker, IOneBitflipMoveQualityOperator { 32 32 public ILookupParameter<BinaryVector> BinaryVectorParameter { 33 33 get { return (ILookupParameter<BinaryVector>)Parameters["BinaryVector"]; }
Note: See TracChangeset
for help on using the changeset viewer.