The Optimal Investment Ratio for an Economy with Changing Depreciation of Capital, Discounting of Future Consumption, and Exogenous Technical Progress