Question: Q 4 . Consider the following optimization problem that is coded in CBC . from pulp import * Factory = [ A , B ]
Q Consider the following optimization problem that is coded in CBC
from pulp import
Factory
MMMM
Prod ::
Sales M: :::
cost
B: M:M:M:M:
prob LpProblemFinal Exam", LpMinimize
LpVariable.dicts xFactory Mall lowBound
upBound None, cat const. LpInteger
prob pSumCost for in Factory for in
Mal
for in Factory:
prob t IpSumXfs for in Mall Prodf
for in Mall:
prob for in FactorySaless
We are trying to model the sales distribution channel of a supply chain. There are two factories and four Malls MMMM On the left you can see the Python code of the optimization problem for CBC library. Please solve the following questions.
a Write the mathematical model of the first for loop that is written in bold and italic.
b Assume factory A can serve only and M Write the necessary mathematical equation for this constraint.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
