public override void StartingInitialize() { base.StartingInitialize(); List<Node> consumers = (from node in Nodes where node.Type == Node.NodeType.Consumer select node).ToList(); NearestNeighbourChain nnc = new NearestNeighbourChain(consumers, CapacityLimit); nnc.IterateToStop(); nncClusters = nnc.Clusters; }
public static void StartNearestNeighbourChainAlgorithm(int capacityLimit) { NearestNeighbourChain nearestNeighbourChain = new NearestNeighbourChain(Nodes, capacityLimit); SetAlgorithm(nearestNeighbourChain); }