# defining constraints for c in customers: model += lpSum([flows.get((w, c)) for w in warehouse]) == 1 model += lpSum([open_w[w] for w in warehouse]) == 3 for w in warehouse: for c in customers: model += open_w[w] >= flows.get((w,c))
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter