With a hierarchical portfolio, the optimization can be done within each subportfolio and across the collections of portfolios at any level in the hierarchy.
The time horizon of the optimization can be different for each level of portfolio and subportfolio.