Optimization, Python, Linear Optimization, Operations Research.
all data structures: import sys import numpy as np d = {1:80, 2:270, 3:250, 4:160, 5:180} # customer demand M = {1:500, 2:500, 3:500} # factory capacity I = [1,2,3,4,5] # Customers J = [1,2,3] # Factories cost = {(1,1):4, (1,2):6, (1,3):9, (2,1):5, (2,2):4, (2,3):7, (3,1):6, (3,2):3, (3,3):3,