Group Scheduling with general position-dependent effect