How to choose one value for each row and column in a matrix so that the sum of values in the matrix is minimized
Mostra commenti meno recenti
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
1 Commento
Rachel
il 15 Set 2014
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Signal Processing Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!