TOMLAB OPTIMIZATION ENVIRONMENT: lp2tp

   

lp2tp

Purpose

For converting linear programming formulation to transportation LP formulation

Syntax

   [s, d, C] = lp2tp(A,b,c);

Description

Convert Transportation LP to transportation formulation defining supply, demand and Cost (distance) matrix

   m = M + N; n = M * N

Input Parameters

   A          Node-arc incidence matrix. A is m x n.
   b          Supply/demand vector. Length m.
   c          Cost vector. Length n.

Output Parameters

         
   s          Supply, M by 1
   d          Demand, N by 1
   C          Cost matrix, M by N

  tomSolve   tp2lp