Cluster3 |
Top Previous Next |
This function solves the problem of clustering customers, so maximum distance within each cluster between center and customers is minimized.
Cost is defined through a matrix, which can be calculated by TCalc.Matrix, TCalc.MatrixDyn, TNetwork.Matrix, TNetwork.MatrixDyn or on your own.
You can also call the function with NCluster = 1.
The function do not return any values, but populates these properties:
•Property Assignment holds a number in the range 0 .. NCluster-1 about the cluster ID. •Property Center holds information about which customer is the center of the cluster.
Sample calculation time:
Syntax: Cluster3(NCluster: integer);
|