Пример #1
0
 protected abstract void GoToNeighbour(Site site);
Пример #2
0
 protected override void GoToNeighbour(Site site)
 {
     Clusters = new List<Cluster>();
     Clusters.AddRange((site as SiteClusteringVrp).Clusters);
 }
        protected override void GoToNeighbour(Site site)
        {
            SiteClusteringCvrpp siteClusteringCvrpp = site as SiteClusteringCvrpp;

            Clusters = new List<Cluster>();
            Clusters.AddRange(siteClusteringCvrpp.Clusters);

            kilometerCost = siteClusteringCvrpp.kilometerCost;
            PenaltyCluster = new Cluster(siteClusteringCvrpp.PenaltyCluster);

            FormAllClusters();
        }
Пример #4
0
 protected override void GoToNeighbour(Site site)
 {
     SiteVrpTsp siteVrpTsp = site as SiteVrpTsp;
     nodesSequence = siteVrpTsp.NodesSequence.Clone() as int[];
 }