Changeset 8720 for trunk/sources/HeuristicLab.Problems.Knapsack
- Timestamp:
- 10/02/12 18:59:15 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Knapsack/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Knapsack/3.3/HeuristicLab.Problems.Knapsack-3.3.csproj
r8600 r8720 129 129 </ItemGroup> 130 130 <ItemGroup> 131 <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj"> 132 <Project>{887425B4-4348-49ED-A457-B7D2C26DDBF9}</Project> 133 <Name>HeuristicLab.Analysis-3.3</Name> 134 </ProjectReference> 131 135 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj"> 132 136 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project> … … 216 220 --> 217 221 <PropertyGroup> 218 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)222 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 219 223 set ProjectDir=$(ProjectDir) 220 224 set SolutionDir=$(SolutionDir) … … 223 227 call PreBuildEvent.cmd 224 228 </PreBuildEvent> 225 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">229 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 226 230 export ProjectDir=$(ProjectDir) 227 231 export SolutionDir=$(SolutionDir) -
trunk/sources/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs
r8334 r8720 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Analysis; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 80 81 private BestKnapsackSolutionAnalyzer BestKnapsackSolutionAnalyzer { 81 82 get { return Operators.OfType<BestKnapsackSolutionAnalyzer>().FirstOrDefault(); } 83 } 84 private SingleObjectivePopulationDiversityAnalyzer SingleObjectivePopulationDiversityAnalyzer { 85 get { return Operators.OfType<SingleObjectivePopulationDiversityAnalyzer>().FirstOrDefault(); } 82 86 } 83 87 #endregion … … 228 232 } 229 233 private void ParameterizeAnalyzer() { 230 BestKnapsackSolutionAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 231 BestKnapsackSolutionAnalyzer.MaximizationParameter.Hidden = true; 232 BestKnapsackSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name; 233 BestKnapsackSolutionAnalyzer.BestKnownQualityParameter.Hidden = true; 234 BestKnapsackSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 235 BestKnapsackSolutionAnalyzer.BestKnownSolutionParameter.Hidden = true; 236 BestKnapsackSolutionAnalyzer.BinaryVectorParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 237 BestKnapsackSolutionAnalyzer.BinaryVectorParameter.Hidden = true; 238 BestKnapsackSolutionAnalyzer.KnapsackCapacityParameter.ActualName = KnapsackCapacityParameter.Name; 239 BestKnapsackSolutionAnalyzer.KnapsackCapacityParameter.Hidden = true; 240 BestKnapsackSolutionAnalyzer.WeightsParameter.ActualName = WeightsParameter.Name; 241 BestKnapsackSolutionAnalyzer.WeightsParameter.Hidden = true; 242 BestKnapsackSolutionAnalyzer.ValuesParameter.ActualName = ValuesParameter.Name; 243 BestKnapsackSolutionAnalyzer.ValuesParameter.Hidden = true; 234 if (BestKnapsackSolutionAnalyzer != null) { 235 BestKnapsackSolutionAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 236 BestKnapsackSolutionAnalyzer.MaximizationParameter.Hidden = true; 237 BestKnapsackSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name; 238 BestKnapsackSolutionAnalyzer.BestKnownQualityParameter.Hidden = true; 239 BestKnapsackSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 240 BestKnapsackSolutionAnalyzer.BestKnownSolutionParameter.Hidden = true; 241 BestKnapsackSolutionAnalyzer.BinaryVectorParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 242 BestKnapsackSolutionAnalyzer.BinaryVectorParameter.Hidden = true; 243 BestKnapsackSolutionAnalyzer.KnapsackCapacityParameter.ActualName = KnapsackCapacityParameter.Name; 244 BestKnapsackSolutionAnalyzer.KnapsackCapacityParameter.Hidden = true; 245 BestKnapsackSolutionAnalyzer.WeightsParameter.ActualName = WeightsParameter.Name; 246 BestKnapsackSolutionAnalyzer.WeightsParameter.Hidden = true; 247 BestKnapsackSolutionAnalyzer.ValuesParameter.ActualName = ValuesParameter.Name; 248 BestKnapsackSolutionAnalyzer.ValuesParameter.Hidden = true; 249 } 250 251 if (SingleObjectivePopulationDiversityAnalyzer != null) { 252 SingleObjectivePopulationDiversityAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 253 SingleObjectivePopulationDiversityAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 254 SingleObjectivePopulationDiversityAnalyzer.ResultsParameter.ActualName = "Results"; 255 SingleObjectivePopulationDiversityAnalyzer.SimilarityCalculator = Operators.OfType<KnapsackSimilarityCalculator>().SingleOrDefault(); 256 } 244 257 } 245 258 private void InitializeOperators() { … … 250 263 251 264 Operators.Add(new BestKnapsackSolutionAnalyzer()); 265 Operators.Add(new SingleObjectivePopulationDiversityAnalyzer()); 252 266 ParameterizeAnalyzer(); 253 267 foreach (IBinaryVectorOperator op in ApplicationManager.Manager.GetInstances<IBinaryVectorOperator>()) { -
trunk/sources/HeuristicLab.Problems.Knapsack/3.3/Plugin.cs.frame
r8334 r8720 28 28 [Plugin("HeuristicLab.Problems.Knapsack", "3.3.7.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Problems.Knapsack-3.3.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] 30 31 [PluginDependency("HeuristicLab.Collections", "3.3")] 31 32 [PluginDependency("HeuristicLab.Common", "3.3")]
Note: See TracChangeset
for help on using the changeset viewer.