Tuesday, January 24, 2012

The King and the Vampire

Read this Wikipedia entry if possible to enjoy the format of this 'fun' post a bit more.

(pic source link: Wikipedia)

Every Indian child has grown up listening to the stories of King Vikram and the Vetaal (some kind of vampire spirit who  often clambers up a drumstick tree). It used to be particularly exciting to read these tales in the children's magazine Chandamama, where the first paragraph went something like this:

Dark was the night and weird the atmosphere. It rained from time to time. Eerie laughter of ghosts rose above the moaning of jackals. Flashes of lightning revealed fearful faces. But King Vikram did not swerve. He climbed the ancient tree once again and brought the corpse down. With the corpse lying astride on his shoulder, he began crossing the desolate cremation ground. "O King, it seems that you are firm about the decision you've taken. But it is better for you to know that there are situations where an O.R decision optimization project invariably results in complaints, which apparently requires another O.R project to fix! Let me cite an instance. Pay your attention to my narration. That might bring you some relief as you trudge along," said the vampire possessing the corpse. 

The OR vampire went on:
Years ago in a bankruptcy protected U.S airline in a windy city, a well-paid MBA consultant for the Onboard Services department (OS) approached our OR team to pitch a new R&D project to manage an inventory problem on a network. Apparently, OS was hit by a surge of complaints in recent times that contractually purchased hotel room inventory in several U.S cities served by the airline were left puzzlingly and 'dangerously underutilized' in the last few months, way off their usual levels. Could we help match supply and demand using our OR bag of tricks by moving things around in some optimal manner?

No, ..These complaints were not coming from Flight-Attendants (FAs), but from management folks in OS. If anything, the FAs were happier and chatty about the quality time they were spending with family and kids. FA's don't make the kind of money that pilots do but since there's roughly about 2-3 FAs for every pilot, he wondered if our team's OR-based crew scheduling system was giving away expensive 'happy hours' at company expense? .. yes, this problem started 3 months ago, How did we know? ....

It wasn't a guess. We deployed a shiny new optimization system for planning monthly crew schedules for OS just 4 months ago. Things were not looking good. Where did we screw up? We investigated the reasons for this and within a couple of days found the answer that had the entire team laughing and celebrating. We gave the consultant a brief answer that he was satisfied with. The 'network imbalance' project was shelved.

So tell me King Vikram, what do u think happened and why did my team laugh and celebrate? Answer me if you can. Should you keep mum though you may know the answers, your head would roll off your shoulders!"

Forthwith King Vikram replied: "Vetaal, this is one of your easier ones. The answer is in three parts.

1. A significant portion of the senior FA population were married women who were happy because they got to spend more weeknights at home. Their work-hours per week is upper-bounded by federal regulations and remains fairly constant if optimized well enough, which must mean that these FAs were spending a lesser proportion of time away from home than ever before while still making the same kind of money.

2. Since FAs don't get paid as much as pilots, a relatively expensive portion of their schedules is likely to be the hotel room and transportation costs associated with their overnight layovers. I suspect that the new algorithms in the scheduling system managed to uncover improved schedule patterns among those trillion trillion possibilities by identifying near-optimal daytime airport connections that yield a denser work-day in tandem with a shorter TSP sub-tour traveling pattern that brings them back home more frequently. Doing so must have also maintained or slightly improved the weekly productivity levels (otherwise management would not have bought into this model in the first place).

3. This result is a win-win for all stakeholders once the longer-term agreements with hotel chains are favorably renegotiated to sync with this newly realized reality. This is precisely what you must have told the consultant. Since all this was accomplished without additional capital investment using OR, 'The Science of Better', your team probably felt that their algorithm's practical effectiveness was validated by this 'complaint'.

No sooner had King Vikram concluded his answer than the vampire, along with the corpse, gave him the slip.


(pic source link: Chandamama.com)

Monday, January 16, 2012

Book review: Choke

This post reviews Sian Beilock's recent book:  
"Choke: What the Secrets of the Brain Reveal About Getting It Right When You Have To"  from an O.R. perspective, as well as from the p.o.v of Dharmic philosophy that has some deep connections to some of the mind-training techniques mentioned in the book.

