Customized multi-period stochastic assignment problem for social engagement and opportunistic IoT