Cascaded Noncommensurate Transmission-line Networks as Optimization Problems