Scholastic/Intellectual test situations
In addition to aspiring sport stars and business leaders who certainly want to avoid 'choking' at any cost, this book can be particularly useful to students who plan to take competitive scholastic tests. Beilock characterizes 'choking' as suboptimal performance, which implies the existence of a clearly superior level that becomes feasible via practical mind-training techniques. When it comes to tests like SAT and GRE, 'worry' can negatively affect the parts of the brain that are most involved ("working memory" in the prefrontal cortex) in the Q&A process and this can directly result in choking due to a suboptimal allocation of brain power. In fact when constrained by 'worry', lab experiments show that smarter students who routinely ace practice tests are likely to drop to a more seriously suboptimal level relative to 'average' students who face a similar worry. In particular, the book presents evidence that shows that the effect of negative gender stereotyping (e.g. "girls can't do math") has been devastating in the US, inducing a lot of female exam takers to 'choke' in such situations. Subsequently, many of these candidates reconsider their original choice of a STEM career. The author presents a systematic rebuttal of Larry Summers' controversial gender-related remarks in Harvard a few years ago that looks compelling.

An important technique that is proven to minimize the chances of choking during intense time-constrained testing situations is the ancient Indian method of Yoga and meditation that is freely available to anybody (Vipasana in particular, is recommended by the author. Even three months of adopting such methods are known to have beneficial effects). Now if one were to, over an extended period of time, move along this positive Yogic meditation gradient to maximize its benefits, one can practically experience higher states of consciousness and self-realization. This is a central truth-claim of the Dharmic thought system (DTS) of India. The 2011 book 'Being Different' by Rajiv Malhotra is a scholarly and well-researched book that expounds on DTS and is particularly useful for western minds that seek to understand what Yoga and Sanskrit (the language of Yoga) truly mean.


Sports  
Finely honed motor-skills and fluid movements are critical to achieving optimal performance. Here, one can think of the task of winning a contest as constantly solving two nested decision optimization problems. The meta-problem is to manage tactics and overall strategy, while the inner problem is how best to 'operationalize' the chosen objectives in real-time. A conclusion in this book is that one must certainly think about the meta ("what") problem using working memory. On the other hand, it is better not to (like Yogi Berra said) intellectually analyze the "how" part where a player makes real-time play decisions and executes a sequence of precise movements since these have been optimized (objectified?) over years of careful practice and then 'outsourced' to the brain's 'procedural memory'. It's like trying to analyze your legs as you descend a staircase in a hurry.

When it comes to crunch free-throws in basketball, it appears that an important 'choke' statistic is the conditional probability that a player will make the shot given that his/her team is one point behind. Apparently, this conditional probability differs by about 7% on average from its unconditional counterpart. As far as crunch-time soccer penalty kicks, well-established European league stars are more likely to choke and have a success rate of 65%, which is much less than future stars, whose conversion rate was above 90%. In baseball, home teams that are a game away from winning a series, win that game only about 38% of the time. Clearly, heightened expectations from supporters increases the chances of choking.

 

A useful point to remember that will help minimize the chances of suboptimal performance in any situation is present in a Sanksrit Mantra that was uttered after what can be viewed as the world's first ever choke, when Arjuna, the hero of the Mahabharatha, on the eve of battle, is consumed by self-doubt and initially decides against fighting the good fight and plans on simply walking away, before Krishna who was selected by Arjuna to be his charioteer in this battle, reminds him of his Dharma (a Sanskrit untranslatable, roughly means 'fundamental duty') and says, among other things:  

 

Karmanyeva adhikaraste ma phaleshu kadachana
Ma karmaphalahetur bhurma te sangostvakarmani.


"Your attention must be directed toward the action alone, never with its fruits. Let not the fruits of action be your motive, neither should you be inclined toward inaction".

As we can see, even heroes can choke, but the truly great ones have a reliable 'corner man' like support system that helps them find a way to turn it around.

 

[update: fixed format]

Thursday, January 5, 2012

A Working Multicultural Model: Necessary and Sufficient Conditions

Happy new-ish year. After five iterations, hopefully Analytics and OR folks are moving along a steep and positive gradient toward achieving their 2012 resolutions! If not, apply corrections to get back on track (taking into account the leap year factor).

A 2012 goal for this tab is to explore the human element in OR/Analytics practice. The OR and (applied) applied math workplace is an increasingly multicultural one. There is an increasing exchange of skilled people between countries due to globalization. Even today, many new immigrants and foreign workers continue to be flummoxed by the myriad of seemingly strange local customs, unwritten laws, etc. that confront them upon arriving at the host workplace. These differences result in a special kind of anxiety for the entrant, and to a certain extent, to his/her host, as the two parties seek a working equilibrium to get the job done on time.The challenge for people in such a workplace is to be conscious of and recognize the prevailing cultural differences (including those that we personally judge as 'unpleasant') in an impartial manner, while also embracing the mutually beneficial and useful commonality across cultures. Blindly resolving these differences in favor of either the host's belief system or the entrant's only increases this 'anxiety' and leads to increased stress in the workplace, which can then result in a drop in productivity and morale. Clearly, there has to be a better way to make this work for everybody (and not just a vocal majority).

