Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/17/11 14:35:58 (14 years ago)
Author:
svonolfe
Message:

Implemented review comments of swagner (#1425)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VNS/HeuristicLab.Algorithms.VariableNeighborhoodSearch/3.3/VariableNeighborhoodSearch.cs

    r5642 r5735  
    3939      get { return (ValueParameter<BoolValue>)Parameters["SetSeedRandomly"]; }
    4040    }
    41     private ValueParameter<ILocalImprovement> LocalImprovementParameter {
    42       get { return (ValueParameter<ILocalImprovement>)Parameters["LocalImprovement"]; }
     41    private ValueParameter<ILocalImprovementOperator> LocalImprovementParameter {
     42      get { return (ValueParameter<ILocalImprovementOperator>)Parameters["LocalImprovement"]; }
    4343    }
    4444    private ValueParameter<IShakingOperator> ShakingParameter {
     
    9090      Parameters.Add(new ValueParameter<IntValue>("Seed", "The random seed used to initialize the new pseudo random number generator.", new IntValue(0)));
    9191      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()));
    9393      Parameters.Add(new ValueParameter<IShakingOperator>("Shaking", "The shaking operation"));
    9494      Parameters.Add(new ValueParameter<IntValue>("MaximumIterations", "The maximum number of generations which should be processed.", new IntValue(1000)));
     
    215215      if (Problem != null) {
    216216        foreach (IIterationBasedOperator op in Problem.Operators.OfType<IIterationBasedOperator>()) {
    217           op.IterationsParameter.ActualName = "OuterIterations";
     217          op.IterationsParameter.ActualName = "Iterations";
    218218          op.MaximumIterationsParameter.ActualName = "MaximumIterations";
    219219        }
     
    267267    }
    268268    private void UpdateLocalImprovementOperator() {
    269       LocalImprovementParameter.Value.Parameterize(Problem);
     269      LocalImprovementParameter.Value.OnProblemChanged(Problem);
    270270    }
    271271    private void UpdateAnalyzers() {
Note: See TracChangeset for help on using the changeset viewer.