Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/11/11 06:41:19 (13 years ago)
Author:
abeham
Message:

#1614

  • syncing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Evaluators/GQAPEvaluator.cs

    r6650 r6651  
    9494      DoubleArray demands = DemandsParameter.ActualValue;
    9595      DoubleArray capacities = (DoubleArray)CapacitiesParameter.ActualValue.Clone();
     96      double penalty = PenaltyParameter.ActualValue.Value;
    9697      double quality = 0;
    9798      double infeasibility = 0;
     
    109110
    110111      InfeasibilityParameter.ActualValue = new DoubleValue(infeasibility);
    111       QualityParameter.ActualValue = new DoubleValue(quality);
     112      QualityParameter.ActualValue = new DoubleValue(quality + penalty * infeasibility);
    112113      return base.Apply();
    113114    }
Note: See TracChangeset for help on using the changeset viewer.