Changeset 8083 for branches/FitnessLandscapeAnalysis
- Timestamp:
- 06/21/12 16:51:45 (13 years ago)
- Location:
- branches/FitnessLandscapeAnalysis
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape.VRP/HeuristicLabAnalysisFitnessLandscapeVRPPlugin.cs.frame
r7141 r8083 27 27 [PluginFile("HeuristicLab.Analysis.FitnessLandscape.VRP-3.3.dll", PluginFileType.Assembly)] 28 28 [PluginDependency("HeuristicLab.Analysis.FitnessLandscape", "3.3")] 29 [PluginDependency("HeuristicLab.Collections", "3.3")] 29 30 [PluginDependency("HeuristicLab.Common", "3.3")] 30 31 [PluginDependency("HeuristicLab.Common.Resources", "3.3")] … … 32 33 [PluginDependency("HeuristicLab.Data", "3.3")] 33 34 [PluginDependency("HeuristicLab.Encodings.PermutationEncoding", "3.3")] 35 [PluginDependency("HeuristicLab.Optimization", "3.3")] 36 [PluginDependency("HeuristicLab.Parameters", "3.3")] 34 37 [PluginDependency("HeuristicLab.Persistence", "3.3")] 35 38 [PluginDependency("HeuristicLab.Problems.VehicleRouting", "3.3")] -
branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape.Views/HeuristicLabAnalysisFitnessLandscapeViewsPlugin.cs.frame
r7472 r8083 28 28 [PluginDependency("HeuristicLab.ALGLIB", "3.4")] 29 29 [PluginDependency("HeuristicLab.Analysis.FitnessLandscape", "3.3")] 30 [PluginDependency("HeuristicLab.Collections", "3.3")]31 30 [PluginDependency("HeuristicLab.Common", "3.3")] 32 31 [PluginDependency("HeuristicLab.Common.Resources", "3.3")] 33 32 [PluginDependency("HeuristicLab.Core", "3.3")] 34 33 [PluginDependency("HeuristicLab.Core.Views", "3.3")] 35 [PluginDependency("HeuristicLab.Data", "3.3")]36 34 [PluginDependency("HeuristicLab.MainForm", "3.3")] 37 35 [PluginDependency("HeuristicLab.MainForm.WindowsForms", "3.3")] -
branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/HeuristicLabAnalysisFitnessLandscapePlugin.cs.frame
r7472 r8083 34 34 [PluginDependency("HeuristicLab.Data", "3.3")] 35 35 [PluginDependency("HeuristicLab.Encodings.BinaryVectorEncoding", "3.3")] 36 [PluginDependency("HeuristicLab.Encodings.IntegerVectorEncoding", "3.3")]37 36 [PluginDependency("HeuristicLab.Encodings.PermutationEncoding", "3.3")] 38 37 [PluginDependency("HeuristicLab.Encodings.RealVectorEncoding", "3.3")] -
branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK.Views/HeuristicLabProblemsNKViewsPlugin.cs.frame
r7149 r8083 26 26 [Plugin("HeuristicLab.Problems.NK.Views", "3.3.0.$WCREV$")] 27 27 [PluginFile("HeuristicLab.Problems.NK.Views-3.3.dll", PluginFileType.Assembly)] 28 [PluginDependency("HeuristicLab.Common", "3.3")]29 28 [PluginDependency("HeuristicLab.Core", "3.3")] 30 29 [PluginDependency("HeuristicLab.Core.Views", "3.3")] -
branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK/BinaryVectorComparers/AverageBitBinaryVectorComparer.cs
r7128 r8083 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 1 using System.Linq; 2 using HeuristicLab.Common; 5 3 using HeuristicLab.Core; 6 using HeuristicLab.Data; 7 using HeuristicLab.Common; 4 using HeuristicLab.Encodings.BinaryVectorEncoding; 8 5 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 9 using HeuristicLab.Encodings.BinaryVectorEncoding;10 6 11 7 namespace HeuristicLab.Problems.NK { 12 8 13 9 [Item("Average Bit Binary Vector Comparer", "Compares two binary vectors by their average positive bit location")] 14 10 [StorableClass] 15 11 public sealed class AverageBitBinaryVectorComparer : BinaryVectorComparer { 16 12 17 13 [StorableConstructor] 18 pr otectedAverageBitBinaryVectorComparer(bool deserializing) : base(deserializing) { }19 pr otectedAverageBitBinaryVectorComparer(AverageBitBinaryVectorComparer original, Cloner cloner)14 private AverageBitBinaryVectorComparer(bool deserializing) : base(deserializing) { } 15 private AverageBitBinaryVectorComparer(AverageBitBinaryVectorComparer original, Cloner cloner) 20 16 : base(original, cloner) { 21 17 } … … 25 21 } 26 22 27 public static double AverageBit(BinaryVector x) { 23 public static double AverageBit(BinaryVector x) { 28 24 return x.Select((b, i) => new { b, i }).Where(v => v.b).Average(v => v.i); 29 25 } 30 26 31 27 public override int Compare(BinaryVector x, BinaryVector y) { 32 return (AverageBit(x) - AverageBit(y)).CompareTo(0); 33 } 34 } 28 return (AverageBit(x) - AverageBit(y)).CompareTo(0); 29 } 30 } 35 31 } -
branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK/BinaryVectorComparers/LexicographicBinaryVectorComparer.cs
r7128 r8083 1 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 2 using HeuristicLab.Common; 5 3 using HeuristicLab.Core; 6 using HeuristicLab.Data; 7 using HeuristicLab.Common; 4 using HeuristicLab.Encodings.BinaryVectorEncoding; 8 5 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 9 using HeuristicLab.Encodings.BinaryVectorEncoding;10 6 11 7 namespace HeuristicLab.Problems.NK { 12 8 13 9 [Item("Lexicographic Binary Vector Comparer", "Compares two binary vectors lexicographically")] 14 10 [StorableClass] … … 16 12 17 13 [StorableConstructor] 18 pr otectedLexicographicBinaryVectorComparer(bool deserializing) : base(deserializing) { }19 pr otectedLexicographicBinaryVectorComparer(LexicographicBinaryVectorComparer original, Cloner cloner)14 private LexicographicBinaryVectorComparer(bool deserializing) : base(deserializing) { } 15 private LexicographicBinaryVectorComparer(LexicographicBinaryVectorComparer original, Cloner cloner) 20 16 : base(original, cloner) { 21 17 } … … 26 22 27 23 public override int Compare(BinaryVector x, BinaryVector y) { 28 for (int i = 0; i <Math.Min(x.Length, y.Length); i++) {24 for (int i = 0; i < Math.Min(x.Length, y.Length); i++) { 29 25 if (!x[i] && y[i]) 30 26 return -1; -
branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK/BinaryVectorComparers/MedianBitBinaryVectorComparer.cs
r7128 r8083 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 1 using System.Linq; 2 using HeuristicLab.Common; 5 3 using HeuristicLab.Core; 6 using HeuristicLab.Data; 7 using HeuristicLab.Common; 4 using HeuristicLab.Encodings.BinaryVectorEncoding; 8 5 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 9 using HeuristicLab.Encodings.BinaryVectorEncoding;10 6 11 7 namespace HeuristicLab.Problems.NK { … … 16 12 17 13 [StorableConstructor] 18 pr otectedMedianBitBinaryVectorComparer(bool deserializing) : base(deserializing) { }19 pr otectedMedianBitBinaryVectorComparer(MedianBitBinaryVectorComparer original, Cloner cloner)14 private MedianBitBinaryVectorComparer(bool deserializing) : base(deserializing) { } 15 private MedianBitBinaryVectorComparer(MedianBitBinaryVectorComparer original, Cloner cloner) 20 16 : base(original, cloner) { 21 17 } … … 26 22 27 23 public static int MedianBit(BinaryVector x) { 28 var activeIndices = x.Select((b, i) => new { b, i }).Where(v => v.b).ToList(); 29 if (activeIndices.Count > 0) 30 return activeIndices[activeIndices.Count /2].i;24 var activeIndices = x.Select((b, i) => new { b, i }).Where(v => v.b).ToList(); 25 if (activeIndices.Count > 0) 26 return activeIndices[activeIndices.Count / 2].i; 31 27 else 32 28 return 0; … … 35 31 return MedianBit(x) - MedianBit(y); 36 32 } 37 } 33 } 38 34 } -
branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK/HeuristicLab.Problems.NK.csproj
r7141 r8083 107 107 <Reference Include="HeuristicLab.Common-3.3"> 108 108 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 109 </Reference>110 <Reference Include="HeuristicLab.Common.Resources-3.3">111 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath>112 109 </Reference> 113 110 <Reference Include="HeuristicLab.Core-3.3"> -
branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK/HeuristicLabProblemsNKPlugin.cs.frame
r7141 r8083 28 28 [PluginDependency("HeuristicLab.Collections", "3.3")] 29 29 [PluginDependency("HeuristicLab.Common", "3.3")] 30 [PluginDependency("HeuristicLab.Common.Resources", "3.3")]31 30 [PluginDependency("HeuristicLab.Core", "3.3")] 32 31 [PluginDependency("HeuristicLab.Data", "3.3")] -
branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK/NKLandscape.cs
r8005 r8083 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Drawing;4 3 using System.Linq; 5 4 using HeuristicLab.Common; 6 using HeuristicLab.Common.Resources;7 5 using HeuristicLab.Core; 8 6 using HeuristicLab.Data;
Note: See TracChangeset
for help on using the changeset viewer.