def objective_rule(model):
    """
    Maximize the sum of all rewards of activities that are 'picked' (selected)
    """
    return sum(model.PICKED[a_id] * model.reward[a_id] for a_id in model.act_id_index)