This paper outlines an optimization framework which extends the familiar Tinbergen-Theil model in two ways. First, a "piecewise quadratic" replaces the standard quadratic objective function. Second, the time horizon of the optimization becomes, within the context of economic stabilization problems, endogenous to the optimization process itself. The purpose of both extensions is to escape the conceptual restrictiveness of the Tinbergen-Theil structure while preserving the practical convenience of that model for applied policy work. The paper also describes a solution algorithm incorporating these two extensions, and it presents the results of a sample computational application based on the 1957-58 recession.