<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4382616039237652752</id><updated>2011-09-08T09:03:15.272-07:00</updated><title type='text'>Network Optimization on Depiction</title><subtitle type='html'>Depicting Network Optimization work using mapping software and linear programming</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ferrival.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4382616039237652752/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ferrival.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kun</name><uri>http://www.blogger.com/profile/11151100888469786609</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4382616039237652752.post-4381151094300111187</id><published>2009-10-27T09:41:00.000-07:00</published><updated>2009-10-27T20:14:44.410-07:00</updated><title type='text'>Travel in Liechtenstein: Variation of Shortest Path Problem</title><content type='html'>&lt;i&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif; font-size: x-small;"&gt;depiction file: &lt;a href="http://www.megaupload.com/?d=CEYLXQRK"&gt;liech sample.dpn&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif; font-size: x-small;"&gt;excel file: &lt;a href="http://www.megaupload.com/?d=DWK4GYN0"&gt;liech sample2.xlsx&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;This time, for our example, we would set an imaginary trip to one city in Liechtenstein. &amp;nbsp;Suppose we are planning to leave the hotel in the morning, go to an architecture object, and then lunch at a restaurant. &amp;nbsp;There are several other places that we want to visit, but it was so hot that my goal in life is to make sure I get enough fun while traveling on the shortest walking distance ever. Therefore, we can formulate this to be somewhat similar to the shortest path problem. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;Part I: Preparing the Raw Data &lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;First, an imaginary route and attraction is set on the city using &lt;/span&gt;&lt;a href="http://www.depiction.com/"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;Depiction&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;, properly labelled.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_b5kHatHqIOw/SucfjM4WkfI/AAAAAAAAABY/heXFx76uOPE/s1600-h/liech1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_b5kHatHqIOw/SucfjM4WkfI/AAAAAAAAABY/heXFx76uOPE/s320/liech1.jpg" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;Then, as usual, we draw arcs using the road network.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_b5kHatHqIOw/SucfloQuzeI/AAAAAAAAABg/w8XwHipkxu4/s1600-h/liech2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_b5kHatHqIOw/SucfloQuzeI/AAAAAAAAABg/w8XwHipkxu4/s320/liech2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;Then the road network is exported to GML format, which then is used as a raw data on Excel.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_b5kHatHqIOw/Sucfq_epPXI/AAAAAAAAABw/OWAKaasS1jo/s1600-h/liech4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_b5kHatHqIOw/Sucfq_epPXI/AAAAAAAAABw/OWAKaasS1jo/s320/liech4.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;GML is a variation of XML, which means that Excel can open it.&amp;nbsp; Then, using =LEFT and RIGHT function, we have prepared data that is ready to use.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;Part II: Modeling in Excel&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;The idea behind the shortest path problem is to let Excel solver decide which routes to take while meeting the constrains, that is, the Net Flow equal to 0.&amp;nbsp; Flow is calculated by making sure that every ending point leads to another starting point.&amp;nbsp; The easiest way to do so is to use &lt;a href="http://office.microsoft.com/en-us/excel/HP052092921033.aspx"&gt;=SUMIF&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;In my example, I put all the available nodes on J4 to J12.&amp;nbsp;&amp;nbsp; Next to it, I calculate the flow: using SUMIF, I calculate how many routes leads to (J4) nodes, and whether there are equal number of&amp;nbsp; routes leaving from (J4) nodes.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;Last, I add the said constrains, that is the minimum fun point in order to be qualified.&amp;nbsp; Then the goal is set to minimize the walking distance.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_b5kHatHqIOw/Sue0JCcjsnI/AAAAAAAAACI/3XmmeDESn3E/s1600-h/liech5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_b5kHatHqIOw/Sue0JCcjsnI/AAAAAAAAACI/3XmmeDESn3E/s320/liech5.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;Set the solver's constrains, check on "Assume Linear Model" and "No Negative" in the Options, and the problem is solved.&amp;nbsp; If you want to try it out or play around with it, I attach the excel and depiction files at the beginning of the page.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;Hope this helps.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Lucida Grande'; font-size: small;"&gt;&lt;span style="font-size: 11px;"&gt;&lt;span style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4382616039237652752-4381151094300111187?l=ferrival.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ferrival.blogspot.com/feeds/4381151094300111187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ferrival.blogspot.com/2009/10/travel-in-liechtenstein-variation-of.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4382616039237652752/posts/default/4381151094300111187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4382616039237652752/posts/default/4381151094300111187'/><link rel='alternate' type='text/html' href='http://ferrival.blogspot.com/2009/10/travel-in-liechtenstein-variation-of.html' title='Travel in Liechtenstein: Variation of Shortest Path Problem'/><author><name>Kun</name><uri>http://www.blogger.com/profile/11151100888469786609</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_b5kHatHqIOw/SucfjM4WkfI/AAAAAAAAABY/heXFx76uOPE/s72-c/liech1.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4382616039237652752.post-8657990599379999701</id><published>2009-10-25T22:08:00.000-07:00</published><updated>2009-10-26T00:08:52.834-07:00</updated><title type='text'>First Tutorial: Shortest Distance Network on Excel</title><content type='html'>&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Suppose I am a warehouse manager that are tasked to collect casks of wine from the local vineyards. &amp;nbsp;I have one truck, and this truck will go around to the vineyards and back. &amp;nbsp;I want to find the shortest route and the shortest distance for my truck.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;The very first thing you want to do is to get the raw data. &amp;nbsp;As mentioned from my previous post, I use &lt;a href="http://www.depiction.com/"&gt;Depiction&lt;/a&gt; for that.&amp;nbsp;&amp;nbsp;Now&amp;nbsp;that we have the raw data, it is time to set up what we need for the linear programming.&amp;nbsp; For this problem, we will use a shortest distance problem.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;A linear programming consists of: &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Goal:&amp;nbsp; In this case, it will be the distance traveled, and the goal is to minimize it&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Variables: The one that will be changed in order to achieve the most optimum goal&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Constrains: The limitation / constrains that defines the network&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;So let’s begin.&amp;nbsp; The data that we need are:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Starting Location (Starting node)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Ending Location (Ending node)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Length of the Arc (distance between the two points)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_b5kHatHqIOw/SuUucL-tl4I/AAAAAAAAABA/e-R4XLoy7qk/s1600-h/data1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_b5kHatHqIOw/SuUucL-tl4I/AAAAAAAAABA/e-R4XLoy7qk/s320/data1.JPG" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;div style="text-align: center;"&gt;&lt;i&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;example 1: Start, Stop, and Arc length&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Then you may add a few paths that are not written before if you like.&amp;nbsp; For example, I draw only one path from point 2 to 3 whereas it is possible to go from point 3 to 2 too.&amp;nbsp; I add them in this stage.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Next, we define the variable.&amp;nbsp;&amp;nbsp;Later on we will ask Excel to change these in order to find the minimum route.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_b5kHatHqIOw/SuUueNRn3OI/AAAAAAAAABI/Ml4adSkOhYQ/s1600-h/data2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_b5kHatHqIOw/SuUueNRn3OI/AAAAAAAAABI/Ml4adSkOhYQ/s320/data2.JPG" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;div style="text-align: center;"&gt;&lt;i&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;example 2: route&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Third, we define the goal.&amp;nbsp; In this case, it is the maximum distance.&amp;nbsp; There are several ways to do this, but probably the simplest way is to use the Excel function &lt;/span&gt;&lt;a href="http://www.blogger.com/"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;span id="goog_1256537974384"&gt;&lt;/span&gt;SUMPRODUC&lt;/span&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;span id="goog_1256537974385"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;T.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;And here’s the trick.&amp;nbsp; If we set the route to be TRUE or FALSE by using the number ‘1’ for TRUE and ‘0’ for FALSE, then when we multiply the “distance” (column B) and the “route” (column F), the result is the total distance traveled.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Then we define some constrains&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;The first constrains that we should set is that our route is TRUE or FALSE only (1 or 0).&amp;nbsp; That is, we do not want a fraction or a number greater than 1.&amp;nbsp; Therefore, in the column H, I type this formula, then dragged it down to cover every route.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;=IF(F2=0, 1,&lt;/span&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;IF(F2=1, 1, 0))&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;This formula will return “1”if the route number is exactly 0 or 1, and will return 0 for anything else.&amp;nbsp; We will make it into our first constrain: All number in column H has to be 1.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;The next constrain we will define is that the flow summed to 0.&amp;nbsp; That is, every ending point is chosen only once.&amp;nbsp; In order to do so, we will have to construct a list of points.&amp;nbsp; In our case, 1 to 8.&amp;nbsp; Then we will build the flow using &lt;/span&gt;&lt;a href="http://office.microsoft.com/en-us/excel/HP052092921033.aspx"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;SUMIF&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Suppose Column D is the ending point of the route, column J is the new table we set, and column F is the route.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;=SUMIF(D$2:D$37, J2,$F$2:$F$37)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;This code will sum the value in F column if the D column is equal to J2.&amp;nbsp; Therefore, this can be used to determine how many ending point is there.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Then we add it so that every ending point will lead to another point (aka new route).&amp;nbsp; Therefore, we add the starting point.&amp;nbsp; The formula become this:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;=SUMIF(D$2:D$37,J2,F$2:F$37)-SUMIF(C$2:C$37,J2,F$2:F$37)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;If there is an unconnected ending (i.e. ending point which does not lead to a new point), the value on the cell will be positive, and negative if there is no corresponding ending point for a starting point.&amp;nbsp; This will be our cross check to make sure every points is connected to each other.&amp;nbsp; This will have to be 0 all the time.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Last, we don’t want any backtrack, or we want to visit every node.&amp;nbsp; We sue SUMIF again, but this time only the first part.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Then we use the solver to define all of the said constrains. &amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_b5kHatHqIOw/SuUufDq-CyI/AAAAAAAAABQ/51JwTBpEu-g/s1600-h/data3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_b5kHatHqIOw/SuUufDq-CyI/AAAAAAAAABQ/51JwTBpEu-g/s320/data3.JPG" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;i&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;example 3: excel solver&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Here is the depiction file and excel file that I use&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Depiction file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Excel file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Hope this help!&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4382616039237652752-8657990599379999701?l=ferrival.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ferrival.blogspot.com/feeds/8657990599379999701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ferrival.blogspot.com/2009/10/case-1-shortest-distance-network.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4382616039237652752/posts/default/8657990599379999701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4382616039237652752/posts/default/8657990599379999701'/><link rel='alternate' type='text/html' href='http://ferrival.blogspot.com/2009/10/case-1-shortest-distance-network.html' title='First Tutorial: Shortest Distance Network on Excel'/><author><name>Kun</name><uri>http://www.blogger.com/profile/11151100888469786609</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_b5kHatHqIOw/SuUucL-tl4I/AAAAAAAAABA/e-R4XLoy7qk/s72-c/data1.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4382616039237652752.post-7584045209527215910</id><published>2009-10-25T19:09:00.000-07:00</published><updated>2009-10-27T20:50:45.389-07:00</updated><title type='text'>On GIS / Mapping Software</title><content type='html'>&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;One latitude degree is about 60 nautical miles, where 1 nautical miles is 1852 meter . &amp;nbsp;Then of course, the exact distance between two places usually do not matter. &amp;nbsp;It is the distance, in term of road networks, that matters.&amp;nbsp; This is where premium mapping software such as &lt;/span&gt;&lt;a href="http://www.depiction.com/"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;Depiction Software&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt; and &lt;a href="http://earth.google.com/"&gt;Google Earth Pro&lt;/a&gt; shines.&amp;nbsp; These softwares can automatically geocode addresses, allows the user to connect points by the open street road network, edit some properties, and then export it in the GML (Depiction) or KML (Google Earth). &amp;nbsp;Not to mention, its graphic can be used for presentation purpose.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;GIS Software in Use:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;a href="http://ferrival.blogspot.com/2009/10/travel-in-liechtenstein-variation-of.html"&gt;Depiction on work: Mapping the road network distance and prepare it for linear programming purposes&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;Each software has its ups and downs.&amp;nbsp; Depiction is quite inexpensive compared to others, and may allow enough customization to make it useful.&amp;nbsp; However, as it is mostly used as emergency communication (thus can be used offline) and as simple mapping software, it does not have the business/statistic/subscribed data sources that other expensive GIS software boasts of.&amp;nbsp; But more often than not, the software may serves as 70% solution to everything.&amp;nbsp; Google Earth Pro comes next, and has very powerful capabilities and even some extremely valued Google market intelligence data, but is also four times more expensive.&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;---&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;Example 1: GML on Excel -- using the RIGHT and LEFT function as well as some coding, to get starting node, ending node, and the length of the arc&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_b5kHatHqIOw/SuUGHnw2p5I/AAAAAAAAAAw/WJzrckYLEz8/s1600-h/gml+on+excel.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_b5kHatHqIOw/SuUGHnw2p5I/AAAAAAAAAAw/WJzrckYLEz8/s320/gml+on+excel.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-family: 'Times New Roman';"&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;Example 2: Ready to use Data for Linear Programming&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_b5kHatHqIOw/SuUGDW-MgzI/AAAAAAAAAAo/zZ4I6g9nxEc/s1600-h/gml+extracted+data.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_b5kHatHqIOw/SuUGDW-MgzI/AAAAAAAAAAo/zZ4I6g9nxEc/s320/gml+extracted+data.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4382616039237652752-7584045209527215910?l=ferrival.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ferrival.blogspot.com/feeds/7584045209527215910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ferrival.blogspot.com/2009/10/depiction-gis-mapping-software.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4382616039237652752/posts/default/7584045209527215910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4382616039237652752/posts/default/7584045209527215910'/><link rel='alternate' type='text/html' href='http://ferrival.blogspot.com/2009/10/depiction-gis-mapping-software.html' title='On GIS / Mapping Software'/><author><name>Kun</name><uri>http://www.blogger.com/profile/11151100888469786609</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_b5kHatHqIOw/SuUGHnw2p5I/AAAAAAAAAAw/WJzrckYLEz8/s72-c/gml+on+excel.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4382616039237652752.post-5026007939007286235</id><published>2009-10-25T18:16:00.000-07:00</published><updated>2009-10-25T18:20:14.812-07:00</updated><title type='text'>On Network Optimization</title><content type='html'>&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;One way of describing a network is a set of points (supply chain term: nodes) connected by routes (supply chain term: arcs). &amp;nbsp;Network optimization is a very common subject to study in transportation, logistic, manufacturing, and operation management -- and for a good reason: an optimal network usually leads to a lean operation. &amp;nbsp;Example of the commonly used network optimization are the minimum cost network and the minimum time network. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;The most 'ancient' but still surprisingly well algorithm for the network optimization is the greedy algorithm: connecting the nodes by the shortest arc. &amp;nbsp;In a simple case, greedy is usually right. &amp;nbsp;The more 'advanced,' that is, more time and computing power saving method, is the dynamic algorithm. &amp;nbsp;But since greedy is much simpler and usually right, it is the most common method used by non-programmer. &amp;nbsp;Nowadays, however, due to the increase in the computing power of our chips, it is now possible to find the most optimal solution using the more brutal force -- aka brute force method. &amp;nbsp;That is, to collect data for every possible route and then sort for the most optimum. &amp;nbsp;It is not the best way, but since today's average computer can probably calculate more than 2^30 computation per second, it is possible. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;And then came the power of the spreadsheet. &amp;nbsp;In case you have not realized it yet, Microsoft Excel is extremely powerful. &amp;nbsp;Excel also came in with the "Solver" add-in, which let you use the possibly simplest method of network optimization without the needs of knowing programming algorithm. &amp;nbsp;This is called Linear Programming method.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Microsoft's Guide to Optimization:&amp;nbsp;&lt;/span&gt;&lt;a href="http://office.microsoft.com/en-us/excel/HA011245951033.aspx"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Excel Solver Tutorial&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;The built-in Excel Solver has some limitation. &amp;nbsp;If your variables are large and complicated enough that &amp;nbsp;you encountered error message such as "the problem is too large for solver to handle," then you might consider the &lt;/span&gt;&lt;a href="http://www.solver.com/"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;upgraded, premium Solver&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;, or even &lt;/span&gt;&lt;a href="http://www.oracle.com/crystalball/index.html"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Oracle Crystal Ball&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;. &amp;nbsp;The later is very expensive, but can easily do monte carlo simulation and more. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;In this blog you will find some examples of linear programmings that are tailored for transportation and logistic purposes. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Hope this helps.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4382616039237652752-5026007939007286235?l=ferrival.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ferrival.blogspot.com/feeds/5026007939007286235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ferrival.blogspot.com/2009/10/on-network-optimization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4382616039237652752/posts/default/5026007939007286235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4382616039237652752/posts/default/5026007939007286235'/><link rel='alternate' type='text/html' href='http://ferrival.blogspot.com/2009/10/on-network-optimization.html' title='On Network Optimization'/><author><name>Kun</name><uri>http://www.blogger.com/profile/11151100888469786609</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