What are some of the necessary and sufficient conditions that must be satisfied by a healthy, working multicultural model (MCM)? A key-phrase in the corporate and university workplace-playbook is 'zero-tolerance' for discrimination based on a variety of factors such as gender, race, etc. However, this only represents a bare minimum requirement. In the pan-math community, we find pure-math types who can barely tolerate applied math types, or the other way around. In the ORMS world, we will find a few academicians who tolerate what practitioners do, and vice-versa. In the tech work-place, we can spot some science PhDs tolerating engineers who in turn tolerate off-shore developers, and managers who are trying hard to tolerate these PhD scientists, and so on. Putting these people to work together on an high-profile project can be disastrous. 'Tolerance' is merely a necessary condition for a working MCM, but is nowhere close to being sufficient.

The ideas in this post are motivated by the writings of Rajiv Malhotra, a successful (now retired) Indian-American tech entrepreneur based in New Jersey, USA. A fundamental point raised by Rajiv (in the context of inter-faith dialog) is that mere tolerance is insufficient. A key component of the ‘sufficiency conditions’ is mutual respect. Let’s see how this works.

Mutual respect in the workplace already implies the necessary condition of zero-tolerance for discrimination. It then says something stronger: equality does not mean “being the same” or being “western” in thought, dress sense, and food habits. It is not a vector comparison. Two people can be equal and yet very different, like woman and man. If people behaved and responded in a homogenous fashion, there would be little need for revenue management or indeed, analytics. Anyone who believes that it is sufficient to tolerate a colleague who is 'different' should try saying it to that person and stick around for the reaction.

Mutual respect says: I don’t patronize you by tolerating you, I genuinely respect your right to your cultural and religious beliefs, some of which I clearly recognize as being very different from mine, and at the same time, I expect the same level of respect from you for my beliefs; you may well feel your way is “better for you”, and that’s cool with me as long as you don’t bug me to join your 'better' cause since I’m quite happy where I am. In OR lingo, a workplace characterized by mutual respect functions like a ‘KKT point’; expecting something more than mutual respect also creates conflict. Stress due to the invisible and unspoken 'peer pressure to conform' is sometimes an effect of working in an atmosphere (be it a high school classroom or office space) where mere tolerance prevails at the expense of mutual respect.

All this may seem obvious, but 'implementing mutual respect' is not always easy. In the original instance, Rajiv Malhotra tried to replace the much-venerated but ultimately trite phrase “religious tolerance” with "mutual respect for others religious beliefs" within the text of grand inter-faith declarations. The results were quite interesting. To merely tolerate our co-worker's religious beliefs, gender, race, and sexual orientation is to feed a hypocritical feeling of superiority that is likely to manifest itself in our professional relationship with that person at some point in time. A tolerance-based approach works well for finding practical solutions to numerical math problems, but for human relationships, mutual respect is vital. Nothing more, nothing less.



This first post of 2012 is humbly dedicated to Sri Rajiv Malhotra. Thanks, Rajiv ji.

Sunday, December 11, 2011

Solver precision: a consumer perspective

This is a quick post motivated by a useful question posed in this nice blog on OR software that wondered about the need for so many decimal-points of precision in commercial solvers. As Prof. Paul Rubin touched upon in his brief response, there's always going to be a few numerically-unstable instances that may justify this level of precision. The question as well as the response was quite instructive and this post mostly adds context.

Speaking from the perspective of a consumer who deploys  such solvers, this quest for precision is not just an academic exercise. Ill-conditioned instances are inevitable in certain business situations and are not (yet) rare. A customer (e.g. a store manager using an algorithmic pricing software product) routinely stress tests their newly-purchased/updated decision-support system that has such a solver hidden inside it. Customers will sometimes specify extreme input values to gain a 'human feel' for the responsiveness of the product that their management asked them to use. In fact, even routine instances can occasionally defeat the best of data-driven scaling strategies, and the old nemesis, degeneracy, always lurks in ambush.

Such solvers also have to be robust enough to work 'off the box' for millions of varied instances (to the extent possible) across industries and changing business models within any given industry. Being 'optimally precise' may pay off in terms of reduced support and maintenance costs for the vendor who writes the solver code, as well as for the consumer who deploys it, and less headaches for the end-user, the customer.

With the information available in journals and the Internet, it is realistically possible for a DIY practitioner to assemble a reasonably fast and robust solver to handle their own company's LPs, but the task of building high-precision, enterprise-level MIP solvers is best left to the specialists.

