TOMLAB OPTIMIZATION ENVIRONMENT: tp2lp

   

tp2lp

Purpose

For converting transportation LP to linear programming LP formulation

Syntax

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

Description

Convert Transportation LP to Linear Programming formulation using supply, demand and distance matrix

   m = M + N; n = M * N

Input Parameters

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

Output Parameters

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

  lp2tp   tp2np