<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>O.R. by the Beach</title>
	<atom:link href="http://orbythebeach.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://orbythebeach.wordpress.com</link>
	<description>Operations Research, Computers, Education, and South Florida</description>
	<lastBuildDate>Fri, 14 Jun 2013 02:17:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='orbythebeach.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/063511adb634d1bf636942fbda8ac591?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>O.R. by the Beach</title>
		<link>http://orbythebeach.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://orbythebeach.wordpress.com/osd.xml" title="O.R. by the Beach" />
	<atom:link rel='hub' href='http://orbythebeach.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Snapple Fact 804: How Many Ways to Make Change for a Dollar?</title>
		<link>http://orbythebeach.wordpress.com/2013/01/27/snapple-fact-804-how-many-ways-to-make-change-for-a-dollar/</link>
		<comments>http://orbythebeach.wordpress.com/2013/01/27/snapple-fact-804-how-many-ways-to-make-change-for-a-dollar/#comments</comments>
		<pubDate>Mon, 28 Jan 2013 02:04:26 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[Constraint Programming]]></category>
		<category><![CDATA[Modeling]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[dollar]]></category>
		<category><![CDATA[snapple fact]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1704</guid>
		<description><![CDATA[I went camping this past weekend (my first time) and my neighbor (who&#8217;s actually my neighbor in real life and was my neighbor at the camp site) was drinking a Snapple and read the following fact back to me: Snapple &#8230; <a href="http://orbythebeach.wordpress.com/2013/01/27/snapple-fact-804-how-many-ways-to-make-change-for-a-dollar/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1704&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://orbythebeach.files.wordpress.com/2013/01/220px-lineartpresrev.png"><img class="alignleft size-full wp-image-1709" alt="220px-LineartPresRev" src="http://orbythebeach.files.wordpress.com/2013/01/220px-lineartpresrev.png?w=500"   /></a>I went camping this past weekend (my first time) and my neighbor (who&#8217;s actually my neighbor in real life and was my neighbor at the camp site) was drinking a Snapple and read the following fact back to me:</p>
<blockquote><p><a href="http://realfacts.snapple.com/dontgochanging/">Snapple Real Fact #804</a>: There are 293 ways to make change for a dollar.</p></blockquote>
<p>My first reaction was &#8220;Mmm&#8230;interesting&#8221;, but I couldn&#8217;t help wondering whether the Snapple folks did their math correctly. So after I got home and unpacked the car, I wrote <a href="http://moya.bus.miami.edu/~tallys/orbtb/dollar.co">a little Constraint Programming code in Comet</a> to check this fact. It turns out that the number is indeed 293 if the following two things are allowed: (i) returning a 1-dollar coin in exchange for a dollar bill, and (ii) using half-dollar coins which, in my opinion, are rare these days. Here&#8217;s <a href="http://moya.bus.miami.edu/~tallys/orbtb/change-with-halfdollar.txt">a list of the 292 ways</a> that do not include using a 1-dollar coin which, in my opinion, isn&#8217;t really &#8220;giving change&#8221;.</p>
<p>If you&#8217;re wondering how many ways there are when you&#8217;re not allowed to use 1-dollar or half-dollar coins, the answer is 242. Here&#8217;s <a href="http://moya.bus.miami.edu/~tallys/orbtb/change-without-halfdollar.txt">a list of all such possible ways</a>.</p>
<p><strong>Update:</strong> A friend asked me what the number would be if we considered the quarters from each of the 50 states as a different coin. In that case the number of possible ways increases to 515,184 (including the 1-dollar coin).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1704/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1704&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2013/01/27/snapple-fact-804-how-many-ways-to-make-change-for-a-dollar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>

		<media:content url="http://orbythebeach.files.wordpress.com/2013/01/220px-lineartpresrev.png" medium="image">
			<media:title type="html">220px-LineartPresRev</media:title>
		</media:content>
	</item>
		<item>
		<title>What Do Locker Rooms, Airplanes, and Urinals Have in Common?</title>
		<link>http://orbythebeach.wordpress.com/2013/01/04/what-do-locker-rooms-airplanes-and-urinals-have-in-common/</link>
		<comments>http://orbythebeach.wordpress.com/2013/01/04/what-do-locker-rooms-airplanes-and-urinals-have-in-common/#comments</comments>
		<pubDate>Fri, 04 Jan 2013 13:25:05 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Heuristics]]></category>
		<category><![CDATA[Modeling]]></category>
		<category><![CDATA[airplane boarding]]></category>
		<category><![CDATA[gym]]></category>
		<category><![CDATA[interference]]></category>
		<category><![CDATA[locker room]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1686</guid>
		<description><![CDATA[If you go (or have ever gone) to a reasonably large gym, you might have encountered the typical locker room changing area. It looks like this: If you go to the gym regularly (or have been a regular gym goer &#8230; <a href="http://orbythebeach.wordpress.com/2013/01/04/what-do-locker-rooms-airplanes-and-urinals-have-in-common/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1686&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>If you go (or have ever gone) to a reasonably large gym, you might have encountered the typical locker room changing area. It looks like this:</p>
<p><a href="http://orbythebeach.wordpress.com/?attachment_id=1687" rel="attachment wp-att-1687"><img class="aligncenter size-full wp-image-1687" alt="locker" src="http://orbythebeach.files.wordpress.com/2013/01/locker.jpg?w=500&#038;h=666" width="500" height="666" /></a></p>
<p>If you go to the gym regularly (or have been a regular gym goer at some point in your life), you might have noticed an issue that arises with some frequency: the locker you&#8217;re trying to access is very close to one in front of which someone else is standing (because their locker is right next to yours). I&#8217;ll refer to this phenomenon as <em>interference</em>. Interference is annoying because it creates that awkward situation in which you stand there trying to be polite and wait for the other person to finish, while at the same time getting upset because you&#8217;re wasting your precious time: &#8220;Man, I was hoping to be finished with my workout in 45 minutes. I gotta go back to the office and work on that integer programming model. Why does this guy take so long to tie his shoes?&#8221;</p>
<p>Interference occurs in other places, of course; hence the title of this post. When boarding planes, airlines try to be as efficient as possible, that is, they try to get everyone in their seats and ready to go in the shortest possible time. What is interference during the boarding of a plane? It&#8217;s when passengers that are standing in the aisle (e.g., because they&#8217;re still trying to put their carry-on in the overhead bin) block the passage of other passengers whose seats are further down the aisle. You might think that the obvious solution is to board everyone starting from the back of the plane towards the front, right? Well, maybe. Back-to-front boarding is intuitively good, but there are other issues at play: some passengers have priority, not everyone is there when boarding starts, etc. Another strategy that seems to work well is a hybrid of back-to-front with window-to-aisle. As you might have guessed, people have used optimization and simulation to try and come up with good boarding strategies. One of these studies was published in the journal Interfaces in 2005: <a href="http://interfaces.journal.informs.org/content/35/3/191.abstract">&#8220;America West Airlines Develops Efficient Boarding Strategies&#8221;</a>. This is an interesting read, and I recommend it.</p>
<p>Where else does interference occur? <a href="http://blog.xkcd.com/2009/09/02/urinal-protocol-vulnerability/">This XKCD blog post</a> talks about the International Choice of Urinal Protocol:</p>
<blockquote><p>&#8230;the basic premise is that the first guy picks an end urinal, and every subsequent guy chooses the urinal which puts him furthest from anyone else peeing.  At least one buffer urinal is required between any two guys or Awkwardness ensues.</p></blockquote>
<p>Randall then proceeds to analyze this protocol and concludes that it suffers from a problem of underutilization of the available urinals, depending on how many of them there are. However, if guys are smart when picking urinals, they can achieve the optimal utilization (50%).</p>
<p>Now back to the locker room interference problem (which is the one that bothers me most lately). Let&#8217;s try to figure out the source of the problem and propose a solution to it. When you arrive at the University of Miami gym (known as the <a href="http://www.miami.edu/sa/index.php/wellness_center/">Wellness Center</a>), you hand in your ID to an attendant who, in return, hands you a key that&#8217;s taken from a set of drawers that look like this (men&#8217;s lockers on the left, women&#8217;s on the right):</p>
<p><a href="http://orbythebeach.wordpress.com/?attachment_id=1693" rel="attachment wp-att-1693"><img class="aligncenter size-full wp-image-1693" alt="keydrawers" src="http://orbythebeach.files.wordpress.com/2013/01/keydrawers.jpg?w=500&#038;h=375" width="500" height="375" /></a></p>
<p>A key comes out of the drawer and your ID goes in. Interference is created because the attendants do not (and cannot) remember which keys they have handed out recently and what the layout of the locker room looks like. (By the way, locker numbers are not in perfect sequence in the Wellness Center; numbers jump around and you frequently see people who are lost looking for their lockers.) Ideally, what we&#8217;d like to happen is for keys to be handed out in such a way that they send the next person to a locker that is far away from the last few lockers that were given away. There are other complicating issues, of course, such as the fact that you cannot control the people who are returning from their workouts, but at least you can reduce interference among new arrivals.</p>
<p>We don&#8217;t need to write a mathematical model for this (or do we?). Why not pre-calculate an optimal sequence of locker hand-outs (based on the locker room layout), sort the drawers in that sequence (left to right, top to bottom), and have the attendants hand out keys in this order, cycling back to the top after they reach the last drawer? It won&#8217;t be perfect, but it sure will be better than the current system.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1686/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1686/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1686&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2013/01/04/what-do-locker-rooms-airplanes-and-urinals-have-in-common/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>

		<media:content url="http://orbythebeach.files.wordpress.com/2013/01/locker.jpg" medium="image">
			<media:title type="html">locker</media:title>
		</media:content>

		<media:content url="http://orbythebeach.files.wordpress.com/2013/01/keydrawers.jpg" medium="image">
			<media:title type="html">keydrawers</media:title>
		</media:content>
	</item>
		<item>
		<title>2012 in Review</title>
		<link>http://orbythebeach.wordpress.com/2013/01/01/2012-in-review/</link>
		<comments>http://orbythebeach.wordpress.com/2013/01/01/2012-in-review/#comments</comments>
		<pubDate>Tue, 01 Jan 2013 18:29:20 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1683</guid>
		<description><![CDATA[The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here&#8217;s an excerpt: 4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 56,000 views in 2012. If each view were a film, this &#8230; <a href="http://orbythebeach.wordpress.com/2013/01/01/2012-in-review/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1683&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.</p>
<p><a href="http://orbythebeach.wordpress.com/2012/annual-report/"><img alt="" src="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/2012-emailteaser.png" width="100%" /></a></p>
<p>Here&#8217;s an excerpt:</p>
<blockquote><p>4,329 films were submitted to the 2012 Cannes Film Festival. This blog had <strong>56,000</strong> views in 2012. If each view were a film, this blog would power 13 Film Festivals</p></blockquote>
<p><a href="http://orbythebeach.wordpress.com/2012/annual-report/">Click here to see the complete report.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1683/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1683&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2013/01/01/2012-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>

		<media:content url="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/2012-emailteaser.png" medium="image" />
	</item>
		<item>
		<title>Promote O.R. by Taking Folks by Surprise</title>
		<link>http://orbythebeach.wordpress.com/2012/12/04/promote-o-r-by-taking-folks-by-surprise/</link>
		<comments>http://orbythebeach.wordpress.com/2012/12/04/promote-o-r-by-taking-folks-by-surprise/#comments</comments>
		<pubDate>Tue, 04 Dec 2012 15:43:03 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[Holidays]]></category>
		<category><![CDATA[Promoting OR]]></category>
		<category><![CDATA[holidays]]></category>
		<category><![CDATA[promoting]]></category>
		<category><![CDATA[surprise]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1673</guid>
		<description><![CDATA[Due to a number of things that have been keeping me busy, including a 20-day fight against a kidney stone that is now finally over, I haven&#8217;t had much time to post. I have two ideas that I plan to &#8230; <a href="http://orbythebeach.wordpress.com/2012/12/04/promote-o-r-by-taking-folks-by-surprise/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1673&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Due to a number of things that have been keeping me busy, including a 20-day fight against a kidney stone that is now finally over, I haven&#8217;t had much time to post. I have two ideas that I plan to turn into posts soon, but in the meantime I&#8217;d like to suggest that everyone write a post about &#8220;santa claus&#8221; and &#8220;reindeer&#8221; (and properly tag it with those words). As the picture below indicates, I&#8217;ve been getting a lot of hits lately (way above average) and, digging deeper, I see that my post entitled &#8220;<a href="http://orbythebeach.wordpress.com/2011/12/20/how-should-santa-pair-up-his-reindeer/">How Should Santa Pair Up His Reindeer?</a>&#8221; has had 2,209 views this past week. Yay for Christmas!</p>
<p><a href="http://orbythebeach.wordpress.com/2012/12/04/promote-o-r-by-taking-folks-by-surprise/screen-shot-2012-12-04-at-10-27-15-am/" rel="attachment wp-att-1674"><img class="aligncenter size-full wp-image-1674" alt="Screen Shot 2012-12-04 at 10.27.15 AM" src="http://orbythebeach.files.wordpress.com/2012/12/screen-shot-2012-12-04-at-10-27-15-am.png?w=500"   /></a>As a matter of fact, I suggest that everyone write a post about each special date of the year (Easter, <a href="http://orbythebeach.wordpress.com/2012/07/16/fourth-of-july-logistics-in-coral-gables-no-or-no-glory/">Fourth of July</a>, <a href="http://orbythebeach.wordpress.com/2011/02/04/transporting-flowers-with-love/">Valentine&#8217;s Day</a>, <a href="http://orbythebeach.wordpress.com/2011/11/29/choosing-summer-camps-for-your-kids/">Summer Camp</a>, etc.). Those will keep bringing you recurring visits, without any extra effort, year after year. Of course not all (in fact, most) of those visits will be here for O.R. But that&#8217;s the point! If we want to spread the word about O.R. we&#8217;ve got to take people by surprise. &#8220;I was just looking for a cute reindeer picture and this guy blew my mind by showing me that math and reindeer have something to do with each other! How cool is that!&#8221;</p>
<p>BTW, I just realized I do not have an Easter post. I need to take care of this&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1673/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1673&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2012/12/04/promote-o-r-by-taking-folks-by-surprise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>

		<media:content url="http://orbythebeach.files.wordpress.com/2012/12/screen-shot-2012-12-04-at-10-27-15-am.png" medium="image">
			<media:title type="html">Screen Shot 2012-12-04 at 10.27.15 AM</media:title>
		</media:content>
	</item>
		<item>
		<title>Tuesday&#8217;s Treasures, Wednesday&#8217;s Winner, and Final Farewells</title>
		<link>http://orbythebeach.wordpress.com/2012/10/17/tuesdays-treasures-wednesdays-winner-and-final-farewells/</link>
		<comments>http://orbythebeach.wordpress.com/2012/10/17/tuesdays-treasures-wednesdays-winner-and-final-farewells/#comments</comments>
		<pubDate>Wed, 17 Oct 2012 17:53:15 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[Conferences and Events]]></category>
		<category><![CDATA[INFORMS]]></category>
		<category><![CDATA[phoenix]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1668</guid>
		<description><![CDATA[Here&#8217;s my last post for this year&#8217;s INFORMS conference. Miami, here I come!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1668&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://meetings2.informs.org/wordpress/phoenix2012/tuesdays-treasures-wednesdays-winner-and-final-farewells/">Here&#8217;s my last post for this year&#8217;s INFORMS conference.</a> Miami, here I come!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1668/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1668&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2012/10/17/tuesdays-treasures-wednesdays-winner-and-final-farewells/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>
	</item>
		<item>
		<title>Monday Monday, So Good To Me</title>
		<link>http://orbythebeach.wordpress.com/2012/10/16/monday-monday-so-good-to-me/</link>
		<comments>http://orbythebeach.wordpress.com/2012/10/16/monday-monday-so-good-to-me/#comments</comments>
		<pubDate>Tue, 16 Oct 2012 16:38:27 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[Conferences and Events]]></category>
		<category><![CDATA[INFORMS]]></category>
		<category><![CDATA[phoenix]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1666</guid>
		<description><![CDATA[Here&#8217;s my second entry to the INFORMS Conference blog in Phoenix. Enjoy!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1666&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://meetings2.informs.org/wordpress/phoenix2012/monday-monday-so-good-to-me/">Here&#8217;s my second entry to the INFORMS Conference blog in Phoenix</a>. Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1666/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1666&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2012/10/16/monday-monday-so-good-to-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>
	</item>
		<item>
		<title>Some Cool Things I Learned on Sunday</title>
		<link>http://orbythebeach.wordpress.com/2012/10/15/some-cool-things-i-learned-on-sunday/</link>
		<comments>http://orbythebeach.wordpress.com/2012/10/15/some-cool-things-i-learned-on-sunday/#comments</comments>
		<pubDate>Mon, 15 Oct 2012 14:00:38 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[Conferences and Events]]></category>
		<category><![CDATA[INFORMS]]></category>
		<category><![CDATA[phoenix]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1662</guid>
		<description><![CDATA[I&#8217;m blogging for the INFORMS conference in Phoenix this year (as I did last year in Charlotte). Check out my (late-night) Sunday post.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1662&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m blogging for the INFORMS conference in Phoenix this year (as I did last year in Charlotte). <a href="http://meetings2.informs.org/wordpress/phoenix2012/some-cool-things-i-learned-on-sunday/">Check out my (late-night) Sunday post.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1662/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1662&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2012/10/15/some-cool-things-i-learned-on-sunday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>
	</item>
		<item>
		<title>Looking Forward to Phoenix: My Video</title>
		<link>http://orbythebeach.wordpress.com/2012/09/20/looking-forward-to-phoenix-my-video/</link>
		<comments>http://orbythebeach.wordpress.com/2012/09/20/looking-forward-to-phoenix-my-video/#comments</comments>
		<pubDate>Thu, 20 Sep 2012 14:19:42 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[INFORMS]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[arizona]]></category>
		<category><![CDATA[phoenix]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1655</guid>
		<description><![CDATA[INFORMS is encouraging everyone to create a video explaining what they&#8217;re looking forward to at the upcoming meeting in Phoenix. Here&#8217;s an excerpt from their page: We are very excited about our Annual conference in Phoenix this year and we &#8230; <a href="http://orbythebeach.wordpress.com/2012/09/20/looking-forward-to-phoenix-my-video/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1655&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>INFORMS is encouraging everyone to create a video explaining what they&#8217;re looking forward to at the upcoming meeting in Phoenix. Here&#8217;s an excerpt from <a href="http://meetings2.informs.org/phoenix2012/contest/">their page</a>:</p>
<blockquote><p>We are very excited about our Annual conference in Phoenix this year and we hope you are too! Take a short video (under four minutes) telling or showing us why you are excited to attend the meeting and we&#8217;ll send you one of our fun INFORMS t-shirts!</p></blockquote>
<p>I couldn&#8217;t resist; I want one of those T-shirts! So I made a short video with my views and expectations. Here it is (you can also <a href="http://www.youtube.com/watch?v=TiVYNLkWybc">watch it on my YouTube channel</a>):</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='360' src='http://www.youtube.com/embed/TiVYNLkWybc?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1655/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1655&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2012/09/20/looking-forward-to-phoenix-my-video/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>
	</item>
		<item>
		<title>Did You See Any OR During Apple&#8217;s iPhone 5 Announcement? I did!</title>
		<link>http://orbythebeach.wordpress.com/2012/09/13/did-you-see-any-or-during-apples-iphone-5-announcement-i-did/</link>
		<comments>http://orbythebeach.wordpress.com/2012/09/13/did-you-see-any-or-during-apples-iphone-5-announcement-i-did/#comments</comments>
		<pubDate>Thu, 13 Sep 2012 14:37:44 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Motivation]]></category>
		<category><![CDATA[Promoting OR]]></category>
		<category><![CDATA[assignment]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[manufacturing]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1644</guid>
		<description><![CDATA[On September 12, Apple finally announced its much-awaited iPhone 5. I didn&#8217;t have time to watch the keynote speech, but I watched the shorter 7-minute video that&#8217;s posted on Apple&#8217;s web site featuring Jony Ive, Apple&#8217;s Senior Vice President, Design. &#8230; <a href="http://orbythebeach.wordpress.com/2012/09/13/did-you-see-any-or-during-apples-iphone-5-announcement-i-did/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1644&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>On September 12, Apple finally announced its much-awaited iPhone 5. I didn&#8217;t have time to watch the keynote speech, but I watched the shorter 7-minute video that&#8217;s posted on Apple&#8217;s web site featuring Jony Ive, Apple&#8217;s Senior Vice President, Design. In that video, at around the 5-minute, 26-second mark, something they said caught my attention: the way they put parts together during the assembly process. I encourage you to watch that part of the video before reading on.</p>
<p>Jony Ive says:</p>
<blockquote><p>Never before, have we built a product with this extraordinary level of fit and finish. We&#8217;ve developed manufacturing processes that are our most complex and ambitious.</p></blockquote>
<p>And on Apple&#8217;s web site, they say this:</p>
<blockquote><p>During manufacturing, each iPhone 5 aluminum housing is photographed by two high-powered 29MP cameras. A machine then examines the images and compares them against 725 unique inlays to find the most precise match for every single iPhone.</p></blockquote>
<p>So let&#8217;s see if I understood this correctly. In a typical manufacturing operation, the multiple parts that get put together to create a product are put together without much fuss. A machine makes part A, another machine makes part B, and perhaps a robotic arm or a third machine takes <span style="text-decoration:underline;"><em>any one</em></span> of the many part A&#8217;s that are coming down a conveyor belt and attaches it to <span style="text-decoration:underline;"><em>any one</em></span> of the many part B&#8217;s that are coming down another conveyor belt. What Apple did was to improve on the &#8220;any one&#8221; choice. I don&#8217;t know if Apple pioneered this idea, I&#8217;d say probably not, but this is the first time I hear about something like this. If you&#8217;ve seen this before, let me know in the comments.</p>
<p>Before OR comes into play, Computer Science does its job in the form of <a href="http://en.wikipedia.org/wiki/Computer_vision">computer vision</a> / <a href="http://en.wikipedia.org/wiki/Image_processing">image processing</a> algorithms. The photographs of the parts are analyzed and (I&#8217;m guessing) a fitness score is calculated for every possible matching pair of parts A (the housing) and B (the inlay). What happens next? How do they pick the winning match? Here are some possibilities:</p>
<ol>
<li>Each part A is matched with the part B, among the 725 candidates, that produces the best matching score.</li>
<li>A 725 by 725 matrix of fitness scores is created between 725 parts of type A and 725 parts of type B, and the best 725 matches are chosen so as to maximize the overall fitness score (i.e. the sum of the fitness scores of all the chosen matches).</li>
<li>Proceed as in the previous case, but pick the 725 matches that maximize the minimum fitness score. That is, we worry about the worst case and don&#8217;t let the worst match be too bad when compared to the best match.</li>
</ol>
<p>After these 725 pairs are put together, new sets of parts A and B come down the conveyor belt and the matching process is repeated. Possibility number 1 is the fastest (e.g. do a <a href="http://en.wikipedia.org/wiki/Binary_search_algorithm">binary search</a>, or build a <a href="http://en.wikipedia.org/wiki/Priority_queue">priority queue</a>), but not necessarily the best because every now and then a bad match will have to be made. Possibilities 2 (an <a href="http://en.wikipedia.org/wiki/Assignment_problem">assignment problem</a>) and 3 (assignment problem with a max-min objective) are better, in my opinion, with the third one being my favorite. They are, however, more time consuming than possibility 1. Jony Ive says the choice is made &#8220;instantaneously&#8221;, which doesn&#8217;t preclude something fancier than possibility 1 from being used given the assignment problems are pretty small.</p>
<p>The result? In the words of Jony Ive:</p>
<blockquote><p>The variances from product to product, we now measure in microns.</p></blockquote>
<p>It is well-known that OR plays a very important role in manufacturing (facility layout, machine/job scheduling, etc.) but it&#8217;s not every day that people stop to think about what happens in a manufacturing plant. This highly-popular announcement being watched by so many people around the world painted a very clear picture of the kinds of problems high-tech manufacturing facilities face. I think it&#8217;s a great example of what OR can do, and how relevant it is to our companies and our lives.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1644/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1644&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2012/09/13/did-you-see-any-or-during-apples-iphone-5-announcement-i-did/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>
	</item>
		<item>
		<title>Adjusting Microwave Cook Times with OR: Inspired By An xkcd Comic</title>
		<link>http://orbythebeach.wordpress.com/2012/09/10/adjusting-microwave-cook-times-with-or-inspired-by-an-xkcd-comic/</link>
		<comments>http://orbythebeach.wordpress.com/2012/09/10/adjusting-microwave-cook-times-with-or-inspired-by-an-xkcd-comic/#comments</comments>
		<pubDate>Mon, 10 Sep 2012 13:00:17 +0000</pubDate>
		<dc:creator>orbythebeach</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Integer Programming]]></category>
		<category><![CDATA[Modeling]]></category>
		<category><![CDATA[cook time]]></category>
		<category><![CDATA[microwave]]></category>
		<category><![CDATA[xkcd]]></category>

		<guid isPermaLink="false">http://orbythebeach.wordpress.com/?p=1587</guid>
		<description><![CDATA[I&#8217;m a big fan of xkcd.com, a webcomic written by Randall Munroe. Last Monday&#8217;s comic, entitled &#8220;Nine&#8221;, became the inspiration for this post. Here it is: The alt-text reads: FYI: If you get curious and start trying to calculate the &#8230; <a href="http://orbythebeach.wordpress.com/2012/09/10/adjusting-microwave-cook-times-with-or-inspired-by-an-xkcd-comic/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1587&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m a big fan of <a href="http://xkcd.com/">xkcd.com</a>, a webcomic written by Randall Munroe. <a href="http://xkcd.com/1103/">Last Monday&#8217;s comic</a>, entitled &#8220;Nine&#8221;, became the inspiration for this post. Here it is:</p>
<p><a href="http://orbythebeach.files.wordpress.com/2012/09/nine.png"><img class="aligncenter size-full wp-image-1589" title="nine" src="http://orbythebeach.files.wordpress.com/2012/09/nine.png?w=500" alt=""   /></a></p>
<p>The alt-text reads:</p>
<blockquote><p>FYI: If you get curious and start trying to calculate the time adjustment function that minimizes the gap between the most-used and least-used digit (for a representative sample of common cook times) without altering any time by more than 10%, and someone asks you what you&#8217;re doing, it&#8217;s easier to just lie.</p></blockquote>
<p>It seems Randall is trying to find (or has already found) a closed-form function to accomplish this task. I don&#8217;t endorse number discrimination either; unlike my wife who insists on adjusting restaurant tips so that the cents portion of the total amount is either zero or 50, but I digress&#8230; I&#8217;m not sure exactly how to find these adjusted cook times with a closed-form function, but I can certainly do it with OR, more specifically with an integer program. So here we go. For simplicity, I&#8217;ll restrict myself to cook times under 10 minutes.</p>
<p>Let&#8217;s begin with an example. As I think about the microwave usage in my house, I end up with the following cook times and how often each one is used:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cbegin%7Btabular%7D%7Bc%7Cc%7D++%7B%5Cbf+Cook+Time%7D+%26+%7B%5Cbf+Usage+Frequency+%28%5C%25%29%7D+%5C%5C++%5Chline++%3A30+%26+20+%5C%5C++1%3A00+%26+30+%5C%5C++1%3A30+%26+10+%5C%5C++2%3A00+%26+30+%5C%5C++4%3A30+%26+10++%5Cend%7Btabular%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;begin{tabular}{c|c}  {&#92;bf Cook Time} &amp; {&#92;bf Usage Frequency (&#92;%)} &#92;&#92;  &#92;hline  :30 &amp; 20 &#92;&#92;  1:00 &amp; 30 &#92;&#92;  1:30 &amp; 10 &#92;&#92;  2:00 &amp; 30 &#92;&#92;  4:30 &amp; 10  &#92;end{tabular} ' title='&#92;begin{tabular}{c|c}  {&#92;bf Cook Time} &amp; {&#92;bf Usage Frequency (&#92;%)} &#92;&#92;  &#92;hline  :30 &amp; 20 &#92;&#92;  1:00 &amp; 30 &#92;&#92;  1:30 &amp; 10 &#92;&#92;  2:00 &amp; 30 &#92;&#92;  4:30 &amp; 10  &#92;end{tabular} ' class='latex' /></p>
<p>So let&#8217;s first calculate the usage frequency of each digit from zero to nine. The above table can be interpreted in the following way. For every 100 times I use the microwave, 20 of those times I type a 3 followed by a zero (to input a 30-second cook time), 30 of those times I type a 1 followed by two zeroes, etc. Therefore, during these 100 uses of the microwave, I type a total of 280 digits. Out of those 280 digits, 160 are zeroes, 40 are 1&#8242;s, 30 are 2&#8242;s, and so on. Hence, the usage frequency of zero—the most-used digit—is <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B160%7D%7B280%7D+%5Capprox+57.1%5C%25&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{160}{280} &#92;approx 57.1&#92;%' title='&#92;frac{160}{280} &#92;approx 57.1&#92;%' class='latex' />. (Usage frequencies for the remaining digits can be calculated in a similar way.) Digits 5 through 9 are apparently never used in my house, so the current difference between the most-used and least-used digit in my house is (57.1-0)%.</p>
<p>If, as Randall suggests, I&#8217;m allowed to adjust cook times by no more than 10% (up or down) and I want to minimize the difference in usage between the most-used and least-used digit, here&#8217;s one possible adjustment table:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cbegin%7Btabular%7D%7Bc%7Cc%7D++%7B%5Cbf+Original+Cook+Time%7D+%26+%7B%5Cbf+Adjusted+Cook+Time%7D+%5C%5C++%5Chline++%3A30+%26+%3A31+%5C%5C++1%3A00+%26+0%3A58+%5C%5C++1%3A30+%26+1%3A36+%5C%5C++2%3A00+%26+2%3A09+%5C%5C++4%3A30+%26+4%3A47++%5Cend%7Btabular%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;begin{tabular}{c|c}  {&#92;bf Original Cook Time} &amp; {&#92;bf Adjusted Cook Time} &#92;&#92;  &#92;hline  :30 &amp; :31 &#92;&#92;  1:00 &amp; 0:58 &#92;&#92;  1:30 &amp; 1:36 &#92;&#92;  2:00 &amp; 2:09 &#92;&#92;  4:30 &amp; 4:47  &#92;end{tabular} ' title='&#92;begin{tabular}{c|c}  {&#92;bf Original Cook Time} &amp; {&#92;bf Adjusted Cook Time} &#92;&#92;  &#92;hline  :30 &amp; :31 &#92;&#92;  1:00 &amp; 0:58 &#92;&#92;  1:30 &amp; 1:36 &#92;&#92;  2:00 &amp; 2:09 &#92;&#92;  4:30 &amp; 4:47  &#92;end{tabular} ' class='latex' /></p>
<p>Now let&#8217;s compare the usage frequency of each digit before and after the adjustment:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=%5Cbegin%7Btabular%7D%7Bc%7Ccc%7D++%26+%5Cmulticolumn%7B2%7D%7Bc%7D%7B%5Cbf+Usage+Frequency+%28%5C%25%29%7D%5C%5C++%7B%5Cbf+Digit%7D+%26+%7B%5Cbf+Before+Adjustment%7D+%26+%7B%5Cbf+After+Adjustment%7D+%5C%5C++%5Chline++0+%26+57.1+%26+12+%5C%5C++1+%26+14.3+%26+12+%5C%5C++2+%26+10.7+%26+12+%5C%5C++3+%26+14.3+%26+12+%5C%5C++4+%26+3.6+%26+8+%5C%5C++5+%26+0+%26+12+%5C%5C++6+%26+0+%26+4+%5C%5C++7+%26+0+%26+4+%5C%5C++8+%26+0+%26+12+%5C%5C++9+%26+0+%26+12++%5Cend%7Btabular%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;begin{tabular}{c|cc}  &amp; &#92;multicolumn{2}{c}{&#92;bf Usage Frequency (&#92;%)}&#92;&#92;  {&#92;bf Digit} &amp; {&#92;bf Before Adjustment} &amp; {&#92;bf After Adjustment} &#92;&#92;  &#92;hline  0 &amp; 57.1 &amp; 12 &#92;&#92;  1 &amp; 14.3 &amp; 12 &#92;&#92;  2 &amp; 10.7 &amp; 12 &#92;&#92;  3 &amp; 14.3 &amp; 12 &#92;&#92;  4 &amp; 3.6 &amp; 8 &#92;&#92;  5 &amp; 0 &amp; 12 &#92;&#92;  6 &amp; 0 &amp; 4 &#92;&#92;  7 &amp; 0 &amp; 4 &#92;&#92;  8 &amp; 0 &amp; 12 &#92;&#92;  9 &amp; 0 &amp; 12  &#92;end{tabular} ' title='&#92;begin{tabular}{c|cc}  &amp; &#92;multicolumn{2}{c}{&#92;bf Usage Frequency (&#92;%)}&#92;&#92;  {&#92;bf Digit} &amp; {&#92;bf Before Adjustment} &amp; {&#92;bf After Adjustment} &#92;&#92;  &#92;hline  0 &amp; 57.1 &amp; 12 &#92;&#92;  1 &amp; 14.3 &amp; 12 &#92;&#92;  2 &amp; 10.7 &amp; 12 &#92;&#92;  3 &amp; 14.3 &amp; 12 &#92;&#92;  4 &amp; 3.6 &amp; 8 &#92;&#92;  5 &amp; 0 &amp; 12 &#92;&#92;  6 &amp; 0 &amp; 4 &#92;&#92;  7 &amp; 0 &amp; 4 &#92;&#92;  8 &amp; 0 &amp; 12 &#92;&#92;  9 &amp; 0 &amp; 12  &#92;end{tabular} ' class='latex' /></p>
<p>After the adjustment, the most frequently used digits are 0, 1, 2, 3, 5, 8, and 9 (12% of the time), whereas the least frequently used digits are 6 and 7 (4% of the time). The difference now is 12-4=8%, which is significantly less than 57.1%. In my household, there&#8217;s absolutely no way to do better than that. Guaranteed! (Note: this doesn&#8217;t mean there aren&#8217;t other adjustment tables that achieve the same 8% difference. In fact, there are many other ways to achieve the 8% difference.)</p>
<p>If you&#8217;re curious about how I computed the time-adjustment table, read on. I&#8217;ll explain the optimization model that was run behind the scenes and I&#8217;ll even provide you with an Excel spreadsheet that allows you to compute your own adjusted cook times. Let the fun begin!</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> be the set of typical cook times for the household in question. In my case, <img src='http://s0.wp.com/latex.php?latex=T%3D%5C%7B%5Ctext%7B%3A30%2C+1%3A00%2C+1%3A30%2C+2%3A00%2C+4%3A30%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T=&#92;{&#92;text{:30, 1:00, 1:30, 2:00, 4:30}&#92;}' title='T=&#92;{&#92;text{:30, 1:00, 1:30, 2:00, 4:30}&#92;}' class='latex' />. For each <img src='http://s0.wp.com/latex.php?latex=i+%5Cin+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i &#92;in T' title='i &#92;in T' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=R%28i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R(i)' title='R(i)' class='latex' /> be the set of cook times that fall within 10%—or any other range you want—of <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />. For example, <img src='http://s0.wp.com/latex.php?latex=R%28%5Ctext%7B%3A30%7D%29%3D%5C%7B%5Ctext%7B%3A27%2C+%3A28%2C+%3A29%2C+%3A30%2C+%3A31%2C+%3A32%2C+%3A33%7D%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='R(&#92;text{:30})=&#92;{&#92;text{:27, :28, :29, :30, :31, :32, :33}&#92;}' title='R(&#92;text{:30})=&#92;{&#92;text{:27, :28, :29, :30, :31, :32, :33}&#92;}' class='latex' />. In addition, for each <img src='http://s0.wp.com/latex.php?latex=i+%5Cin+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i &#92;in T' title='i &#92;in T' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=f%28i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(i)' title='f(i)' class='latex' /> be the usage frequency of cook time <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />. In my example, <img src='http://s0.wp.com/latex.php?latex=f%28%5Ctext%7B%3A30%7D%29+%3D+20&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;text{:30}) = 20' title='f(&#92;text{:30}) = 20' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=f%28%5Ctext%7B1%3A00%7D%29%3D30&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='f(&#92;text{1:00})=30' title='f(&#92;text{1:00})=30' class='latex' />, and so on.</p>
<p>For each <img src='http://s0.wp.com/latex.php?latex=i+%5Cin+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i &#92;in T' title='i &#92;in T' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=j+%5Cin+R%28i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j &#92;in R(i)' title='j &#92;in R(i)' class='latex' />, create a binary variable <img src='http://s0.wp.com/latex.php?latex=y_%7Bij%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y_{ij}' title='y_{ij}' class='latex' /> that is equal to 1 if cook time <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> is to be adjusted to cook time <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' />, and equal to zero otherwise. There are <img src='http://s0.wp.com/latex.php?latex=%5Csum_%7Bi+%5Cin+T%7D+%7CR%28i%29%7C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sum_{i &#92;in T} |R(i)|' title='&#92;sum_{i &#92;in T} |R(i)|' class='latex' /> such variables. In my example, 119 of them. Because each original cook time has to be adjusted to (or mapped to) a unique (likely different) cook time, the first constraints of our optimization model are</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Csum_%7Bj+%5Cin+R%28i%29%7D+y_%7Bij%7D+%3D+1%2C+%5Censpace+%5Ctext%7Bfor+all%7D+%5C%3B+i+%5Cin+T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;sum_{j &#92;in R(i)} y_{ij} = 1, &#92;enspace &#92;text{for all} &#92;; i &#92;in T' title='&#92;displaystyle &#92;sum_{j &#92;in R(i)} y_{ij} = 1, &#92;enspace &#92;text{for all} &#92;; i &#92;in T' class='latex' /></p>
<p>To be able to calculate the difference between the most-used and least-used digit (in order to minimize it), we need to know how many times each digit is used. Let this quantity be represented by variable <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' />, for all <img src='http://s0.wp.com/latex.php?latex=d+%5Cin+%5C%7B0%2C1%2C%5Cldots%2C9%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d &#92;in &#92;{0,1,&#92;ldots,9&#92;}' title='d &#92;in &#92;{0,1,&#92;ldots,9&#92;}' class='latex' />. In my house, before the adjustment, <img src='http://s0.wp.com/latex.php?latex=z_0%3D160&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_0=160' title='z_0=160' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=z_1%3D40&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_1=40' title='z_1=40' class='latex' />. We now need to relate variables <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y_%7Bij%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y_{ij}' title='y_{ij}' class='latex' />.</p>
<p>For each <img src='http://s0.wp.com/latex.php?latex=d+%5Cin+%5C%7B0%2C%5Cldots%2C9%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d &#92;in &#92;{0,&#92;ldots,9&#92;}' title='d &#92;in &#92;{0,&#92;ldots,9&#92;}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=j+%5Cin+%5Cbigcup_%7Bi+%5Cin+T%7D+R%28i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j &#92;in &#92;bigcup_{i &#92;in T} R(i)' title='j &#92;in &#92;bigcup_{i &#92;in T} R(i)' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=c_d%28j%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c_d(j)' title='c_d(j)' class='latex' /> equal the number of times digit <img src='http://s0.wp.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> appears in cook time <img src='http://s0.wp.com/latex.php?latex=j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j' title='j' class='latex' />. For example, <img src='http://s0.wp.com/latex.php?latex=c_0%28%5Ctext%7B1%3A00%7D%29%3D2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c_0(&#92;text{1:00})=2' title='c_0(&#92;text{1:00})=2' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=c_3%28%5Ctext%7B1%3A30%7D%29%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c_3(&#92;text{1:30})=1' title='c_3(&#92;text{1:30})=1' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=c_2%28%5Ctext%7B4%3A30%7D%29%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c_2(&#92;text{4:30})=0' title='c_2(&#92;text{4:30})=0' class='latex' />. We are now ready to write the following constraint</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+z_d+%3D+%5Csum_%7Bi+%5Cin+T%7D+%5Csum_%7Bj+%5Cin+R%28i%29%7D+f%28i%29+c_d%28j%29+y_%7Bij%7D%2C+%5Censpace+%5Ctext%7Bfor+all%7D+%5C%3B+d+%5Cin+%5C%7B0%2C%5Cldots%2C9%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle z_d = &#92;sum_{i &#92;in T} &#92;sum_{j &#92;in R(i)} f(i) c_d(j) y_{ij}, &#92;enspace &#92;text{for all} &#92;; d &#92;in &#92;{0,&#92;ldots,9&#92;}' title='&#92;displaystyle z_d = &#92;sum_{i &#92;in T} &#92;sum_{j &#92;in R(i)} f(i) c_d(j) y_{ij}, &#92;enspace &#92;text{for all} &#92;; d &#92;in &#92;{0,&#92;ldots,9&#92;}' class='latex' /></p>
<p>Once the adjusted cook times are chosen by setting the appropriate <img src='http://s0.wp.com/latex.php?latex=y_%7Bij%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y_{ij}' title='y_{ij}' class='latex' /> variables to 1, the above constraint will count the total number of times each digit <img src='http://s0.wp.com/latex.php?latex=d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='d' title='d' class='latex' /> is used, storing that value in <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' />.</p>
<p>Our goal is to minimize the maximum difference, in absolute value, between all distinct pairs of <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' /> variables. Because the absolute value function is not linear, and we want to preserve linearity in our optimization model (why?), I&#8217;m going to use a standard modeling trick. Let <img src='http://s0.wp.com/latex.php?latex=w&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w' title='w' class='latex' /> be a new variable representing the maximum difference between any distinct pair of <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' /> variables. The objective function is simple: <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bminimize%7D+%5C%3B+w&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{minimize} &#92;; w' title='&#92;text{minimize} &#92;; w' class='latex' />. To create a connection between <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=w&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w' title='w' class='latex' />, we include the following constraints in the model</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+z_%7Bd_1%7D+-+z_%7Bd_2%7D+%5Cleq+w%2C+%5Censpace+%5Ctext%7Bfor+all%7D+%5C%3B+d_1+%5Cneq+d_2+%5Cin+%5C%7B0%2C%5Cldots%2C9%5C%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle z_{d_1} - z_{d_2} &#92;leq w, &#92;enspace &#92;text{for all} &#92;; d_1 &#92;neq d_2 &#92;in &#92;{0,&#92;ldots,9&#92;}' title='&#92;displaystyle z_{d_1} - z_{d_2} &#92;leq w, &#92;enspace &#92;text{for all} &#92;; d_1 &#92;neq d_2 &#92;in &#92;{0,&#92;ldots,9&#92;}' class='latex' /></p>
<p>With 10 digits, we end up with 90 such constraints, for a grand total of 105 constraints, plus 130 variables. This model is small enough to be solved with the student version of Excel Solver. I would, however, recommend using <a href="http://opensolver.org/">OpenSolver</a>, if you can.</p>
<p><a href="http://moya.bus.miami.edu/~tallys/orbtb/xkcd-microwave.xlsx">Here&#8217;s my Excel sheet</a> that implements the model described above. It shouldn&#8217;t be too hard to understand, but feel free to ask me questions about it in the comments below. Variable cells are painted gray. Variables <img src='http://s0.wp.com/latex.php?latex=y_%7Bij%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y_{ij}' title='y_{ij}' class='latex' /> are in column E, variables <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' /> are in the range K3:T3, and variable <img src='http://s0.wp.com/latex.php?latex=w&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w' title='w' class='latex' /> is in cell K96. The <img src='http://s0.wp.com/latex.php?latex=c_d%28j%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='c_d(j)' title='c_d(j)' class='latex' /> values and the formulas relating <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' /> with <img src='http://s0.wp.com/latex.php?latex=y_%7Bij%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y_{ij}' title='y_{ij}' class='latex' /> are calculated with the help of SUMIF functions in the range K3:T3. The differences between all pairs of <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' /> variables are in column U. All Solver parameters are already typed in. The final values assigned to <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' /> variables (range K3:T3) represent absolute counts. To obtain the percentages I list above, divide those values by the sum of all <img src='http://s0.wp.com/latex.php?latex=z_d&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z_d' title='z_d' class='latex' />&#8216;s. (The same applies to the value of <img src='http://s0.wp.com/latex.php?latex=w&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='w' title='w' class='latex' /> in cell K96.)</p>
<p>Feel free to modify <a href="http://moya.bus.miami.edu/~tallys/orbtb/xkcd-microwave.xlsx">this spreadsheet</a> with your own favorite cook times and help end number discrimination in the microwaving world! Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/orbythebeach.wordpress.com/1587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/orbythebeach.wordpress.com/1587/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orbythebeach.wordpress.com&#038;blog=7307524&#038;post=1587&#038;subd=orbythebeach&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orbythebeach.wordpress.com/2012/09/10/adjusting-microwave-cook-times-with-or-inspired-by-an-xkcd-comic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/373e2354b27c3ab8cfd20ff8f42e742a?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">orbythebeach</media:title>
		</media:content>

		<media:content url="http://orbythebeach.files.wordpress.com/2012/09/nine.png" medium="image">
			<media:title type="html">nine</media:title>
		</media:content>
	</item>
	</channel>
</rss>