Thursday, December 1, 2011

OR models for discouraging criminal intent

Dr. Subramaniam Swamy, the brilliant lawyer who exposed the 2G scam in India is trying to raise awareness about this issue amongst the Indian public via a series of talks around the country. In one of his talks, he white-boards a simple but useful high-level model (shown below) to determine the level of financial penalty that should be imposed to deter future scams. This is especially important in the case of crooked politicians who tend to be thick-skinned and are willing to ride out their years in jail in order to enjoy their ill-gotten stash after 'serving out their term'. Conditioning on the chances of getting caught (p),

E[reward] = (1-p)R - p.D

where R = reward from the scam, and D = penalty to be paid if you are caught (primary decision variable). Swamy's point was that, in the Indian context, even though 'p' is relatively small in value for various reasons, all is not lost if 'D' can be made sufficiently large (proportional to 'R' times the odds of evasion) to ensure that the LHS value is unattractive enough.

Let's apply this model to the roads of India, where traffic violations are the norm. A given O-D (origin-destination) path is formed by several links, where link (i) is associated with a probability p(i), reward R(i), and penalty D(i). Crooks try to find the path of least resistance, e.g, smallest cumulative 'p' or max cumulative E[reward]. The police can counter this by a solving p-median type problem (this is a different 'p') where they can optimally position their scarce resource (traffic cops) to maximize an aggregate measure of expected penalty based on link traffic volumes. Given budget restrictions, these scarce resources have become even more scarce. However, it appears that in many other parts of the world, police departments have been smart enough to create a multiplier effect via an 'illusion of ubiquity' achieved via a 'ghost archetype' that periodically and randomly enforces the law in prominent locations in a particularly visible and pitiless manner. Recognizing the 'human element', in this case, the nonlinear 'customer response' to certain deployment scenarios can lead to a solution that increases the perceived probability p(i) for certain key links in the transportation network (beyond its actual statistical rate) without increasing actual capacity. Similarly, the presence of crooked 'bribe friendly' cops at busy intersections can lead to a nonlinear drop in public trust and perceived p(i), regardless of an increase in overall capacity.

To summarize, OR based decision support models can be effective in making a dent in corruption via analytically driven decisions that help maximize the perceived penalty for criminal/corrupt acts that in turn, leads to an actual incremental reduction in the relevant crime/scam rate, despite a scarcity of resources.

Tuesday, November 29, 2011

American Airlines Chapter 11: An OR Opportunity within a crisis

The news of American Airlines' Chapter11 may sadden some members of the OR community given their pioneering work in revenue management apart from their amazing impact on the overall ORMS practice in the airline industry. However, this crisis is also an opportunity for O.R. The company will be taking a close look at their business model as well as their more tactical operations and ring in a chain of meaningful improvements. Speaking from a similar 'chapter 11' experience during the last decade, this filing represents an opportunity for OR practitioners that must be grabbed. This situation highlights what this tab has talked about before: having a well trained ORMS team with domain expertise is invaluable and i'm sure AA has retained a lot of their experts.

Specific example
The renegotiation of the existing collective bargaining agreements (CBAs) with various unions is a great application example that can generate significant 'true dollar' returns. OR can be gainfully used to analyze rule changes that significantly improve efficiency while also improving the quality of work life of stakeholders to produce win-win deals. During 2003-2006, OR folks at a similar legacy US carrier were able to quantify and successfully redefine a set of highly complex work rules that ensured better utilization and compensation without sacrificing quality of work life. What's more, such feedback can help prevent CBA negotiations from stalling and win some trust from both sides of the table. In such situations, the management is likely to be more flexible in 'opening up' old rules, allowing the full use of powerful solvers and large-scale optimization models to determine the maximum level of improvement possible by replacing such legacy constraints with more sensible ones. Every  (deterministic) dollar saved during such stressful times is precious and is highly appreciated. In short, Chapter-11 is a time when OR folks on the ground can make their presence felt and directly contribute to the bottom-line. A friend in need is OR indeed.

update: some typos fixed

Sunday, November 13, 2011

The best solver award in a decision support role goes to ..

Major ORMS conferences typically coincide with new releases of existing commercial optimization software products like CPLEX and Gurobi, as well as the introduction of new ones. In the last few days, we have seen the entry of an exciting new solver product, Sulum Optimization. Dr.Bixby's eagerly awaited updates on the state of the solver universe speak of truly breathtaking improvements. So how important are such off-the-shelf solvers in practice?

