Changeset 12369
- Timestamp:
- 04/30/15 10:35:55 (10 years ago)
- Location:
- branches/VOSGA
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/VOSGA/HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm-3.3.sln
r11492 r12369 2 2 Microsoft Visual Studio Solution File, Format Version 12.00 3 3 # Visual Studio 2013 4 VisualStudioVersion = 12.0.3 0723.04 VisualStudioVersion = 12.0.31101.0 5 5 MinimumVisualStudioVersion = 10.0.40219.1 6 6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm-3.3", "HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm\HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm-3.3.csproj", "{F409DD9E-1E9C-4EB1-AA3A-9F6E987C6E58}" 7 EndProject 8 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{41DDAEFF-914B-49BB-BB67-A9271C21F24E}" 7 9 EndProject 8 10 Global … … 32 34 HideSolutionNode = FALSE 33 35 EndGlobalSection 36 GlobalSection(Performance) = preSolution 37 HasPerformanceSessions = true 38 EndGlobalSection 34 39 EndGlobal -
branches/VOSGA/HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm/HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm-3.3.csproj
r12363 r12369 179 179 <Compile Include="Comparators\WeightedParentsQualityComparator.cs" /> 180 180 <Compile Include="ISubScopesQualityComparatorOperator.cs" /> 181 <Compile Include="LinearDiscreteReverseDoubleValueModifier.cs" /> 181 182 <Compile Include="OffspringCollector.cs" /> 182 183 <Compile Include="OffspringSelectors\IOffspringSelector.cs" /> -
branches/VOSGA/HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm/LinearDiscreteReverseDoubleValueModifier.cs
r12354 r12369 28 28 /// Modifies the value by linear (constant) fall or rise. 29 29 /// </summary> 30 [Item("LinearDiscrete DoubleValueModifier", "Modifies the value by linear (constant) fall or rise.")]30 [Item("LinearDiscreteReverseDoubleValueModifier", "Modifies the value by linear (constant) fall or rise.")] 31 31 [StorableClass] 32 public class LinearDiscrete DoubleValueModifier : DiscreteDoubleValueModifier {32 public class LinearDiscreteReverseDoubleValueModifier : DiscreteDoubleValueModifier { 33 33 [StorableConstructor] 34 protected LinearDiscrete DoubleValueModifier(bool deserializing) : base(deserializing) { }35 protected LinearDiscrete DoubleValueModifier(LinearDiscreteDoubleValueModifier original, Cloner cloner) : base(original, cloner) { }36 public LinearDiscrete DoubleValueModifier() : base() { }34 protected LinearDiscreteReverseDoubleValueModifier(bool deserializing) : base(deserializing) { } 35 protected LinearDiscreteReverseDoubleValueModifier(LinearDiscreteReverseDoubleValueModifier original, Cloner cloner) : base(original, cloner) { } 36 public LinearDiscreteReverseDoubleValueModifier() : base() { } 37 37 38 38 public override IDeepCloneable Clone(Cloner cloner) { 39 return new LinearDiscrete DoubleValueModifier(this, cloner);39 return new LinearDiscreteReverseDoubleValueModifier(this, cloner); 40 40 } 41 41 42 42 protected override double Modify(double value, double startValue, double endValue, int index, int startIndex, int endIndex) { 43 43 double k = (endValue - startValue) / (endIndex - startIndex); 44 double x = index - startIndex;44 double x = endIndex - index; 45 45 return k * x + startValue; 46 46 }
Note: See TracChangeset
for help on using the changeset viewer.