Multi-haul quasi network flow model for vertical alignment optimization