Hungarian Algorithm.
HungarianAlgorithm
01 Syntax
Microsoft.VisualBasic.Math.SignalProcessing.HungarianAlgorithm.HungarianAlgorithm
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| FindAssignments | 2 | Finds the optimal assignments for a given matrix of agents and costed tasks such that the total cost is minimized. |
03 Members
FindAssignments(
NumericMatrix)Finds the optimal assignments for a given matrix of agents and costed tasks such that the total cost is minimized.
Parameters
| Name | Type | Description |
|---|---|---|
costs | NumericMatrix | A cost matrix; the element at row i and column j represents the cost of agent i performing task j. |
Returns
A matrix of assignments; the value of element i is the column of the task assigned to agent i.
FindAssignments(
Double()())Finds the optimal assignments for a given matrix of agents and costed tasks such that the total cost is minimized.
Parameters
| Name | Type | Description |
|---|---|---|
costs | Double()() | A cost matrix; the element at row i and column j represents the cost of agent i performing task j. |
Returns
A matrix of assignments; the value of element i is the column of the task assigned to agent i.