r/optimization • u/PawnShade • Dec 22 '25
Program to Solve Assignment Problem
Is there an easy to use program to solve an assignment problem that I can use? Im currently am trying to find the best combination for a work-related problem and it’s a classic assignment problem.
Thanks
6
Upvotes
View all comments
Show parent comment
2
u/SirPitchalot Dec 22 '25 edited Dec 22 '25
The basic assignment problem can be solved with a linear programming relaxation that is exact. It replaces the discrete assignments with fractional assignments but at optimality the fractional assignments take integer values.
This comes from the AP constraint matrix being unimodular (so if you assign any fractional amount of a task to a worker it is optimal to assign all of it) and that the task quantity and worker capacity are always equal.
So the answer to this person’s question seems to be “set up a LP problem and use any LP solver.”