Mathematical programming representation for approximate model of flow lines