Changeset 3450 for trunk/sources
- Timestamp:
- 04/20/10 18:53:14 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 deleted
- 9 edited
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj
r3425 r3450 104 104 <Compile Include="Crossovers\UniformSomePositionsArithmeticCrossover.cs" /> 105 105 <Compile Include="HeuristicLabEncodingsRealVectorEncodingPlugin.cs" /> 106 <Compile Include="Interfaces\IRealVectorSt rategyParameterManipulator.cs" />107 <Compile Include="Interfaces\IRealVectorSt rategyParameterCrossover.cs" />108 <Compile Include="Interfaces\IRealVectorSt rategyParameterCreator.cs" />109 <Compile Include="Interfaces\IRealVectorSt rategyParameterOperator.cs" />106 <Compile Include="Interfaces\IRealVectorStdDevStrategyParameterCreator.cs" /> 107 <Compile Include="Interfaces\IRealVectorStdDevStrategyParameterCrossover.cs" /> 108 <Compile Include="Interfaces\IRealVectorStdDevStrategyParameterManipulator.cs" /> 109 <Compile Include="Interfaces\IRealVectorStdDevStrategyParameterOperator.cs" /> 110 110 <Compile Include="Interfaces\IAdditiveRealVectorMoveOperator.cs" /> 111 111 <Compile Include="Interfaces\IRealVectorBoundsChecker.cs" /> … … 116 116 <Compile Include="Moves\AdditiveMoveTabuChecker.cs" /> 117 117 <Compile Include="Moves\AdditiveMoveTabuMaker.cs" /> 118 <Compile Include="StrategyParameters\StrategyVectorCreator.cs" />119 <Compile Include="StrategyParameters\StrategyVectorCrossover.cs" />120 <Compile Include="StrategyParameters\StrategyVectorManipulator.cs" />121 118 <Compile Include="Moves\AdditiveMoveTabuAttribute.cs" /> 122 119 <Compile Include="Moves\AdditiveMoveMaker.cs" /> … … 134 131 <Compile Include="Manipulators\PolynomialOnePositionManipulator.cs" /> 135 132 <Compile Include="Manipulators\UniformOnePositionManipulator.cs" /> 133 <Compile Include="StrategyParameters\StdDevStrategyVectorCreator.cs" /> 134 <Compile Include="StrategyParameters\StdDevStrategyVectorCrossover.cs" /> 135 <Compile Include="StrategyParameters\StdDevStrategyVectorManipulator.cs" /> 136 136 <None Include="HeuristicLab.snk" /> 137 137 <None Include="HeuristicLabEncodingsRealVectorEncodingPlugin.cs.frame" /> -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Interfaces/IRealVectorStdDevStrategyParameterCreator.cs
r3435 r3450 26 26 27 27 namespace HeuristicLab.Encodings.RealVectorEncoding { 28 /// <summary> 29 /// An interface which represents an operator for creating vectors of real-valued data. 30 /// </summary> 31 public interface IRealVectorStrategyParameterCreator : IRealVectorStrategyParameterOperator, IStrategyParameterCreator { 28 public interface IRealVectorStdDevStrategyParameterCreator : IRealVectorStdDevStrategyParameterOperator, IStrategyParameterCreator { 32 29 IValueLookupParameter<IntValue> LengthParameter { get; } 33 30 IValueLookupParameter<DoubleMatrix> BoundsParameter { get; } -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Interfaces/IRealVectorStdDevStrategyParameterCrossover.cs
r3435 r3450 26 26 27 27 namespace HeuristicLab.Encodings.RealVectorEncoding { 28 /// <summary> 29 /// An interface which represents an operator for crossing vectors of real-valued data. 30 /// </summary> 31 public interface IRealVectorStrategyParameterCrossover : IRealVectorStrategyParameterOperator, IStrategyParameterCrossover { 28 public interface IRealVectorStdDevStrategyParameterCrossover : IRealVectorStdDevStrategyParameterOperator, IStrategyParameterCrossover { 32 29 ILookupParameter<ItemArray<RealVector>> ParentsParameter { get; } 33 30 } -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Interfaces/IRealVectorStdDevStrategyParameterManipulator.cs
r3435 r3450 26 26 27 27 namespace HeuristicLab.Encodings.RealVectorEncoding { 28 /// <summary> 29 /// An interface which represents an operator for manipulating vectors of real-valued data. 30 /// </summary> 31 public interface IRealVectorStrategyParameterManipulator : IRealVectorStrategyParameterOperator, IStrategyParameterManipulator { 28 public interface IRealVectorStdDevStrategyParameterManipulator : IRealVectorStdDevStrategyParameterOperator, IStrategyParameterManipulator { 32 29 IValueLookupParameter<DoubleMatrix> BoundsParameter { get; } 33 30 } -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Interfaces/IRealVectorStdDevStrategyParameterOperator.cs
r3435 r3450 25 25 26 26 namespace HeuristicLab.Encodings.RealVectorEncoding { 27 public interface IRealVectorSt rategyParameterOperator : IStrategyParameterOperator {27 public interface IRealVectorStdDevStrategyParameterOperator { 28 28 } 29 29 } -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/NormalAllPositionsManipulator.cs
r3376 r3450 40 40 [Item("NormalAllPositionsManipulator", "This manipulation operator adds a value sigma_i * N(0,1) to the current value in each position i. The values for sigma_i are taken from the strategy vector, if there are less elements in the strategy vector than positions, then the strategy vector is cycled. It is implemented as described in Beyer, H.-G. and Schwefel, H.-P. 2002. Evolution Strategies - A Comprehensive Introduction Natural Computing, 1, pp. 3-52.")] 41 41 [StorableClass] 42 public class NormalAllPositionsManipulator : RealVectorManipulator, IRealVectorStrategyParameterOperator, ISelfAdaptiveManipulator { 42 public class NormalAllPositionsManipulator : RealVectorManipulator, ISelfAdaptiveManipulator { 43 public Type StrategyParameterType { 44 get { return typeof(IRealVectorStdDevStrategyParameterOperator); } 45 } 43 46 /// <summary> 44 47 /// Parameter for the strategy vector. -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialAllPositionManipulator.cs
r3376 r3450 40 40 /// <summary> 41 41 /// The contiguity parameter specifies the shape of the probability density function that controls the mutation. Setting it to 0 is similar to a uniform distribution over the entire manipulation range (specified by <see cref="MaximumManipulationParameter"/>. 42 /// A higher value will shape the density function such that values closer to 0 (little manipulation) are more likely than values closer to 1 or -1 (maximum manipulation).42 /// A higher value will shape the density function such that values closer to 0 (little manipulation) are more likely than larger values. 43 43 /// </summary> 44 44 public ValueLookupParameter<DoubleValue> ContiguityParameter { -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorCreator.cs
r3435 r3450 30 30 31 31 namespace HeuristicLab.Encodings.RealVectorEncoding { 32 [Item("St rategyVectorCreator", "Creates the endogeneous strategy parameters.")]32 [Item("StdDevStrategyVectorCreator", "Creates the endogeneous strategy parameters.")] 33 33 [StorableClass] 34 public class St rategyVectorCreator : SingleSuccessorOperator, IStochasticOperator, IRealVectorStrategyParameterCreator {34 public class StdDevStrategyVectorCreator : SingleSuccessorOperator, IStochasticOperator, IRealVectorStdDevStrategyParameterCreator { 35 35 public override bool CanChangeName { 36 36 get { return false; } … … 49 49 } 50 50 51 public St rategyVectorCreator()51 public StdDevStrategyVectorCreator() 52 52 : base() { 53 53 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorCrossover.cs
r3435 r3450 29 29 30 30 namespace HeuristicLab.Encodings.RealVectorEncoding { 31 [Item("St rategyVectorCrossover", "Crosses the strategy vector by using intermediate recombination (average crossover).")]31 [Item("StdDevStrategyVectorCrossover", "Crosses the strategy vector by using intermediate recombination (average crossover).")] 32 32 [StorableClass] 33 public class St rategyVectorCrossover : SingleSuccessorOperator, IStochasticOperator, IRealVectorStrategyParameterOperator, IStrategyParameterCrossover {33 public class StdDevStrategyVectorCrossover : SingleSuccessorOperator, IStochasticOperator, IRealVectorStdDevStrategyParameterCrossover { 34 34 public override bool CanChangeName { 35 35 get { return false; } … … 45 45 } 46 46 47 public St rategyVectorCrossover()47 public StdDevStrategyVectorCrossover() 48 48 : base() { 49 49 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorManipulator.cs
r3435 r3450 28 28 using HeuristicLab.Random; 29 29 using System; 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 31 31 32 namespace HeuristicLab.Encodings.RealVectorEncoding { … … 33 34 /// Mutates the endogenous strategy parameters. 34 35 /// </summary> 35 public class StrategyVectorManipulator : SingleSuccessorOperator, IStochasticOperator, IRealVectorStrategyParameterOperator, IStrategyParameterManipulator { 36 [Item("StdDevStrategyVectorManipulator", "Mutates the endogenous strategy parameters.")] 37 [StorableClass] 38 public class StdDevStrategyVectorManipulator : SingleSuccessorOperator, IStochasticOperator, IRealVectorStdDevStrategyParameterManipulator { 36 39 public ILookupParameter<IRandom> RandomParameter { 37 40 get { return (ILookupParameter<IRandom>)Parameters["Random"]; } … … 54 57 /// <c>LearningRate</c>). 55 58 /// </summary> 56 public St rategyVectorManipulator()59 public StdDevStrategyVectorManipulator() 57 60 : base() { 58 61 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); -
trunk/sources/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj
r3418 r3450 95 95 <Compile Include="Interfaces\IStrategyParameterCreator.cs" /> 96 96 <Compile Include="Interfaces\IRun.cs" /> 97 <Compile Include="Interfaces\IStrategyParameterOperator.cs" />98 97 <Compile Include="OptimizerList.cs" /> 99 98 <Compile Include="Experiment.cs" /> -
trunk/sources/HeuristicLab.Optimization/3.3/Interfaces/ISelfAdaptiveManipulator.cs
r3376 r3450 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 28 29 /// </summary> 29 30 public interface ISelfAdaptiveManipulator : IOperator { 31 Type StrategyParameterType { get; } 30 32 IParameter StrategyParameterParameter { get; } 31 33 } -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/AckleyEvaluator.cs
r3376 r3450 72 72 /// <returns>The result value of the Ackley function at the given point.</returns> 73 73 public static double Apply(RealVector point) { 74 double result = 20 + Math.E;74 double result; 75 75 double val; 76 76 … … 80 80 val /= point.Length; 81 81 val = -0.2 * Math.Sqrt(val); 82 result -=20 * Math.Exp(val);82 result = 20 - 20 * Math.Exp(val); 83 83 84 84 val = 0; … … 86 86 val += Math.Cos(2 * Math.PI * point[i]); 87 87 val /= point.Length; 88 result -=Math.Exp(val);88 result += Math.E - Math.Exp(val); 89 89 return (result); 90 90 } -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/RealVectorAdditiveMoveWrapper.cs
r3187 r3450 31 31 private RealVector vector; 32 32 33 public RealVectorAdditiveMoveWrapper() { 34 dimension = -1; 35 moveDistance = 0; 36 this.vector = new RealVector(); 37 } 38 33 39 public RealVectorAdditiveMoveWrapper(AdditiveMove move, RealVector vector) { 34 40 dimension = move.Dimension; -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r3336 r3450 40 40 public sealed class SingleObjectiveTestFunctionProblem : ParameterizedNamedItem, ISingleObjectiveProblem { 41 41 [Storable] 42 private St rategyVectorCreator strategyVectorCreator;42 private StdDevStrategyVectorCreator strategyVectorCreator; 43 43 [Storable] 44 private St rategyVectorCrossover strategyVectorCrossover;44 private StdDevStrategyVectorCrossover strategyVectorCrossover; 45 45 [Storable] 46 private St rategyVectorManipulator strategyVectorManipulator;46 private StdDevStrategyVectorManipulator strategyVectorManipulator; 47 47 48 48 public override Image ItemImage { … … 151 151 Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this TSP instance.", new DoubleValue(evaluator.BestKnownQuality))); 152 152 153 strategyVectorCreator = new St rategyVectorCreator();153 strategyVectorCreator = new StdDevStrategyVectorCreator(); 154 154 strategyVectorCreator.LengthParameter.ActualName = ProblemSizeParameter.Name; 155 strategyVectorCrossover = new StrategyVectorCrossover(); 156 strategyVectorManipulator = new StrategyVectorManipulator(); 155 strategyVectorCrossover = new StdDevStrategyVectorCrossover(); 156 strategyVectorManipulator = new StdDevStrategyVectorManipulator(); 157 strategyVectorManipulator.LearningRateParameter.Value = new DoubleValue(0.5); 158 strategyVectorManipulator.GeneralLearningRateParameter.Value = new DoubleValue(0.5); 157 159 158 160 creator.RealVectorParameter.ActualName = "Point";
Note: See TracChangeset
for help on using the changeset viewer.