Changeset 8331 for branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding
- Timestamp:
- 07/26/12 09:51:13 (12 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 3 deleted
- 10 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding merged: 8184-8185,8246
- Property svn:mergeinfo changed
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/BoundedIntegerVectorCrossover.cs
r8086 r8331 50 50 51 51 protected abstract IntegerVector CrossBounded(IRandom random, ItemArray<IntegerVector> parents, IntMatrix bounds); 52 53 protected static int RoundFeasible(int min, int max, int step, double value) {54 return Math.Max(min, Math.Min(max, (int)Math.Round((value - min) / (double)step) * step + min));55 }56 protected static int FloorFeasible(int min, int max, int step, double value) {57 return Math.Max(min, Math.Min(max, (int)Math.Floor((value - min) / (double)step) * step + min));58 }59 protected static int CeilingFeasible(int min, int max, int step, double value) {60 return Math.Max(min, Math.Min(max, (int)Math.Ceiling((value - min) / (double)step) * step + min));61 }62 52 } 63 53 } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/BoundedIntegerVectorManipulator.cs
r8086 r8331 31 31 [StorableClass] 32 32 public abstract class BoundedIntegerVectorManipulator : IntegerVectorManipulator, IBoundedIntegerVectorOperator { 33 33 34 34 public IValueLookupParameter<IntMatrix> BoundsParameter { 35 35 get { return (IValueLookupParameter<IntMatrix>)Parameters["Bounds"]; } … … 45 45 46 46 protected sealed override void Manipulate(IRandom random, IntegerVector integerVector) { 47 if (BoundsParameter.ActualValue == null) throw new InvalidOperationException(" UniformSomePositionsManipulator: Parameter " + BoundsParameter.ActualName + " could not be found.");47 if (BoundsParameter.ActualValue == null) throw new InvalidOperationException("BoundedIntegerVectorManipulator: Parameter " + BoundsParameter.ActualName + " could not be found."); 48 48 ManipulateBounded(random, integerVector, BoundsParameter.ActualValue); 49 49 } 50 50 51 51 protected abstract void ManipulateBounded(IRandom random, IntegerVector integerVector, IntMatrix bounds); 52 53 protected static int RoundFeasible(int min, int max, int step, double value) {54 return Math.Max(min, Math.Min(max, (int)Math.Round((value - min) / (double)step) * step + min));55 }56 protected static int FloorFeasible(int min, int max, int step, double value) {57 return Math.Max(min, Math.Min(max, (int)Math.Floor((value - min) / (double)step) * step + min));58 }59 protected static int CeilingFeasible(int min, int max, int step, double value) {60 return Math.Max(min, Math.Min(max, (int)Math.Ceiling((value - min) / (double)step) * step + min));61 }62 52 } 63 53 } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Creators/UniformRandomIntegerVectorCreator.cs
r8086 r8331 46 46 /// <param name="random">The random number generator.</param> 47 47 /// <param name="length">The length of the int vector.</param> 48 /// <param name=" min">The minimum value of the sampling range for each vector element (inclusive).</param>49 /// <param name="max">The maximum value of the sampling range for each vector element (exclusive).</param>48 /// <param name="bounds">A matrix containing the inclusive lower and inclusive upper bound in the first and second column and a step size in the third column. 49 /// Each line represents the bounds for a certain dimension. If fewer lines are given, the lines are cycled.</param> 50 50 /// <returns>The newly created integer vector.</returns> 51 51 public static IntegerVector Apply(IRandom random, int length, IntMatrix bounds) { -
branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/HeuristicLab.Encodings.IntegerVectorEncoding-3.3.csproj
r8086 r8331 122 122 </Compile> 123 123 <Compile Include="Crossovers\RoundedUniformArithmeticCrossover.cs" /> 124 <Compile Include="IntegerVectorOperator.cs" /> 124 125 <Compile Include="Interfaces\IBoundedIntegerVectorOperator.cs" /> 125 126 <Compile Include="Interfaces\IIntegerVectorCreator.cs" /> … … 137 138 <Compile Include="Manipulators\RoundedNormalAllPositionsManipulator.cs" /> 138 139 <Compile Include="Manipulators\SelfAdaptiveRoundedNormalAllPositionsManipulator.cs" /> 139 <Compile Include=" Manipulators\StdDevStrategyVectorCreator.cs" />140 <Compile Include=" Manipulators\StdDevStrategyVectorCrossover.cs" />141 <Compile Include=" Manipulators\StdDevStrategyVectorManipulator.cs" />140 <Compile Include="StrategyParameters\StdDevStrategyVectorCreator.cs" /> 141 <Compile Include="StrategyParameters\StdDevStrategyVectorCrossover.cs" /> 142 <Compile Include="StrategyParameters\StdDevStrategyVectorManipulator.cs" /> 142 143 <Compile Include="Manipulators\UniformOnePositionManipulator.cs"> 143 144 <SubType>Code</SubType> -
branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorCrossover.cs
r7259 r8331 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Operators;25 24 using HeuristicLab.Optimization; 26 25 using HeuristicLab.Parameters; … … 33 32 [Item("IntegerVectorCrossover", "A base class for operators that perform a crossover of int-valued vectors.")] 34 33 [StorableClass] 35 public abstract class IntegerVectorCrossover : SingleSuccessorOperator, IIntegerVectorCrossover, IStochasticOperator {34 public abstract class IntegerVectorCrossover : IntegerVectorOperator, IIntegerVectorCrossover, IStochasticOperator { 36 35 public override bool CanChangeName { 37 36 get { return false; } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorManipulator.cs
r7259 r8331 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Operators;25 24 using HeuristicLab.Optimization; 26 25 using HeuristicLab.Parameters; … … 33 32 [Item("IntegerVectorManipulator", "A base class for operators that manipulate int-valued vectors.")] 34 33 [StorableClass] 35 public abstract class IntegerVectorManipulator : SingleSuccessorOperator, IIntegerVectorManipulator, IStochasticOperator {34 public abstract class IntegerVectorManipulator : IntegerVectorOperator, IIntegerVectorManipulator, IStochasticOperator { 36 35 public override bool CanChangeName { 37 36 get { return false; } -
branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Plugin.cs.frame
r8086 r8331 26 26 /// Plugin class for HeuristicLab.Encodings.IntegerVectorEncoding plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Encodings.IntegerVectorEncoding", "3.3. 6.$WCREV$")]28 [Plugin("HeuristicLab.Encodings.IntegerVectorEncoding", "3.3.7.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Encodings.IntegerVectorEncoding-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/ScatterSearch (trunk integration)/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Properties/AssemblyInfo.cs.frame
r7259 r8331 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3. 6.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.7.$WCREV$")]
Note: See TracChangeset
for help on using the changeset viewer.