def objective_cost_minimization(model):
    m = model.m

    def obj_rule(m):
        return sum(model.get_option(y + '.weight') *
                   sum(m.cost[y, x, 'monetary'] for x in m.x)
                   for y in m.y)

    m.obj = po.Objective(sense=po.minimize, rule=obj_rule)
    m.obj.domain = po.NonNegativeReals
return copy of dict
dataset/ETHPy150Open calliope-project/calliope/calliope/constraints/objective.py/objective_cost_minimization--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/zope/zope/interface/common/mapping.py/IClonableMapping.copy