def objective_rule(model):
    """
    Maximize the sum of all rewards of activities that are 'picked' (selected)
    """
    return sum(model.CHILD_ALLOCATED[cr, ca] * model.child_score[ca] for (cr, ca) in model.cr_ca_arcs)