Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/10/10 13:00:54 (14 years ago)
Author:
svonolfe
Message:

Improved performance of PotvinEncoding(#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/VRPProblemInstance.cs

    r4377 r4378  
    147147
    148148    public bool Feasible(IVRPEncoding solution) {
    149       return EvaluatorParameter.Value.Feasible(this, solution);
     149      return EvaluatorParameter.Value.Feasible(
     150        EvaluatorParameter.Value.Evaluate(
     151          this, solution));
    150152    }
    151153
    152154    public bool Feasible(Tour tour) {
    153       return EvaluatorParameter.Value.Feasible(this, tour);
     155      return EvaluatorParameter.Value.Feasible(
     156        EvaluatorParameter.Value.Evaluate(
     157        this, tour));
    154158    }
    155159
    156160    public double Evaluate(IVRPEncoding solution) {
    157       return EvaluatorParameter.Value.Evaluate(this, solution);
     161      return EvaluatorParameter.Value.Evaluate(this, solution).Quality;
    158162    }
    159163
    160164    public double Evaluate(Tour tour) {
    161       return EvaluatorParameter.Value.Evaluate(this, tour);
     165      return EvaluatorParameter.Value.Evaluate(this, tour).Quality;
    162166    }
    163167
Note: See TracChangeset for help on using the changeset viewer.