OR
OR
OR
DAY 1
Ans: First, there is no algorithm (like the simplex method) that can be
programmed to solve all problems. Instead, dynamic programming is a
technique that allows a difficult problem to be broken down into a
series of sub-problems, which are then evaluated by stages. Second,
linear programming is method that gives single stage (one time period)
solutions. Dynamic programming has the power to determine the
optimal solution over a one year time horizon by breaking the problem
into 12 smaller one month horizon problems and solve each of these
optimally. Hence, it uses a multi stage approach. Dynamic
programming uses the backward recursive method for solving the
problems.
Ans: Bellman principle of optimality states that “An optimal policy has
the property that whatever the initial state and decisions are, the
remaining decisions must constitute an optimal policy with regard to
the state resulting from the first decision.
[
f N ( x )=max r ( d n ) + f N −1 {T ( x , d n ) } ]
dn ∈ {x }
Ans: Divide the original problem into sub- problems called stages
Solve the last stage of the problem for all possible conditions or
states
Working backward from that last stage, solve each intermediate
stage
Obtain the optimal solution for the optimal problem by solving all
stages sequentially
DAY 2
2) Solve the shortest path from City 1-City 10 in the diagram shown
below by using the recursive principle of dynamic programming.
DAY 3
Table.6.1Investment possibilities
Each plant is permitted to enact one of its proposals. The goal is
to
2, not how it was spent. Also notice that we will want (x3) to be 5
Let's try to figure out the revenues associated with each state.
The only
We are now ready to tackle the computations for stage 2. In this case,
we want to find the best solution for both plants 1 and 2. If we want to
calculate the best revenue for a given (x 2), we simply go through all the
plant 2 proposals, allocate the given amount of funds to plant 2, and
use the above table to see how plant 1 will spend the remainder. For
instance, suppose want to determine the best allocation for state x 2=4.
In stage 2 we can do one of the following proposals: 1. Proposal 1 gives
revenue of 0, leaves 4 for stage 1, which returns 6. Total: 6. 2. Proposal
2 gives revenue of 8, leaves 2 for stage 1, which returns 6. Total: 14. 3.
Proposal 3 gives revenue of 9, leaves 1 for stage 1, which returns 5.
Total: 14. 4. Proposal 4 gives revenue of 12, leaves 0 for stage 1, which
returns 0. Total: 12
The best thing to do with four units is proposal 1 for plant 2 and
proposal 2 for plant 1, returning 14, or proposal 2 for plant 2 and
proposal 1 for plant 1, also returning 14. In either case, the revenue for
being in state x2=4. The rest of table 3 can be filled out similarly.
Proposal 1 gives revenue 0, leaves 5. Previous stages give 17. Total: 17.
Proposal 2 gives revenue 4, leaves 4. Previous stages give 14. Total: 18.
Denote by r(kj) the revenue for proposal kj at stage j , and by c(k j) the
corresponding cost. Let fj (xj) be the revenue of state xj in state j. Then
we have the following calculations
f 1( x 1 ¿ =max { r ( k 1 ) }
k 1 :c (k 1) ≤ x 1
k j : c (k j) ≤ x j
DAY 4
0 ≤ aij x n ≤ β ¿
0 ≤ aij x j ≤ β ij
(i=1,2 , … . , m)
The recursion equation given above can be used to solve the linear
programming problem by the dynamic programming approach.
DAY 5
Validate
Pseudo code etc and also related to how will the model receives
inputs. Computational: It is regarding to the development of a
computer program by using any general purpose programming
language or simulation language
DAY 6
DAY 7
Topics to be discussed: Simulation languages
On Line Simulation
Internet together with Java and JavaScript offer incredible possibilities
in problem
Solving. Instead of time consuming downloading and installation of
software packages, it is possible to open directly various solvers,
especially for problems that are not frequent and that do not require
time consuming computation.
SIMULA
The first Object Oriented Language (OOL) Simula 67 was officially
introduced by Ole Johan Dahl and Kristen Nygaard at the IFIP TC 2
Working Conference on Simulation Languages in Lysebu near Oslo in
May 1967. All modern programming work carried out today is based on
principles of OOP introduced for the first time in the Simula definition.
A computer program is a series of instructions, which contains all the
information necessary for a computer to perform some task. It is similar
to a knitting pattern, a recipe or a musical score. Like all of these it uses
special shorthand, known in this case as a programming language. We
will learn the programming in SIMULA 67, in SIMULA 67, 67 stood for
1967, the year in which this earlier version was first defined.
DAY 8
Demand (daily): 0 1 2 3 4
Each time an order is placed, the store incurs an ordering cost of Rs.
10 per order. The store also incurs a carrying cost of Rs. 0.50 per
book per day. The inventory carrying cost is calculated on the basis
of stock at that time of each day. The manager of the book store
wishes to compare two options for his inventory decision.
A: Order 5 books when the inventory at the beginning of the day plus
orders outstanding is less than 8 books.
B: Order 8 books when the inventory at the beginning of the day plus
orders outstanding is less than 8.
Currently (beginning of the first day) the store has stock of 8 books
plus 6 books ordered 2 days ago and expected to arrive next day.
Table.6.5 Option A
Table.6.6 Option B
DAY 9
As soon as the trucks are checked out, the truck drivers take them
to the next departments. Using Monte-Carlo simulation,
determine:
First select 20 two digit random numbers from the random number
table. The first random number for the arrival time is 12. This
number lies in the range (12-28). This random number indicates the
arrival time at 10.04 am assuming that the checking starts at
10.00a.m. Similarly work-out all simulated arrivals and service times.
Since the first truck arrives at 10.04 am, the checker waits for 4
minutes. This is indicated in the last column, as checkers waiting
time in table below. The checker takes 5 minutes and thus the
service for first truck will end at 10.09 am. The next truck will arrive
at 10.10 a.m. which indicates that the checker waits for 1 minute.
Whenever the truck has to wait because of the checker being busy in
dealing with previous truck, the waiting time is listed in the last
column of the table. The similar procedure can be adopted to
prepare the entire work sheet.
16/20=0.8 minutes.