Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/04/11 18:27:23 (13 years ago)
Author:
svonolfe
Message:

Worked on VNS main loop (#1425)

File:
1 edited

Legend:

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

    r5609 r5610  
    163163
    164164      loop.MoveGeneratorParameter.Value = MoveGeneratorParameter.Value;
     165      if (loop.MoveGeneratorParameter.Value != null && loop.MoveGeneratorParameter.Value.Parameters.ContainsKey("SampleSize")) {
     166        IParameter parameter = loop.MoveGeneratorParameter.Value.Parameters["SampleSize"];
     167        if(parameter is IValueParameter)
     168          (parameter as IValueParameter).Value = SampleSizeParameter.Value;
     169      }
    165170      loop.MoveEvaluatorParameter.Value = MoveEvaluatorParameter.Value;
    166171      loop.MoveMakerParameter.Value = MoveMakerParameter.Value;
Note: See TracChangeset for help on using the changeset viewer.