Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/11/17 01:06:37 (8 years ago)
Author:
abeham
Message:

#2457: copied MemPR algorithm from its branch to this branch

Location:
branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/Permutation/SolutionModel/Univariate/UnivariateAbsoluteModel.cs

    r14496 r14666  
    121121
    122122    public static UnivariateAbsoluteModel CreateWithFitnessBias(IRandom random, bool maximization, IList<Encodings.PermutationEncoding.Permutation> population, IEnumerable<double> qualities, int N) {
    123       var proportions = RandomEnumerable.PrepareProportional(qualities, true, !maximization);
     123      var proportions = Util.Auxiliary.PrepareProportional(qualities, true, !maximization);
    124124      var factor = 1.0 / proportions.Sum();
    125125      var model = new double[N, N];
  • branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/Permutation/SolutionModel/Univariate/UnivariateRelativeModel.cs

    r14496 r14666  
    126126
    127127    public static UnivariateRelativeModel CreateDirectedWithFitnessBias(IRandom random, bool maximization, IList<Encodings.PermutationEncoding.Permutation> population, IEnumerable<double> qualities, int N) {
    128       var proportions = RandomEnumerable.PrepareProportional(qualities, true, !maximization);
     128      var proportions = Util.Auxiliary.PrepareProportional(qualities, true, !maximization);
    129129      var factor = 1.0 / proportions.Sum();
    130130      var model = new double[N, N];
     
    180180
    181181    public static UnivariateRelativeModel CreateUndirectedWithFitnessBias(IRandom random, bool maximization, IList<Encodings.PermutationEncoding.Permutation> population, IEnumerable<double> qualities, int N) {
    182       var proportions = RandomEnumerable.PrepareProportional(qualities, true, !maximization);
     182      var proportions = Util.Auxiliary.PrepareProportional(qualities, true, !maximization);
    183183      var factor = 1.0 / proportions.Sum();
    184184      var model = new double[N, N];
Note: See TracChangeset for help on using the changeset viewer.