NWCM | R Documentation |
This method does not take into account the cost of transportation on any route of transportation.
NWCM(ex_matrix)
ex_matrix |
A cost matrix where last column must be the supply and last row must be the demand. Input matrix should not have any missing values (NA), otherwise function will throw an error. It should be balanced i.e. total demand must be equal to total supply. |
A List which contain the allocation matrix and the total optimized cost.
#Input matrix where last row is the Demand and last column is the Supply ex_matrix=data.frame(D1=c(6,3,4,20),E1=c(4,8,4,95),F1=c(1,7,2,35), Supply=c(50,40,60,150),row.names = c("A1","B1","C1","Demand")) NWCM(ex_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.