Changeset 17264 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.PTSP/3.3/Improvers/PTSPEstimatedInsertionLocalImprovement.cs
- Timestamp:
- 09/19/19 20:35:46 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.PTSP/3.3/Improvers/PTSPEstimatedInsertionLocalImprovement.cs
r17260 r17264 42 42 [Item("pTSP Estimated Insertion Local Improvement", "An operator that improves probabilistic traveling salesman solutions. The operator tries to improve the probabilistic traveling salesman solution by swapping two randomly chosen edges for a certain number of times.")] 43 43 [StorableType("B2D60579-A97D-4E44-B11C-61CDA6EBEBA7")] 44 public sealed class PTSPEstimatedInsertionLocalImprovement : SingleSuccessorOperator, IEstimatedPTSPOperator, I LocalImprovementOperator {44 public sealed class PTSPEstimatedInsertionLocalImprovement : SingleSuccessorOperator, IEstimatedPTSPOperator, IPermutationLocalImprovementOperator { 45 45 46 46 public ILookupParameter<IntValue> LocalIterationsParameter { … … 76 76 } 77 77 78 public ILookupParameter<ReadOnlyItemList<BoolArray>> Realization sParameter {79 get { return (ILookupParameter<ReadOnlyItemList<BoolArray>>)Parameters["Realization s"]; }78 public ILookupParameter<ReadOnlyItemList<BoolArray>> RealizationDataParameter { 79 get { return (ILookupParameter<ReadOnlyItemList<BoolArray>>)Parameters["RealizationData"]; } 80 80 } 81 81 … … 93 93 Parameters.Add(new LookupParameter<BoolValue>("Maximization", "True if the problem should be maximized or minimized.")); 94 94 Parameters.Add(new LookupParameter<IProbabilisticTSPData>("PTSP Data", "The main parameters of the pTSP.")); 95 Parameters.Add(new LookupParameter< ItemList<BoolArray>>("Realizations", "The list of samples drawn from all possible stochastic instances."));95 Parameters.Add(new LookupParameter<ReadOnlyItemList<BoolArray>>("RealizationData", "The list of samples drawn from all possible stochastic instances.")); 96 96 } 97 97 … … 131 131 var evaluations = EvaluatedSolutionsParameter.ActualValue; 132 132 var data = ProbabilisticTSPDataParameter.ActualValue; 133 var realizations = Realization sParameter.ActualValue;133 var realizations = RealizationDataParameter.ActualValue; 134 134 if (localIterations == null) { 135 135 localIterations = new IntValue(0);
Note: See TracChangeset
for help on using the changeset viewer.