Changeset 6651 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Evaluators
- Timestamp:
- 08/11/11 06:41:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Evaluators/GQAPEvaluator.cs
r6650 r6651 94 94 DoubleArray demands = DemandsParameter.ActualValue; 95 95 DoubleArray capacities = (DoubleArray)CapacitiesParameter.ActualValue.Clone(); 96 double penalty = PenaltyParameter.ActualValue.Value; 96 97 double quality = 0; 97 98 double infeasibility = 0; … … 109 110 110 111 InfeasibilityParameter.ActualValue = new DoubleValue(infeasibility); 111 QualityParameter.ActualValue = new DoubleValue(quality );112 QualityParameter.ActualValue = new DoubleValue(quality + penalty * infeasibility); 112 113 return base.Apply(); 113 114 }
Note: See TracChangeset
for help on using the changeset viewer.