In the "Setting" section of the Wikipedia page for the Hungarian algorithm, it says:
"We are given a nonnegative $n×n$ matrix, where the element in the i-th row and j-th column represents the cost of assigning the j-th job to the i-th worker. We have to find an assignment of the jobs to the workers that has minimum cost."
Why does the cost matrix have to be nonnegative?