Heuristic and ILP-Based Optimal Solutions for the Pipelined Multiple