Simultaneous variable and feature group selection in heterogeneous learning: optimization and applications