multi-level optimization