Forum Discussion
Patrick2788
Dec 15, 2023Silver Contributor
Solving 'The Assignment Problem' with Lambda
The Setup The problem is simple. Given a 'cost matrix', assign tasks to workers to minimize total cost needed to complete the tasks. Workers may not perform more than 1 task. Assignment p...
- Dec 19, 2023
In attached file PQ Assignment2 generates the required rows only
Though, it's slower than djclements initial approach (PQ Assignment1)
Patrick2788
Dec 15, 2023Silver Contributor
This is excellent. I like the way you generated the permutations. It's similar to a method that was discussed in the 0-1 Knapsack discussion. It's short and very elegant.
I folded your formula into 'SolveX' and it handled the larger cost matrix with ease!
I folded your formula into 'SolveX' and it handled the larger cost matrix with ease!
Bhavya250203
Dec 16, 2023Copper Contributor
Patrick2788 Thank you!! Glad to hear it worked on larger matrix.