A complementary 'state of the union' question that is worth asking is 'How much progress has been achieved by humans as far as analyzing decision problem formulations in practice ?' While glancing through the journal papers in the last three decades and comparing the work with the approaches taken by researchers in the 1940s-1970s, I couldn't help but feel that there is a non-improvement, perhaps even a retrogression along this dimension. It's tough to quantify the answer, but we can try to describe reasonable boundary conditions.

1. A terrible formulation is one which cannot be readily analyzed to determine an acceptable solution to the original business problem. This is not the same as 'finding a feasible solution to the mathematical optimization model', although these questions are somewhat related. Yet, a whole lot more time and publicity is directed toward the latter question. Apparently quite a few MI-Hard (mission impossibly hard) problems have been discovered out there, especially in the last three decades. These instances are so mysterious that even an acceptable solution is elusive despite the obviously massive progress in solvers and hardware. What does this tell us? An acceptable solution is either already available or can be found using OR / business insight. I certainly haven't yet come across such a MI-Hard instance across multiple industries.

2. A viable formulation is one which you can analyze to find an excellent answer to the original problem by partial or complete enumeration, within a reasonable amount of time. In other words, you are doing your job as a practitioner well if your design simply avoids crappy solutions to the original problem, leaving you with the task of scanning just the few remaining good ones. This process is merely a refinement of the 'acceptability analysis' in (1) (Watson would ask what is 'constraint programming' ?). Not only is the process of being a 'human solver' quite enjoyable, it also goes a long way in convincing your employer and a customer that a competitor cannot simply buy their own solver and achieve parity. Plus it builds street-cred for you and OR. On the other hand, a few journals love to have MI-Hard problems subjected to 'shock and awe' within their pages.

Summary
There may be rare exploratory formulations that require the full power of such solvers to generate insight when very little is practically known about the original problem. In general, solvers are useful in practice like health insurance is useful in health care. Some feel that buying the best or most expensive health insurance will somehow translate into an equivalent improvement and stability in our health, forgetting that fundamental choices like exercise, lifestyle, and diet are far more important factors. In fact, if we find that we are using our health insurance a lot, it is all the more important to question those fundamental choices.

'Which is the best solver today' is a interesting question, but the best decision model that you build will be one that most certainly does not depend on the answer.

Friday, October 14, 2011

Long-distance convergence

The first picture tracks the achieved percentage reduction in a certain minimization objective function value (a shortest path distance) relative to it's initial value, over time.



Not monotone convergence, but still pretty good, and the relative gap finally goes close enough to zero (within a tolerance of 0.5%). Most would be happy to see this solution performance on any O.R decision problem instance in practice.

The next picture tracks the raw values corresponding to the first plot - the shortest path in miles, between the location of my ORMS job and that of my wife's (non ORMS job). The time scale is in years. This also happens to be the commute distance (logarithmic scale).



Average convergence rate = 581 miles/year
Total cost incurred = 27,500 mile-years (counting from year "-2")

Sometimes, superlinear convergence feels terribly slow, but in this era of labor restrictions, we'll chalk this down in the 'wins' column.

Saturday, October 8, 2011

Jumbo decision models to protect the environment

As the population increase in India leads to scarce resources becoming scarcer, villagers in rural India increasingly encroach on jungle areas and vice-versa. In Orissa, the government has decided to take the help of elephants to manage this conflict.

This is a true story.


These magnificent, emotional multi-tuskers with a long trunk and an even longer memory, are much loved and venerated in India. Loved this particular song sequence as a kid.




Elephants require relatively larger habitats to survive, and in recent times, we increasingly hear of elephants and other wild animals in India going on the rampage among civilian populations located close to their territory.

To tackle this problem, the government of Orissa (a beautiful, culturally rich state in eastern India) came up with a novel control method based on self-governance: train 50 Col. Hathis and position them at vantage points. These smart jumbos serve dual purposes:

Online: actively discourage militant pachyderms from venturing too far out

Offline: speed up the learning curve for newbie wild elephants undergoing training.

An initial pilot has been successful.  Read this brief but amazing report for the real costs involved, benefits that can be realized, and the encouraging preliminary results.An interesting O.R. challenge is to maximize the effectiveness of this method without adding additional capital expenses. How should the forest officers position these limited number of smart elephants to maximize their effectiveness in controlling the herds? For example: given p 'Kunki' elephants, we can determine an optimal positioning of these elephants by solving the corresponding p-median like location-allocation problem to better control intrusions, cover more (convex?) territory, or utilize fewer Kunkis to effectively accomplish the same task.

Is this a first example of how OR and elephants can combine to help protect the environment?

Credits

