#region License Information
/* HeuristicLab
* Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
*
* This file is part of HeuristicLab.
*
* HeuristicLab is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* HeuristicLab is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with HeuristicLab. If not, see .
*/
#endregion
using System.Collections.Generic;
using HeuristicLab.Core;
using HeuristicLab.Data;
using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
using HeuristicLab.Parameters;
namespace HeuristicLab.Problems.TravelingSalesman {
///
/// A class for storing details of population diversity analysis results.
///
[Item("TSPPopulationDiversityAnalysisDetails", "A class for storing details of population diversity analysis results.")]
[StorableClass]
public class TSPPopulationDiversityAnalysisDetails : ParameterizedNamedItem {
public static string AverageSimilaritiesKey = "AverageSimilarities";
public ValueParameter> AverageSimilaritiesParameter {
get { return (ValueParameter>)Parameters[AverageSimilaritiesKey]; }
}
public ItemList AverageSimilarities {
get { return AverageSimilaritiesParameter.Value; }
}
public static string AverageMaximumSimilaritiesKey = "AverageMaximumSimilarities";
public ValueParameter> AverageMaximumSimilaritiesParameter {
get { return (ValueParameter>)Parameters[AverageMaximumSimilaritiesKey]; }
}
public ItemList AverageMaximumSimilarities {
get { return AverageMaximumSimilaritiesParameter.Value; }
}
public static string SimilaritiesKey = "Similarities";
public ValueParameter> SimilaritiesParameter {
get { return (ValueParameter>)Parameters[SimilaritiesKey]; }
}
public ItemList Similarities {
get { return SimilaritiesParameter.Value; }
}
public static string MaximumSimilaritiesKey = "MaximumSimilarities";
public ValueParameter> MaximumSimilaritiesParameter {
get { return (ValueParameter>)Parameters[MaximumSimilaritiesKey]; }
}
public ItemList MaximumSimilarities {
get { return MaximumSimilaritiesParameter.Value; }
}
public TSPPopulationDiversityAnalysisDetails()
: base() {
Parameters.Add(new ValueParameter>(AverageSimilaritiesKey, "Average similarities of the solutions of the population.", new ItemList()));
Parameters.Add(new ValueParameter>(AverageMaximumSimilaritiesKey, "Average maximum similarities of the solutions of the population.", new ItemList()));
Parameters.Add(new ValueParameter>(SimilaritiesKey, "Similarities of the solutions of the population.", new ItemList()));
Parameters.Add(new ValueParameter>(MaximumSimilaritiesKey, "Maximum similarities of the solutions of the population.", new ItemList()));
}
}
}