Changeset 5735 for branches/VNS/HeuristicLab.Algorithms.VariableNeighborhoodSearch/3.3/VariableNeighborhoodSearch.cs
- Timestamp:
- 03/17/11 14:35:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VNS/HeuristicLab.Algorithms.VariableNeighborhoodSearch/3.3/VariableNeighborhoodSearch.cs
r5642 r5735 39 39 get { return (ValueParameter<BoolValue>)Parameters["SetSeedRandomly"]; } 40 40 } 41 private ValueParameter<ILocalImprovement > LocalImprovementParameter {42 get { return (ValueParameter<ILocalImprovement >)Parameters["LocalImprovement"]; }41 private ValueParameter<ILocalImprovementOperator> LocalImprovementParameter { 42 get { return (ValueParameter<ILocalImprovementOperator>)Parameters["LocalImprovement"]; } 43 43 } 44 44 private ValueParameter<IShakingOperator> ShakingParameter { … … 90 90 Parameters.Add(new ValueParameter<IntValue>("Seed", "The random seed used to initialize the new pseudo random number generator.", new IntValue(0))); 91 91 Parameters.Add(new ValueParameter<BoolValue>("SetSeedRandomly", "True if the random seed should be set to a random value, otherwise false.", new BoolValue(true))); 92 Parameters.Add(new ValueParameter<ILocalImprovement >("LocalImprovement", "The local improvement operation", new LocalSearchImprovement()));92 Parameters.Add(new ValueParameter<ILocalImprovementOperator>("LocalImprovement", "The local improvement operation", new LocalSearchImprovementOperator())); 93 93 Parameters.Add(new ValueParameter<IShakingOperator>("Shaking", "The shaking operation")); 94 94 Parameters.Add(new ValueParameter<IntValue>("MaximumIterations", "The maximum number of generations which should be processed.", new IntValue(1000))); … … 215 215 if (Problem != null) { 216 216 foreach (IIterationBasedOperator op in Problem.Operators.OfType<IIterationBasedOperator>()) { 217 op.IterationsParameter.ActualName = " OuterIterations";217 op.IterationsParameter.ActualName = "Iterations"; 218 218 op.MaximumIterationsParameter.ActualName = "MaximumIterations"; 219 219 } … … 267 267 } 268 268 private void UpdateLocalImprovementOperator() { 269 LocalImprovementParameter.Value. Parameterize(Problem);269 LocalImprovementParameter.Value.OnProblemChanged(Problem); 270 270 } 271 271 private void UpdateAnalyzers() {
Note: See TracChangeset
for help on using the changeset viewer.