A Jumbo-sized thanks to the brilliant and multi-talented Vijayendra Mohanty for inspiring this post.

This post is humbly dedicated to Shehla Masood (1973-2011).

How long is a game of snakes and ladders?

The detailed answer can be found here. You can stop right now or roll the dice and play on ...

The game originated in India more than 800 years ago and is still popular there. Other board games (Chaturangam or chess, and Pachisi or Ludo) also originated here, and a future post will explore the familiar stochastic OR topic of 'a gambler's ruin' in ancient India. Here's a picture of a native SNL board. The original Indian name of the SNL game translates to 'the path to salvation' and was supposed to be morally educational as well as enjoyable for kids. It's actually pretty profound.

From an Operations Research perspective, the game can be modeled as a Markov Chain. The moral lessons for kids in the Markovian property of SNL seems to be that no matter how terrible a path you took to get to a certain point, you retain the same possibility of salvation by consistently performing good deeds. Note the absence of any non-Markovian historical baggage of original sin. Similarly, a lifetime of virtuousness can be temporarily undone by a single big act of indiscretion that can literally bring you back to square one. As kids, we always felt nervous about the long snake lurking around the 99th square waiting to yank us down.

Per the paper (linked above) published in 1993, simulations indicated that the average number of moves for a 10X10 square game of SNL was around 39. More precisely, using the Markov Chain state transition equations, the authors (Althoen, King, and Schilling) calculate the exact expected number of moves in the "Milton Bradley version of Chutes and Ladders" to be equal to this impressive but twitter-unfriendly ratio:

225837582538403273407117496273279920181931269186581786048583
5757472998140039232950575874628786131130999406013041613400

or approximately 39.2. Other interesting results based on a sensitivity analysis of this value wrt adding or dropping snakes and/or ladders include:
- a six-sided die based game of SNL with no snakes or ladders lasts around 33 moves on average. A unit snake seemingly prolongs the game more than a ladder can speed it up. I felt that pretty acutely as a kid. Yet again, in true Steve Jobsian fashion (or maybe not), it turns out that the seemingly idle SNL time in Bangalore, India was a solid foundation for a career in O.R practice.

Wednesday, September 21, 2011

Anatomy of a scam

Once, even twice is a coincidence. But three is a pattern worthy of a second look.

Exhibit 1: The financial monoliths that rode the cash wave in an ocean of American tax payer money have pretty much gotten away scot-free. Their criminal greed has been marketed as a simple combination of market upredictability, non-robust math models, and corporate irresponsibility.

Exhibit 2: The response from the Pakistani government after the double-tap delivered to Osama Bin Laden a few hundred yards away from their West Point, was to admit 'gross incompetence' rather than confess to any willing participation in hiding a notorious fugitive. No punishment and continued pouring of billions of dollars down the drain. They happily take out a full page Ad in the Wall Street Journal on the 11th of this month to celebrate.

Exhibit 3: The government of India is for all practical purposes run by the Darth Vader-like Italian-born Sonia Maino, who has propped up an equally complicit 80+ year old mute puppet as the prime minister to take the heat. The current regime that has ruled India for 50 of its 60-odd post-independence years is neck deep in a series of corruption scandals and midnight arrests of peaceful anti-corruption activists. The most blatant of these is the so-called '2G scam', where billions of dollars (1.86 trillion ₹) worth of public money in form of lucrative bandwidth was all but given away to friends and family. Only the most junior ministers (belonging to the coalition-party :) are in jail. Their defense is rather innovative but inevitably based on this same theme - 'negligence' and 'uncertainty', rather than admitting to any criminal wrong-doing or fraud.

Case 3 is an interesting example. This tab has already touched upon it twice before and arguments outlined turned out to be in line with what the Harvard-affiliated anti-corruption lawyer Dr. Subramanyam Swami used in his own article to describe the reasons for the mess.

The defense in all three examples of colossal fraud essentially argue that they merely maintained the 'status quo', claiming ignorance of the true value of doing the (obviously) right thing. Their second line of attack is to plead down the severity of the charge all the way to a misdemeanor. In exhibit 3, this is being done along the following flimsy lines "since the true value of the resource can only be determined if an auction had actually taken place, the figures quoted are cooked up by vested interests". Two factors go against such an argument:

1. This figure was calculated by a government agency (!) - the Comptroller and Auditor General (CAG).

2. Unless the CAG has performed a rigorous math-based analysis and run simulations to determine the maximal revenue obtainable from selling a scarce resource in a gigantic market like India, the quoted figure that was based on an average or a reasonable auction scenario is more likely to be a lower bound on the true cost of the swindle.

