Heterogeneous investment in spatial public goods game with mixed strategy