A parallel structure exploiting nonlinear programming algorithm for multiperiod dynamic optimization. (4th August 2017)