How to choose one value for each row and column in a matrix so that the sum of values in the matrix is minimized
Show older comments
I am trying to develop an algorithim to automate a site selection process. Each column of the matrix represents a site of interest and each row represents a monitor collecting data within an acceptable buffer distance from each site and the numeric value represents the distance from the monitor to the site of interest. Since I want to obtain the largest data set possible I first want to maximize the number of sites with monitoring data and then minimize the total distance, or the sum of the selected numbers. Essentially only one value can be selected for each row and column in the matrix. The algorithim should select the starred values in the examples below.
d1 =
0.00000 22.61630 12.02885 0.00000 *14.99793*
0.00000 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 *7.40015* 0.00000
0.00000 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 *28.56141* 10.98434 0.00000
d1 =
0.00000 22.61630 14.9980 *12.3234* 0.00000
*23.0000* 0.00000 0.00000 21 0.00000
0.00000 0.00000 0.00000 0.00000 *7.40032*
0.00000 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000 10.98434
Accepted Answer
More Answers (0)
Categories
Find more on Stability Analysis 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!