In this paper the layout cost is calculated by taking the distance matrix and flow matrix. The distance matrix is
obtained by converting the layout diagram into STEP File format which is taken as input to java program and output
is obtained as distance matrix.