On reducing the number of decision variables for dynamic optimization. (29th October 2019)