Assignment
Assignment
1-
(i)-To maximize revenue, we need to find the optimal mix of products A and B that
maximizes the total revenue while considering the constraints on available resources (flour
and sugar).
Let's denote:
Revenue=1000x+900yRevenue=1000x+900y
Flour constraint: 3x+3y≤213x+3y≤21 (as each packet of A requires 3 kg of flour and each
packet of B requires 3 kg of flour)
Sugar constraint: 3x+4y≤283x+4y≤28 (as each packet of A requires 3 kg of sugar and each
packet of B requires 4 kg of sugar)
Now, we need to find the intersection points of these lines to identify the feasible region.
Then we evaluate the objective function at each corner point of the feasible region to find the
optimal solution. Let's solve it step by step.
We'll start by finding the intersection points of the lines formed by the constraints.
This equation doesn't have nice integer values for intersection points. We'll leave it as it is.
Point A: (0, 7)
Point B: (7, 0)
At Point A: Revenue=1000(0)+900(7)=6300Revenue=1000(0)+900(7)=6300
At Point B: Revenue=1000(7)+900(0)=7000Revenue=1000(7)+900(0)=7000
Thus, we have found that the optimal solution lies at Point B with x=7x=7 and y=0y=0,
meaning 7 packets of type A and 0 packets of type B.
So, the best product mix to maximize revenue is to produce 7 packets of type A, resulting in a
revenue of Rs. 7000.
(ii)- This problem can be formulated as a linear programming problem to maximize the
reach while staying within the budget constraints.
Let's denote:
Reach=8000x1+5000x2+3000x3+2000x4Reach=8000x1+5000x2+3000x3+2000x4
x2≤4x2≤4
x3≤5x3≤5
x4≤4x4≤4
Let's find the feasible region by plotting the constraints, and then find the optimal solution.
To find the optimal solution, let's solve the linear programming problem step by step:
Objective function:
Reach=8000x1+5000x2+3000x3+2000x4Reach=8000x1+5000x2+3000x3+2000x4
Constraints:
x1≤3x1≤3
x2≤4x2≤4
x3≤5x3≤5
x4≤4x4≤4
We'll start by considering the maximum number of advertisements allowed for each media:
TV: 3
Newspaper: 4
Websites: 5
Radio: 4
Now, we need to check if the budget constraint allows us to reach the maximum number of
advertisements for each media.
The cost per advertisement and the maximum number of advertisements for each media are
as follows:
TV: Rs 4 lakhs per ad, maximum 3 ads
Given the budget constraint, we can calculate the maximum number of advertisements the
company can afford for each media:
Since the budget constraint limits the number of advertisements, the company will advertise
the maximum allowed number of ads for each media to maximize reach:
TV: 3 advertisements
Newspaper: 4 advertisements
Websites: 5 advertisements
Radio: 4 advertisements
So, the company decides to advertise 3 times on TV, 4 times in newspapers, 5 times on
websites, and 4 times on the radio to maximize reach while staying within the budget.
Ques -3
1.
Max Z=3x1+2x2
s.t 2x1+x2<=4,x1-x2<=2,x1,x2>=0
2x1+x2+s1=4
x1−x2+s2=2x1−x2+s2=2
x1,x2,s1,s2≥0x1,x2,s1,s2≥0
The optimal solution is x1=2x1=2, x2=0x2=0, with the objective function value Z=6Z=6.
2.
Min z=X1-2x2+2x3
s.t 3x1-x2+5x3<=6,-2x1+4x2<=12,-4x1+3x2+8x3<=10,x1,x2,x3>=0
3x1−x2+5x3+s1=6
−2x1+4x2+s2=12−2x1+4x2+s2=12
−4x1+3x2+8x3+s3=10−4x1+3x2+8x3+s3=10
x1,x2,x3,s1,s2,s3≥0x1,x2,x3,s1,s2,s3≥0
Iteration 1:
Since there are negative coefficients in the row for the objective function, we proceed with the
simplex method.
Iteration 2:
Iteration 3:
The optimal solution is x1=0x1=0, x2=2.214x2=2.214, x3=0x3=0, with the objective function value
Z=26.857Z=26.857.
Ques 4>
Max z=6x1+4x2
s.t 2x1+3x2<=30,x1+x2>=3,3x1+2x@<=24,x1,x2>=0
2x1+3x2+s1=30
x1+x2−s2=3x1+x2−s2=3
3x1+2x2+s3=243x1+2x2+s3=24
introduce artificial variables for each constraint to form an initial basic feasible solution.
We'll use a large positive number MM for the artificial variables.
Subject to:
1. 2x1+3x2+s1=302x1+3x2+s1=30
2. x1+x2−s2+a1=3x1+x2−s2+a1=3
3. 3x1+2x2+s3=243x1+2x2+s3=24
4. x1,x2,s1,s2,s3,a1≥0x1,x2,s1,s2,s3,a1≥0
Before proceeding with the iterations, let's adjust the equation for x2x2 in constraint 2:
x1+x2−s2+a1=3x1+x2−s2+a1=3
It should be:
x1+x2+a1−s2=3x1+x2+a1−s2=3
Iteration 0:
Iteration 1:
Iteration 2:
The optimal solution is x1=3x1=3, x2=24x2=24, with the objective function value Z=−48Z=−48.
Ques 5>
Min z=x1+x2
s.t 2x1+x2>=4,x1+7x2>=7,x1,x2>=0
2x1+x2+s1=4
x1+7x2+s2=7x1+7x2+s2=7
x1,x2,s1,s2,a1,a2≥0x1,x2,s1,s2,a1,a2≥0
Iteration 0:
Iteration 1:
The solution is optimal. We have x1=7x1=7, x2=3x2=3, and the minimum value of Z=−1Z=−1.
Ques 6>
1.Min z=5x1+7x2
s.t 2x1+x2>=10,3x1+7x2>=20,x1,x2>=0
To convert the given primal linear programming problem into its dual form, we'll follow
these steps:
Subject to:
2. 3x_1 + 7x_2>=20
3. x_1, x_2>= 0
Subject to:
The objective function coefficients in the primal problem become the right-hand side
constants in the dual problem, and vice versa. The direction of the inequalities also
changesSo, the dual problem is:Maximize W = 10y_1 + 20y_2
Subject to:
This is the dual form of the given primal linear programming problem.