Changeset 7373 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms
- Timestamp:
- 01/19/12 17:33:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/GRASPWithPathRelinkingMainLoop.cs
r7363 r7373 61 61 get { return (IValueLookupParameter<IOperator>)Parameters["PathRelinking"]; } 62 62 } 63 public IValueLookupParameter<IOperator> EliteSet ReplacerParameter {64 get { return (IValueLookupParameter<IOperator>)Parameters["EliteSet Replacer"]; }63 public IValueLookupParameter<IOperator> EliteSetMergerParameter { 64 get { return (IValueLookupParameter<IOperator>)Parameters["EliteSetMerger"]; } 65 65 } 66 66 public IValueLookupParameter<IOperator> AnalyzerParameter { … … 82 82 Parameters.Add(new ValueLookupParameter<IOperator>("LocalImprovement", "The operator which performs the local improvement.")); 83 83 Parameters.Add(new ValueLookupParameter<IOperator>("PathRelinking", "The operator which performs the path relinking.")); 84 Parameters.Add(new ValueLookupParameter<IOperator>("EliteSet Replacer", "The operator that replaces elements in the elite set."));84 Parameters.Add(new ValueLookupParameter<IOperator>("EliteSetMerger", "The operator that merges elements in the elite set.")); 85 85 Parameters.Add(new ValueLookupParameter<IOperator>("Analyzer", "The analyzer that is to be applied.")); 86 86 87 87 var variableCreator1 = new VariableCreator(); 88 variableCreator1.Name = "Iterations = 0"; 88 89 variableCreator1.CollectedValues.Add(new ValueParameter<IntValue>("Iterations", new IntValue(0))); 89 90 90 91 var variableCreator2 = new VariableCreator(); 92 variableCreator2.Name = "ActualEliteSetSize = 0"; 91 93 variableCreator2.CollectedValues.Add(new ValueParameter<IntValue>("ActualEliteSetSize", new IntValue(0))); 92 variableCreator2.Name = "ActualEliteSetSize = 0";93 94 94 95 var subScopesCounter1 = new SubScopesCounter(); … … 119 120 120 121 var solutionsCreator = new SolutionsCreator(); 122 solutionsCreator.ParallelParameter.Value = new BoolValue(false); 121 123 solutionsCreator.EvaluatorParameter.ActualName = EvaluatorParameter.Name; 122 124 solutionsCreator.SolutionCreatorParameter.ActualName = SolutionCreatorParameter.Name; … … 149 151 childrenCreator.ParentsPerChild = new IntValue(2); 150 152 153 var ssp3 = new SubScopesProcessor(); 154 151 155 var placeholder2 = new Placeholder(); 152 156 placeholder2.Name = "(PathRelinking)"; … … 156 160 subScopesRemover.RemoveAllSubScopes = true; 157 161 158 var ssp 3= new SubScopesProcessor();162 var ssp4 = new SubScopesProcessor(); 159 163 160 164 var placeholder3 = new Placeholder(); … … 163 167 164 168 var placeholder4 = new Placeholder(); 165 placeholder4.Name = "( Replacer)";166 placeholder4.OperatorParameter.ActualName = EliteSet ReplacerParameter.Name;169 placeholder4.Name = "(EliteSetMerger)"; 170 placeholder4.OperatorParameter.ActualName = EliteSetMergerParameter.Name; 167 171 168 172 var counter = new IntCounter(); … … 203 207 conditionalBranch2.TrueBranch = ssp2; 204 208 conditionalBranch2.FalseBranch = null; 205 conditionalBranch2.Successor = ssp 3;209 conditionalBranch2.Successor = ssp4; 206 210 ssp2.Operators.Add(eo2); 207 211 ssp2.Operators.Add(placeholder1); 208 ssp2.Successor = null;212 ssp2.Successor = childrenCreator; 209 213 eo2.Successor = null; 210 placeholder1.Successor = childrenCreator; 211 childrenCreator.Successor = placeholder2; 214 placeholder1.Successor = null; 215 childrenCreator.Successor = ssp3; 216 ssp3.Operators.Add(placeholder2); 217 ssp3.Successor = null; 212 218 placeholder2.Successor = subScopesRemover; 213 219 subScopesRemover.Successor = null; 214 ssp 3.Operators.Add(placeholder3);215 ssp 3.Successor = null;220 ssp4.Operators.Add(placeholder3); 221 ssp4.Successor = null; 216 222 placeholder4.Successor = counter; 217 223 counter.Successor = analyzer1;
Note: See TracChangeset
for help on using the changeset viewer.