How dependable are 'opportunity cost', and more generally such "if" based decision models? A paper that I co-authored as a student of civil engineering many years ago happens to be based on this idea and was used in highway resource planning in Virginia. Often times, business value of an analytics idea can only be viably demonstrated by calculating 'what would have happened to a set of past outcomes had this OR method been used instead". On the other hand, if a researcher were to build up a ladder that consists of several degrees of conditional dependence to arrive at a final value, then such chain-of-events driven claims have to closely scrutinized to ensure that we simply do not end up with 'noise'.

Sunday, September 18, 2011

Book Review: Five Point Someone

5.someone is not a book about Operations Research. It is the title of a wildly successful first book by Chetan Bhagat in 2004. He is now India's most successful English paperback novelist. While 5.s is primarily an entertaining waiting-room read, it is also an indictment of India's higher education system that has so successfully strangled creativity. Nowhere is this 'success' more visible than in India's elite Institutes of Technology (IIT) that have incredibly low acceptance rates. While the IITs have indeed become a great global brand name, they have also failed to meet India's genuine domestic engineering and technological R&D needs. Having scraped through this very system a couple of decades ago (only recently have the resultant PTSD symptoms gone away!), the urge to relive the past was non-existent until recently when the hilarious movie version came out and commented on here. Also found some O.R connections in the plot, which is the main reason for this post.

The story is about three brilliant high-school students "who never came second in their class ever" until they make it into the IIT's mechanical engineering program, where their Grade-Point Average (GPA) is in the 5.0/10.0 region that relegates them to the back-benches. The story is about the combined desperate attempts of these 'three idiots' to push that magic number up into a respectable region before they graduate, while at the same time, allocating a respectable amount of time for all-night weed-Vodka sessions with Pink-Floyd on the rooftop of their dormitory building. The resulting series of comic failures within this GPA mouse race (since "rats are smart") includes a near-suicidal jump from the 9th floor of a campus building. Furthermore, one of the three 'idiots' is dating the daughter of their arch nemesis, the Mech HoD (see 'translations' at the end of this post) who happens to teach Indem (i.e. Operations Research and Management Science).

The story took an interesting turn for me when i discovered that the villain of the piece is an OR guy. His first scene in the book has him lecturing about scarce resource scheduling and management in a garment-tailoring factory setting. The resultant mathematical analysis leads to 'optimization equations' which at least one of the idiots finds extremely interesting. Great. However, the smartest of the three idiots differs and criticizes this abstract reduction of human effort to equations saying that 'these are people we are talking about, not robots'. Nevertheless, this doesn't discourage them from optimally pooling their resources and partitioning their classroom attendance to reduce their effort by 66% while also maintaining their GPA. They also estimate the probability-weighted cost of traffic cop fines if they were in fact caught triple-riding on the motor scooter owned by one of them to be far less than the accrued benefits.

Response from Critics
The style of writing is informal and filled with campus-slang Indian English, which may affect a few sensibilities and result in some wincing for those who read 'seriously good' contemporary Indian authors like Aatish Taseer. The author (then a rank amateur and an engineering techie) typed the whole thing up himself using MS Word. The book is available at Amazon, where the critical ratings, mostly based on all too-serious analysis of the language style and delivery, are at odds with the unprecedented popularity of the substance of the book within India itself. One reason is that most Indian students are required to be reasonably fluent in 2-4 Indian languages (apart from English, C, C++, Java, ...) in addition to being exposed to dangerously high radiation levels of math and science. Consequently, they never get a chance or feel the need to master any one of these languages until it is too late (this tab is a classic example). The book can be enjoyable if you can cut through the almost blog-like writing style as well as some awkwardly written situations, and let your inner undergrad-rebel escape. The incidents described in the book are something that engineering students across India, both in and out of the IIT system, can readily identify with. The U.S education system with its growing and almost exclusive emphasis on standardized testing and credentialing (i.e the "degree"), along with a reduction in the overall number of quality tech jobs, may well be on its way there too.

Translation
Mech = Mechanical Engineering
HoD = Head of Department
Indem = Industrial Engineering and Management
Mugger = One who excels in the art of rote-learning
Ragging = Hazing
Arbit = Arbitrary
Parantha = An unleavened Indian flat bread.

Update 9/19/2011: usual typos and more OR ideas in the book.
Update 1/19/2013: Just watched Paper Chase (1973). Let's just say that the plot and some of the scenes described in Chetan Bhagat's book resemble those in the movie, with a low probability of this being a coincidence. (Interestingly, CB was displeased with the low-key credit given to his book in the Bollywood version.)

Saturday, September 10, 2011

