Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11841


Ignore:
Timestamp:
01/30/15 15:04:20 (10 years ago)
Author:
ascheibe
Message:

#2267 improved chart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VOSGA/HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm/WeightedParentsDiversityComparator.cs

    r11824 r11841  
    7979    private const string divDataRowName = "DiversitySuccessCount";
    8080    private const string qualityDataRowName = "QualitySuccessCount";
     81    private const string divFailDataRowName = "DiversityFailCount";
     82    private const string qualityFailDataRowName = "QualityFailCount";
    8183    private const string overallCountDataRowName = "OverallCount";
    8284    private const string successCountDataRowName = "SuccessCount";
     
    8890    [Storable]
    8991    private int qualityCount;
     92    [Storable]
     93    private int badQualityCount;
     94    [Storable]
     95    private int badDivCount;
    9096    [Storable]
    9197    private int overallCount;
     
    103109      overallCount = original.overallCount;
    104110      successCount = original.successCount;
     111      badDivCount = original.badDivCount;
     112      badQualityCount = original.badQualityCount;
    105113    }
    106114    public WeightedParentsDiversityComparator()
     
    171179        spDetailsTable.Rows.Add(new DataRow(overallCountDataRowName));
    172180        spDetailsTable.Rows.Add(new DataRow(successCountDataRowName));
     181        spDetailsTable.Rows.Add(new DataRow(divFailDataRowName));
     182        spDetailsTable.Rows.Add(new DataRow(qualityFailDataRowName));
    173183        ResultsParameter.ActualValue.Add(new Result(spDetailsParameterName, spDetailsTable));
    174184      }
     
    183193        spDetailsTable.Rows[successCountDataRowName].Values.Add(successCount);
    184194        successCount = 0;
     195        spDetailsTable.Rows[qualityFailDataRowName].Values.Add(badQualityCount);
     196        badQualityCount = 0;
     197        spDetailsTable.Rows[divFailDataRowName].Values.Add(badDivCount);
     198        badDivCount = 0;
    185199        currentGeneration = GenerationsParameter.ActualValue.Value;
    186200      }
     
    212226      if (result) {
    213227        qualityCount++;
     228      } else {
     229        badQualityCount++;
    214230      }
    215231      if (resultDiversity) {
    216232        divCount++;
     233      } else {
     234        badDivCount++;
    217235      }
    218236      if (result && resultDiversity) {
Note: See TracChangeset for help on using the changeset viewer.