Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/29/18 18:16:05 (6 years ago)
Author:
abeham
Message:

#2457:

  • Changed calculation of correlation length (using limit introduced Hordijk 1996)
  • Changed RuggednessCalculator (no more a HL item)
  • Added additional, information-analysis-based features for directed walks
  • Added generic DirectedWalk algorithm (as described in thesis)
  • Made OneSizeInstanceProvider parametrizable
  • Adapted program for analyzing problem instance reidentification
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2457_ExpertSystem/ProblemInstanceIdentifier/InstanceDescriptor.cs

    r15031 r16096  
    1 using System;
    2 using System.Collections.Generic;
     1using System.Collections.Generic;
    32using System.Linq;
    43using System.Text.RegularExpressions;
    5 using HeuristicLab.Analysis.FitnessLandscape;
    64using HeuristicLab.Common;
    7 using HeuristicLab.Encodings.PermutationEncoding;
    85using HeuristicLab.Problems.QuadraticAssignment;
    96
     
    1613    public string[] FeatureNames { get; set; }
    1714    public double[] FeatureValues { get; set; }
     15
     16    public double DescriptionEffort { get; set; }
    1817   
    1918    private InstanceDescriptor() { }
     
    3332      FeatureNames = (string[])other.FeatureNames.Clone();
    3433      FeatureValues = (double[]) other.FeatureValues.Clone();
     34      DescriptionEffort = other.DescriptionEffort;
    3535    }
    3636
     
    4141        Dimension = qap.Weights.Rows,
    4242        FeatureNames = new string[0],
    43         FeatureValues = new double[0]
    44       };
    45     }
    46 
    47     public static InstanceDescriptor FromPaths(QuadraticAssignmentProblem qap, List<List<Tuple<Permutation, double>>> trajectories) {
    48       var result = PermutationPathAnalysis.GetCharacteristics(trajectories);
    49 
    50       return new InstanceDescriptor() {
    51         Name = qap.Name,
    52         Cls = GetClass(qap.Name),
    53         Dimension = qap.Weights.Rows,
    54         FeatureNames = result.GetNames(),
    55         FeatureValues = result.GetValues()
     43        FeatureValues = new double[0],
     44        DescriptionEffort = 0
    5645      };
    5746    }
Note: See TracChangeset for help on using the changeset viewer.