Find the minimum sum of errors for every permutation
3 views (last 30 days)
Show older comments
I have an (m x n) matrix that is filled with error percentages.
Example:
error = [ 2.1 2.3 1.9 2.0;
1.8 1.9 2.3 2.1;
2.0 1.9 1.8 2.3];
Each row/column can only contain 1 final error percentage.
I need the best permutation that minimizes the sum of all of the chosen errors.
The actual matrix is on the scale of about 100x100 so writing nested for loops and if statements just doesn't seem viable for each row/column.
Is there a more efficient way of calculating the sums of every permutation?
I don't need the whole code written out, just a general approach.
Thanks!
4 Comments
the cyclist
on 19 Oct 2022
Understood that you want an efficient algorithm. I was just trying to clarify the problem you are trying to solve.
Accepted Answer
Steven Lord
on 19 Oct 2022
3 Comments
Torsten
on 19 Oct 2022
Can't find anything similar in file exchange either.
Strange. My google search gives many, many matches:
linear assignment problem & matlab
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!