Network model for an advertising exchange system using networkx and Gurobi Optimizer