Changeset 15572 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/Crossovers/GQAPPathRelinking.cs
- Timestamp:
- 01/03/18 00:28:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/Crossovers/GQAPPathRelinking.cs
r15558 r15572 79 79 var sFit = problemInstance.ToSingleObjective(sourceEval); 80 80 var tFit = problemInstance.ToSingleObjective(targetEval); 81 GQAPSolution pi_star = sFit < tFit ? new GQAPSolution(source, sourceEval) : new GQAPSolution(target, targetEval); // line 1 of Algorithm 4 81 GQAPSolution pi_star = sFit < tFit 82 ? new GQAPSolution((IntegerVector)source.Clone(), (Evaluation)sourceEval.Clone()) 83 : new GQAPSolution((IntegerVector)target.Clone(), (Evaluation)targetEval.Clone()); // line 1 of Algorithm 4 82 84 double pi_star_Fit = problemInstance.ToSingleObjective(pi_star.Evaluation); // line 2 of Algorithm 4 83 85
Note: See TracChangeset
for help on using the changeset viewer.