In Memoriam: 10 years after O.R's Apollo-13 mission

Two years ago, this tab recognized the amazing but well-hidden contribution of OR practitioners to the post 9-11 recovery plans at US airlines. Does your company have the right people to handle such an emergency? It's almost ten years to the day since OR's finest hour, and after journeying through a couple of different industries since then, my personal conclusion is that it was not a coincidence that those US airlines that best overcame this nightmare also had on their payroll seasoned OR experts.
So it's worth revisiting this topic in a Q&A form to examine the impact that OR can have during such situations. It is not intended to be an 'OR hagiography' - the stock of 'traditional' OR has in fact shrunk drastically since 2001, while some different new avenues have opened up.

Q. Was OR really critical to the post 9-11 schedule recovery effort?
Absolutely. The key ingredient to finding a solution to this 'mother of all one-time decision problems' was the presence of a significant number of experienced personnel in the airline with strong OR skills. why? Large airlines that operate thousands of flights on a daily basis use expensive aircraft that burn precious jet fuel, and are crewed by tens of thousands of trained professionals both on and off the ground. All this requires a well-synchronized and manageable 'program of activities', i.e., schedule of tasks that airplanes and crews follow. Every tiny portion of schedule involves complex combinatorial and constrained decision making to make the best use of these scarce and expensive resources. Nobody in an airline understands and applies the fundamental science behind this (yes, there is one) better than OR folks.

Q. Other than the tragic occasion itself, what was so unique and challenging about this problem in particular?
The scope: mammoth - hundreds of planes and thousands of crews stranded across North America in all kinds of airports.

The stakes: huge - the quicker an airline could get back on its feet to resume normal operations, the less money it bled (the slide into eventual bankruptcy began around the same time period).

The technical challenge: very high, but this was just a part of the problem. Research to design a brand new decision feasibility and optimization model that would be actually operational, and manage a gazillion possibilities that satisfy several new constraints, work well within a brand new implementation that gets around tons of IT and engineering issues within a couple of days - then to be used for a few days before being discarded for ever. This was the perfect R&D storm.

The task: a two-stage problem that would first bring our planes and crews back to their domiciles and then get them back to a regular operational mode through the end of the month.

Q. I'm intrigued. What the heck is "OR" and what kind of OR skills were needed to weather this perfect storm?
I forgot. O.R stands for Operations Research. OR folks tend to be reclusive but do make some noise about duality once in a while. As a rule, we generally believe in hiding our best achievements as well as the real name for our field. Dissident, mediocre OR types believe that we ever so often give away our flagship award ('Edelman') to bungling senior non-OR execs (who then hire OR grads to fix the problems they created), and we all know how well they have run this planet the past decade. Sour grapes aside, OR folks deal with the science and engineering of better. For example, we try our best not to tell you how to run your business, but we can and will tell you how you could run it more efficiently and effectively. Visit informs.org for details.

To the second part of your question: Airline-OR research experience combined with solid implementation skills was the need of the hour. During the high-flying days, airline R&D intellectual property in certain business areas was 2-3 years ahead of the best output from any university. Consequently, the OR crisis team was able to quickly take apart existing business-critical decision systems (that OR guys built and managed in those days) and extract big chunks off the million line monolith of mess-C code for reuse within this one-time model.

Q. I'm now an OR expert, so i'm jumping gears. Computationally, what optimization technique was crucial?
Column generation (and emacs) turned out to be the most important weapon in the arsenal 10 years ago. We were already routinely solving mammoth monthly planning instances and steadily pushing the envelope through intense research into improved algorithms as well as million$ cutting edge parallel hardware that airlines could afford then, so multiplying the problem size by another trillion did not really matter in the end. Now there is flexibility for you.

Q. I never realized that OR, in the right hands, and for the right reasons, would be so powerful and practical. Should every company maintain an OR team?
Any medium to large sized company, and not just airlines, would be well advised to maintain and hold on to an experienced and skilled OR team having some implementation experience. OR is ultimately about practical problem solving rather than an consultancy exercise that leaves critical (and insightful) details as an exercise to the reader. Routine planning problems may well be handled using OR-commodity software packages, but the day that even a mild Apollo-13 like decision problem threatens to disrupt your company's fundamental operations and plans, nobody can help put Humpty-Dumpty together again (and in an optimal and efficient manner) like an OR team can; seen this happen just ten years ago.

Thanks, OR guy. I heard the analytics was the real flavor of this decade and ...
Sorry to cut you short, we are analytics too, for a long time now. We change our names like winamp skins.

Winamp?
yup.

9/13/11: fixed typos