Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/10 17:40:41 (14 years ago)
Author:
svonolfe
Message:

Added some Potvin operators (RBX, SBX, LSM) (#1039)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/VRPOperator.cs

    r4179 r4186  
    137137    }
    138138
     139    protected bool Feasible(IVRPEncoding solution) {
     140      bool feasible = true;
     141
     142      foreach (Tour tour in solution.Tours) {
     143        if (!Feasible(tour)) {
     144          feasible = false;
     145          break;
     146        }
     147      }
     148
     149      return feasible;
     150    }
     151
    139152    protected double GetLength(Tour tour) {
    140153      return tour.GetLength(
Note: See TracChangeset for help on using the changeset viewer.