Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/04/11 17:23:40 (14 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/ShakingOperator.cs

    r5603 r5609  
    6565      IOperator successor = null;
    6666
    67       if (index >= operators.Count || index < 0) {
     67      if (index >= operators.Count - 1) {
    6868        ContinueParameter.ActualValue = new BoolValue(false);
    6969      } else {
    7070        ContinueParameter.ActualValue = new BoolValue(true);
     71      }
     72
     73      if (index >= 0 && index < operators.Count) {
    7174        successor = operators[index].Value;
    7275      }
Note: See TracChangeset for help on using the changeset viewer.