Operations Research DMBA205
Operations Research DMBA205
Roll No-2314508841
1. Ans :-
Operations Research (OR) is a discipline that deals with the application of advanced analytical methods to
help make better decisions. It uses techniques from mathematical sciences, economics, and other
analytical disciplines to solve complex problems in various industries, including logistics, manufacturing,
finance, and services.
1. Problem Definition
2. Data Collection
3. Model Formulation
4. Model Solution
6. Implementation
Apply the solution obtained from the model to the real-world problem.
Develop an implementation plan considering practical constraints and resources.
Monitor the implementation to ensure it achieves the desired results.
2. Ans :-
To solve the given linear programming problem using its dual form, we first need to formulate the dual of
the problem.
Primal Problem:
Minimize Z=3x1+4x2
Subject to:
4x1+x2 ≥ 30
−x1−x2 ≤ −18
x1+3x2 ≥ 28
x1,x2≥0
Dual Problem:
The dual of a linear programming problem where the primal is a minimization problem can be formulated
by converting the inequalities into equalities and introducing dual variables.
For each inequality constraint in the primal, we introduce a corresponding dual variable:
Let y1, y2, and y3 be the dual variables corresponding to the constraints 4x1+x2 ≥ 30, −x1−x2 ≤ −18, and
x1+3x2 ≥ 28, respectively.
The primal objective function coefficients become the right-hand side constants in the dual constraints,
and the primal right-hand side constants become the objective function coefficients in the dual problem.
Dual Formulation:
Maximize W=30y1+18y2+28y3
Subject to:
4y1−y2+y3 ≤ 3
y1−y2+3y3 ≤ 4
y1,y2,y3 ≥ 0
Solving the Dual Problem:
We can solve this linear programming problem using the simplex method or any other linear programming
solver. Here, we'll use the simplex method to find the solution.
Maximize W=30y1+18y2+28y3
Subject to:
4y1−y2+y3 ≤ 3
y1−y2+3y3 ≤ 4
y1,y2,y3 ≥ 0
4y1−y2+y3+s1=3
y1−y2+3y3+s2=4
y1,y2,y3,s1,s2≥0
Y1 Y2 Y3 S1 S2 RHS
S1 4 -1 1 1 0 3
S2 1 -1 3 0 1 4
-W -30 -18 -28 0 0 0
Perform the simplex method iterations to find the optimal solution. This involves pivot operations to make
all the coefficients in the objective function row non-negative.
After performing the necessary simplex method steps (which can be done manually or using a software
tool), we find the optimal values for the dual variables y1, y2, and y3. These values will then allow us to
determine the optimal values for the primal variables x1 and x2.
If you would like to see the detailed simplex method steps or the final solution using a solver, please let me
know!
3. Ans
To determine the optimal assignment of salesmen to customers that maximizes the expected profit, we
need to formulate this problem as an assignment problem. Here, we will use the Hungarian algorithm to
find the optimal assignment.
Step 1: Calculate the Expected Profit Matrix
We will first calculate the expected profit for each salesman-customer pair by multiplying the probability of
making a sale by the profit from that sale.
Given:
Probability matrix:
S1 S2 S3 S4
C1 0.7 0.4 0.5 0.8
C2 0.5 0.8 0.6 0.7
C3 0.3 0.9 0.6 0.2
Expected profit matrix:
S1 S2 S3 S4
C1 0.7X500 0.4X500 0.5X500 0.8X500
C2 0.5X450 0.8X450 0.6X450 0.7X450
C3 0.3X540 0.9X540 0.6X540 0.2X540
Calculating these values:
S1 S2 S3 S4
C1 350 200 250 400
C2 225 360 270 315
C3 162 486 324 108
We need to maximize the total expected profit. This is a classical assignment problem which we can solve
using the Hungarian algorithm.
S1 S2 S3 S4
C1 350 200 250 400
C2 225 360 270 315
C3 162 486 324 108
S1 S2 S3 S4
C1 150 0 50 200
C2 135 270 180 225
C3 54 378 216 0
Subtract the column minimum:
S1 S2 S3 S4
C1 96 0 34 200
C2 81 270 164 225
C3 0 378 200 0
Cover all zeros with a minimum number of lines and adjust the matrix:
Find the smallest element not covered by a line, which is 34, and subtract from all uncovered
elements and add to the intersections of lines:
Adjusted matrix:
S1 S2 S3 S4
C1 62 0 0 166
C2 47 270 130 191
C3 0 344 166 0
S1 S2 S3 S4
C1 62 0 0 166
C2 47 270 130 191
C3 0 344 166 0
From the final adjusted matrix, we can see the optimal assignments:
S2 is assigned to C1
S1 is assigned to C3
S4 is assigned to C2
4. Ans
Monte Carlo simulation is a computational technique used to model and analyze the behavior of complex
systems and processes. It relies on repeated random sampling to obtain numerical results. The technique is
widely used in various fields such as finance, engineering, supply chain, and project management to assess
risk, uncertainty, and the probability of different outcomes.
The procedure for conducting a Monte Carlo simulation can be broken down into the following steps:
1. Clearly state the problem you want to solve or the system you want to analyze.
2. Identify the objectives of the simulation, such as estimating the probability of certain
outcomes or assessing the impact of uncertainty on the results.
1. Create a mathematical model of the system or process. This model should include all
relevant variables and their relationships.
2. Identify the input variables (parameters) that are uncertain and need to be treated as
random variables.
3.
1. Assign appropriate probability distributions to the input variables based on historical data,
expert judgment, or theoretical considerations.
2. These distributions describe the possible values that the input variables can take and their
associated probabilities.
1. Use random number generators to create random samples from the specified probability
distributions for each input variable.
2. Each set of random samples represents one possible scenario or iteration of the system.
Perform Simulations:
1. Run the simulation by inputting the random samples into the mathematical model.
2. Calculate the output variables (results) for each scenario.
3. Repeat the process for a large number of iterations to capture a wide range of possible
outcomes.
Analyze the Results:
1. Collect and analyze the results of all the simulations. This typically involves calculating
summary statistics such as the mean, median, standard deviation, and confidence intervals
of the output variables.
2. Create visualizations such as histograms, frequency distributions, and cumulative
distribution functions to help interpret the results.
1. Interpret the results in the context of the original problem and objectives. Assess the
implications of the findings for decision-making and risk management.
2. Communicate the findings to stakeholders in a clear and concise manner, often using
visual aids to illustrate key points.
Example
Let's say we want to estimate the expected profit of a new product. The profit depends on two uncertain
factors: the demand for the product and the unit profit margin.
1. Demand follows a normal distribution with a mean of 10,000 units and a standard
deviation of 2,000 units.
2. Unit Profit Margin follows a uniform distribution between $5 and $10.
1. Use random number generators to create random samples for demand and unit profit
margin.
Perform Simulations:
1. Run the simulation for, say, 10,000 iterations. For each iteration, randomly sample values
for demand and unit profit margin, and calculate the profit.
1. Calculate summary statistics for the simulated profits, such as the mean, median, and
standard deviation.
2. Create a histogram to visualize the distribution of simulated profits.
Monte Carlo simulation is a powerful tool for understanding the impact of uncertainty and variability in
complex systems, allowing decision-makers to make more informed choices.
5. Ans
Activity 1-2
Activity 1-3
Activity 1-4
Activity 2-5
Activity 3-5
Activity 4-6
Activity 5-6
Part (ii): Find the Expected Duration and Variance for Each Activity
To find the expected duration (te) and variance (σ2) of each activity, we use the formulas:
Calculations:
Activity 1-2:
o te=(1+4×1+7)/6=(1+4+7)/6=12/6=2
o σ2=((7−1)/6)2=(6/6)2=1Square=1
Activity 1-3:
o te=(1+4×4+7)/6=(1+16+7)/6=24/6=4
o σ2=((7−1)/6)2=(6/6)2=1square =1
Activity 1-4:
o te=(2+4×2+8)/6=(2+8+8)/6=18/6=3
o σ2=((8−2)/6)2=(6/6)2=1square=1
Activity 2-5:
o te=(1+4×1+1)/6=(1+4+1)/6=6/6=1
o σ2=((1−1)/6)2=0square=0
Activity 3-5:
o te=(2+4×5+14)/6=(2+20+14)/6=36/6=6
o σ2=((14−2)/6)2=(12/6)2=2square=4
Activity 4-6:
o te=(2+4×5+8)/6=(2+20+8)/6=30/6=5
o σ2=((8−2)/6)2=(6/6)2=1square=1
Activity 5-6:
o te=(3+4×6+15)/6=(3+24+15)/6=42/6=7
o σ2=((15−3)/6)2=(12/6)2=2square=4
te σ2
Activity 1-2 - 2 1
Activity 1-3 - 4 1
Activity 1-4 - 3 1
Activity 2-5 - 1 0
Activity 3-5 - 6 4
Activity 4-6 - 5 1
Activity 5-6 - 7 4
o Variance of the critical path = Sum of variances of activities on the critical path
o Variance = 1(1−3)+4(3−5)+4(5−6)=1+4+4=9
Calculate the Standard Deviation of the Project Length:
P(Z ≤−1.33)=0.0918
Thus, the probability that the project will be completed at least 4 weeks earlier than the expected time is
approximately 0.0918 or 9.18%.
6. Ans
To analyze the game between players A and B, we will first construct the payoff matrix based on the given
rules:
Player A wins B’s coin if the total of the two coins is odd.
Player A loses his coin if the total of the two coins is even.
The coin values are: 1, 2, 5, 10, and 50 rupees. The game is symmetric since both players have the same set
of coin values.
We will construct a 5x5 payoff matrix where the rows represent the coins chosen by Player A and the
columns represent the coins chosen by Player B. The payoff for Player A is 1 if A wins B's coin (total is odd)
and -1 if A loses his coin (total is even).
1 2 5 10 50
1 -1 1 -1 1 -1
2 1 -1 1 -1 1
5 -1 1 -1 1 -1
10 1 -1 1 -1 1
50 -1 1 -1 1 -1
To determine the optimal strategies for both players and the value of the game, we need to analyze the
matrix and consider mixed strategies if necessary. However, the pattern in the payoff matrix indicates that
the game has a repetitive structure due to the alternation between -1 and 1.
Given the symmetry and alternation, each player has no pure strategy dominance, and each coin has an
equal likelihood of winning or losing based on the opponent's choice. Therefore, an optimal strategy for
each player would involve randomizing their choices uniformly over the available coins to ensure no
predictable pattern can be exploited by the opponent.
Mixed Strategy
Since there is no pure strategy dominance, the optimal strategy for both players would be to randomize
uniformly:
Player A's mixed strategy: Choose each coin with equal probability 1/5.
Player B's mixed strategy: Choose each coin with equal probability 1/5.
To find the value of the game VVV for Player A, we can calculate the expected payoff when both players
use the mixed strategy:
V=∑i=15∑j=15piqjaij
Where pi=1/5 and qj=1/5 and aij are the elements of the payoff matrix.
∑i=15∑j=15aij=(−1+1−1+1−1)+(1−1+1−1+1)+(−1+1−1+1−1)+(1−1+1−1+1)+(−1+1−1+1−1
=(0)+(0)+(0)+(0)+(0)=0
So,
V=1/25⋅ 0=0
The value of the game VVV to Player A is 0. This means that, on average, neither player gains or loses
money when both are playing optimally using the mixed strategy.
Summary
Payoff Matrix:
1 2 5 10 50
1 -1 1 -1 1 -1
2 1 -1 1 -1 1
5 -1 1 -1 1 -1
10 1 -1 1 -1 1
50 -1 1 -1 1 -1
Optimal Strategy for both players: Choose each coin (1, 2, 5, 10, 50) with equal probability 1/5