Optimization, Operations Research, Python, Data Science, Editors Pick.
a preference order with total assignments def break_symmetry_agg(model, c): if model.C.first() == c: return 0 <= sum(model.x[:, c]) else: c_prev = model.C.prev(c) return sum(model.x[:, c]) <= sum(model.x[:, c_prev]) At last, the objective… # Total number of colors used def obj(model): return