Multiscale composite optimization with design guidelines