Saturday, February 24, 2007
The problem of unit in the relationship between backorder and waiting time
V[B]=lambda E[BW] + lambda^2 V[BW]
I think there is exact same formula in queueing theory about the number in the queue and waiting time. But the puzzle to me is the match of unit. Suppose the unit of B, lambda, BW are item, item/day, day. V[B]=item^2, lambda E[BW] = item and lambda^2 V[BW]=item^2.
If it was me to derive this formula, I would throw it into garbage after this check. But sometimes, we cannot trust common sense.
Tuesday, February 20, 2007
The difference and similarity between Poisson and BM
The more I learn about BM, the more I feel there are strong connection between Poisson and BM. Last week, I ask a question. If we discrete Poisson process to small time interval, it behaves exactly as random walk with probablity lamda*h up by one and 0 otherwise. And counterpart of BM in discrete world is also random work with probability 0.5 up by 1 and probability 0.5 down by 1. Then I ask a question, what if we change the measure just like that we can change the BM with drift to BM without drift. Answer is obvious no, there are several differences.
- discrete BM, up and down probability is fixed. the only scale factor is step size. But the scale factor of poisson process is probability up and step size is fixed
- when we change the measure, we require that two probability measuresare equivalent which means the null space is the same. The null space of discrete one step of randome walke is R/{-1,1}. But poisson is R/{0,1}.
But when I ask Professor what is discrete case of BM with drift. Is it with the symmetric step size but different probability or different step size but the same probability or both or does not matter. I have not get answer yet.
Wednesday, February 07, 2007
IP homework is way too hard
The last two logic gaps I filled just now are
1. LP relaxation of TSP formulation with subtour elimination constrainted is strictly contained in TSP formulation with subtour elimination constrainted replaced by $u_i-u_j-nx_{ij} \leq n-1$. This invovle how to scale up the problem then scale down.
2. Find as many affine independent points as possible for $P={x \in R^+ | \sum^n_{i=1} x_{ij}=1 for i=1,...n and \sum^n_{j=1} x_{ij}=1 for j=1,...n}$. It would be easy to see the rules by beginning with n=3 and 4.
In homework 1 of IP class, the following question is challenging.
1. show that $max{x_1 − \sqrt(2) x_2 | 1 \leq x1 \leq \sqrt(2) x_2 and x_1, x_2 is integer}$ is feasible and bounded, but has no optimal solution. I use the contradiction to show that there is no optimal solution.
Monday, January 29, 2007
uniqueness of the fixed point
Sunday, January 21, 2007
Pros and cons of staying in a small university
Very limited courses are offered in Lehigh. After my three years in Lehigh, there is no open course about heuristics, the stochastic process class only using introductory level of book 'Introduction to Probability Models' by Ross. It takes me waiting for 2 years to have IP open again. And there are many other regrets about courses in Lehigh.
Monday, January 15, 2007
More guns can be added into my powder magazine
Stochastic Calculus and Financial Applications
Nonlinear Programming: Theory and Algorithms
Theory and Practice of Revenue Management
An Annotated Timeline of Operations Research: An Informal History
Sunday, January 14, 2007
Another new book in two days
Saturday, January 13, 2007
Why Toy's R doesn't have sample for people to try
A new book comes to my book shelf
Thursday, January 11, 2007
Crazy Tuesday and Thursday Next Semester
10:45-12:00 Advanced Stochastic Process II
12:10-1:00 IP Seminar (Th)
1:10:2:25 Real Analysis II
2:35-3:50 Financial Calculus II
4:00-5:00 Weekly Meeting with Larry(T)
7:00-8:15 Integer Programming
After crazy day, I will play tennis on Tuesday and Ping Pong on Thursday.
Saturday, January 06, 2007
Friday, January 05, 2007
Assignment of interview time slot
Thursday, January 04, 2007
To queue or not to queue
Today, I sit in the Wendy's from 10:30am to 2:50pm to read and think. When I realized that I soon need to have lunch, there is waiting line. Then it becomes an optimization problem. My hungry degree increases by time. I don't want to waiting in the line waste my time not doing meaningful things. The length of waiting line is changing. What should I do?!
It turns out that I was poor to make that decision. I waited until that I cannot stand more and joined a long line. What is the form of best strategy under this situation? What if I have perfect information or not? Is any similiar situation in the real business situation?
Tuesday, January 02, 2007
Martingale and NP Complete problem
Today when I read 'The logic of Logistics', I found an application to use martingale difference sequence to develop average case analysis for Bin pack problem. Although it is not close related to inventory problems I am interests. It is a good start.
The reference is
Martingale inequalities and NP-complete problems
Wrong impression: any NP complete problem has no finite worst case bound for any heuristic
I realize this understand is wrong until today when I happen to read the bounds on Bin-Packing problem.
Sunday, December 31, 2006
live as a pig at the end of 2006
Hope tomorrow 2007, I can recover and go back to normal status.
Thursday, December 28, 2006
Two OR applications in Florida Trip
When I was in Magic Kingdom, I found an interesting application of queueing theor - Fast Pass. The procedure is the following. 1) When you see a waiting line is quite long at one attraction say Space Mountain, you can insert your ticket in one machine to get a fast pass which indicates you return during the specific time usually one or two hours laters. 2) Then when you return after playing other stuffs, you can go through the fast pass line.
There are several key points. 1) Once you get your fast pass for one attraction, you cannot get fast pass for another attraction until your current fast pass expire. For example, if I get fast pass for Space Mountain from 1pm to 2pm. I can only get fast pass for Splash Mountain after 2pm. 2) The number of fast pass in one attraction must be limited. Since the available time for the fast pass is different at different attraction, the hotter the attraction is, the longer time difference between available time of fast pass and current will be. In the last attraction-Jungle Cruise we go at 5pm, its fast pass is unavailable. We need to wait 40mins to play.
The decision to make for the visitor. 1) What is the sequence of attraction I should follow. 2) Which attraction should I get the fast pass.
The decision to make for the Theme Park. 1) How much fast passes to available at each attraction and each time periods.
Game theory might not be suitable in this case. Probably, something like priority queue plus abandon and other customer behavior can be used to formulate the problem.
My experience of fast pass in Unversal Studio at CA is different. We got the fast pass after we experienced a half hour technique difficulty at Jurassic Park. Then we can get into fast pass line for every attraction. But actually, you need to spend 30$ to get one fast pass. So the decision for the theme park is how much fast pass to offer and how much to charge.
The second one is network flow. It is very wise decision to buy a GPS just before this trip. We don't need to print every map. And we can avoid the traffic jam in the high way by going through the local. It was very crucial when we tried to catch up our flight back. And the calculation of route is very fast, it is much faster than O(A) I learned last semester. But actually it can only calculate the route from two points. If I want to go several points a day, I need to manually choose the sequence of points I need to goal. If GPS can provide the function of solve small TSP problem such as 5 points, it will be wonderful. Since real map satisfy triangle inequality, there is heuristic to get solution within 1.5 time of optimal solution. So the calculation time won't increase a lot.
Saturday, December 16, 2006
Final week is over
Thursday, December 14, 2006
Textbook: Convex Analysis and Optimization
How to Bring Our Schools Out of the 20th Century
- Knowing more about the world. (China: Almost all high school will teach English and we learn history of world. USA: where fewer than half of high school students are enrolled in a foreign-language class and where the social-studies curriculum tends to fixate on U.S. history.)
- Thinking outside the box. (This is weakness of Chinese education. But it seems with no child left behind(NCLB), American goes to Asian type education more and more.)
- Becoming smarter about new sources of information. (This one is hard to tell. Only thing I can say is that more knowledge I have, the smarter I can deal with new information)
- Developing good people skills. (This is also a weakness of Chinese people. There is a saying that 'three monk don't have water'. And I found the counterpart in English:Everybody's business is nobody's business. So it is also a problem in USA. I think it is due to how people get measured. Maybe in USA, there is fairer measure of team work than China. For example, almost every teacher ask students to put down name of people who help their homework)
One surprising thing is to see the following question for a second grade student: How many ways can you combine nickels, dimes and pennies to get 20¢? This question can be solved by recursion. It would be interesting to see how teachers tell students the way to solve the problem.