Optimization, Operations Research, Python, Data Science, Editors Pick.
constraints and see what works better with your available solver. In some experiments I performed, including a preference order using total nodes assigned to a given color has been worse than ignoring it. Possibly due to the solver’s native symmetry-breaking strategies. # Break symmetry by setting