- Timestamp:
- 03/19/15 17:16:39 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PTSP/HeuristicLab.Problems.PTSP/3.3/EstimatedPTSP.cs
r12219 r12228 56 56 Operators.Add(new PTSPEstimatedInversionMovePathEvaluator()); 57 57 Operators.Add(new PTSPEstimatedInsertionEvaluator()); 58 Operators.Add(new PTSPExhaustiveInversionLocalImprovement()); 59 Operators.Add(new PTSPExhaustiveInsertionLocalImprovement()); 58 60 Encoding.ConfigureOperators(Operators.OfType<IOperator>()); 59 61 } … … 68 70 realizations.Add(new ItemList<IntValue>()); 69 71 for (int j = 0; j < data.Dimension; j++) { 70 if (ProbabilityMatrix[j] .Value> r.NextDouble()) {72 if (ProbabilityMatrix[j] > r.NextDouble()) { 71 73 realizations.ElementAt(i).Add(new IntValue(1)); 72 74 } else { … … 76 78 77 79 } 80 78 81 foreach (var op in Operators.OfType<PTSPPathMoveEvaluator>()) { 82 op.RealizationsParameter.Value = realizations; 83 } 84 foreach (var op in Operators.OfType<PTSPExhaustiveInversionLocalImprovement>()) { 79 85 op.RealizationsParameter.Value = realizations; 80 86 }
Note: See TracChangeset
for help on using the changeset viewer.