In this paper, we propose algorithms for cost minimization of physical wires that are used to connect electronic devices in the vehicle. The wiring cost is one of the most important drivers of electrical architecture selection. Our algorithms perform wire routing from a source device to a destination device through harnesses, by selecting the optimized wire size. In addition, we provide optimized splice allocation with limited constraints. Based on the algorithms, we develop a tool which is integrated into an off-the-shelf optimization and workflow system-level design tool. The algorithms and the tool provide an efficient, flexible, scalable, and maintainable approach for cost analysis and architecture selection.