Whether it is the transportation problem with balanced production and marketing or the transportation problem with unbalanced production and marketing, the transportation problem with balanced production and marketing can be obtained by transformation. The transportation problem is usually solved by directly applying the transportation simplex method on the table of the freight rate table to find the optimal solution. The selected initial transportation scheme needs to adjust the input variables for many times to get the optimal transportation scheme, resulting in a relatively large amount of calculation of the mathematical model. Using the powerful computing power of MATLAB software, write the corresponding program, and realize the solution of the optimal scheme of transportation problem through running the program.