Professional Documents
Culture Documents
Optimization Techniques (OT) Notes For BCA 4th Sem Based On Purvanchal University PDF
Optimization Techniques (OT) Notes For BCA 4th Sem Based On Purvanchal University PDF
Semester-4
BCA 403
OT
(Optimization Techniques)
Created By : D.P.Mishra
Unit – 1
Linear Programming
Definition of LPP–
A linear programming problem consists of a linear function to be
maximized or minimized subject to certain constraints in the form
of linear equations or inequalities.
Linear Programming Problems (LPP) provide the method of finding such an
optimized function along with/or the values which would optimize the
required function accordingly. It is one of the most important Operations
Research tools.
Artificial Variable :
In order to use the simplex method on problems with mixed constraints, we
turn to a device called an artificial variable.
This variable has no physical meaning in the original problem and is
introduced solely for the purpose of obtaining a basic feasible solution so
that we can apply the simplex method.
An artificial variable is a variable introduced into each equation that has a
surplus variable. To ensure that we 7 q p consider only basic feasible
solutions, an artificial variable is required to satisfy the nonnegative
constraint.
Sensitivity analysis–
Sensitivity Analysis deals with finding out the amount by which we can
change the input data for the output of our linear programming model to
remain comparatively unchanged.
This helps us in determining the sensitivity of the data we supply for the
problem. If a small change in the input (for example in the change in the
availability of some raw material) produces a large change in the optimal
solution for some model, and a corresponding small change in the input for
some other model doesn't affect its optimal solution as much, we can
“Failure is the opportunity to begin again more intelligently.”
For More Information Visit Our Blog: www.dpmishra.com
9
Keep Learning with Us VBSPU 4th sem. OT Notes
conclude that the second problem is more robust then the first. The second
model is less sensitive to the changes in the input data.
Either of the problem can be considered as primal with the other as dual. The
importance of the duality concept is due to two main reasons:
(1) Change the objective function of maximization in the primal into that of
minimization in the dual and vice versa.
(2) The number of variables in the primal will be the number of constraints in the
dual and vice versa.
(3) The cost coefficients C1, C2 ... Cn in the objective function of the primal will
be the RHS constant of the constraints in the dual and vice versa.
(4) In forming the constraints for the dual, we consider the transpose of the body
matrix of the primal problem.
(6) If the variable in the primal is unrestricted in sign, then the corresponding
constraint in the dual will be an equation and vice versa.
Unit – 2
Transportation problems
Introduction to transportation model–
model
Transportation problems are one of the subclasses of LPPs in which the
objective is to transport various quantities of a single homogenous
commodity that are initially stored at various origins, to different
destinations in such a way that the transportation cost is minimum.
Application of TP model
model–
Application of Transportation Problem:
Problem
o Minimize shipping costs
o Determine low cost location
Assignment problems–
problems
Mathematical Formulation–
Formulation
Finding IBFS–
An initial basic feasible solution to
a transportation problem can be found by any one of the three
following methods:
(i) North west corner rule (NWC)
(ii) Least cost method (LCM)
(iii) Vogel's approximation method (VAM)
Degeneracy–
non negative independent allocations is less than m]n[1,
In a TP, if the number of non-negative
where m is the number of origins (rows) and n is the number of destinations
(columns) there exists a degeneracy. This may occur either at the initial stage or
at the subsequentent iteration.
(1) Among the empty cell, we choose an empty cell having the least cost which is
of an independent position. If this cell is more than one, choose any one
arbitrarily.
ell as chosen in step (1) we allocate a small positive quantity ∈> 0. The
(2) To the cell
cells containing ∈ are treated like other occupied cells and degeneracy is removed
by adding one (more) accordingly. For this modified solution, we adopt the steps
involved in MODI method
ethod till an optimum solution is obtained.
Unit – 3
Sequencing models & Related problems
Sequencing problem–
When a number of jobs are given to be done and they require processing
on two or more machines, the main concern of a manager is to find the
order or sequence to perform these jobs. We shall consider the sequencing
problems in respect of the jobs to be performed in a factory and study the
method of their solution. Such sequencing problems can be broadly divided
in two groups. In the first one, there are n jobs to be done, each of which
requires processing on some or all of the k different machines.
Job(s)
Machine
A B C D E F G H I
P 2 5 4 9 6 8 7 5 4
Q 6 8 7 4 3 9 3 8 11
Find the sequence that minimizes the total elapsed time T. Also calculate the total
idle time for the machines in this period.
Solution
The minimum processing time on two machines is 2 which correspond to task A
on machine P. This shows that task A will be preceding first. After assigning task A,
we are left with 8 tasks on two machines
Machine B C D E F G H I
P 5 4 9 6 8 7 5 4
Q 8 7 4 3 9 3 8 11
“Failure is the opportunity to begin again more intelligently.”
For More Information Visit Our Blog: www.dpmishra.com
22
Keep Learning with Us VBSPU 4th sem. OT Notes
A G E
The problem now reduces to following 6 tasks on two machines with processing
time as follows:
Machine B C D F H I
P 5 4 9 8 5 4
Q 8 7 4 9 8 11
Here since the minimum processing time is 4 which occurs for tasks C and I on
machine P and task D on machine Q. Therefore, the task C which has less
processing time on P will be processed first and then task I and task D will be
placed at the last i.e., 7th sequence cell.
The sequence will appear as follows:
A C I D E G
Machine B F H
P 5 8 5
Q 8 9 8
In this reduced table the minimum processing time is 5 which occurs for tasks B
and H both on machine P. Now since the corresponding time of tasks B and H on
machine Q are same i.e. 8. Tasks B or H may be placed arbitrarily in the
4th and 5th sequence cells. The remaining task F can then be placed in the
6th sequence cell. Thus the optimal sequences are represented as
A I C B H F D E G
or
A 1 C H B F D E G
Further, it is also possible to calculate the minimum elapsed time corresponding
to the optimal sequencing A → I → C → B → H → F → D → E → G.
Job Machine A Machine B
Sequence
Time In Time Out Time In Time Out
A 0 2 2 8
I 2 6 8 19
C 6 10 19 26
B 10 15 26 34
H 15 20 34 42
F 20 28 42 51
D 28 37 51 55
E 37 43 55 58
G 43 50 58 61
Hence the total elapsed time for this proposed sequence staring from job A to
completion of job G is 61 hours .During this time machine P remains idle for 11
hours (from 50 hours to 61 hours)and the machine Q remains idle for 2 hours only
(from 0 hour to 2 hour ).
Processing n jobs through three machine–
Example
There are five jobs (namely 1,2,3,4 and 5), each of which must go through
machines A, B and C in the order ABC. Processing Time (in hours) are given
below:
Jobs 1 2 3 4 5
Machine A 5 7 6 9 5
Machine B 2 1 4 5 3
Machine C 3 7 5 6 7
Find the sequence that minimum the total elapsed time required to complete the
jobs.
Solution
Jobs
1 7 5
2 8 8
3 10 9
4 14 11
5 8 10
1 7 5 2 3 9
2 6 6 4 5 10
3 5 4 5 6 8
4 8 3 3 2 6
Unit – 4
PERT & CPM
PERT–
PERT is an acronym for Program (Project) Evaluation and Review
Technique, in which planning, scheduling, organizing, coordinating
and controlling uncertain activities take place. The technique studies and
represents the tasks undertaken to complete a project, to identify the
least time for completing a task and the minimum time required to
complete the whole project. It was developed in the late 1950s. It is aimed
to reduce the time and cost of the project.
CPM–
Developed in the late 1950s, Critical Path Method or CPM is an algorithm
used for planning, scheduling, coordination and control of activities in
a project. Here, it is assumed that the activity duration is fixed and certain.
CPM is used to compute the earliest and latest possible start time for
each activity.
Comparison Chart
BASIS FOR
PERT CPM
COMPARISON
BASIS FOR
PERT CPM
COMPARISON
Event: An event (or node) will always occur at the beginning and end of an
activity. The event has no resources and is represented by a circle. The ith event
and jth event are the tail event and head event respectively.
An Event
Unit – 5
Dynamic Programming
Bellman’s principal of optimality of Dynamic
Programming–
Bellman’s principle of optimality: An optimal policy (set of decisions) has the
property that whatever the initial state and decisions are, the remaining decisions
must constitute and optimal policy with regard to the state resulting from the first
decision.
Mathematically, this can be written as:
fN(x)=max.[r(dn)+fN−1T(x,dn)]dn∈xfN(x)=max.[r(dn)+fN−1T(x,dn)]dn∈x
where fN(x)=the optimal return from an N-stage process when initial state is x
D.P. Algorithm–
The solution of a multistage problem by dynamic programming involves the
following steps.
Step 1: Identify the decision variables and specify the objective function to be
optimized under certain limitations, if any.
Step 3: Write down the general recursive relationship for computing the optimal
policy. Decide whether forward or backward method is to be followed to solve
the problem.
Step 4: Construct appropriate stages to show the required values of the return
function at each stage.
Step 5: Determine the overall optimal policy or decisions and its value at each
stage. There may be more than such optimal policy.