<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://tomwiki.com/index.php?action=history&amp;feed=atom&amp;title=Models_Public_Services</id>
	<title>Models Public Services - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://tomwiki.com/index.php?action=history&amp;feed=atom&amp;title=Models_Public_Services"/>
	<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=Models_Public_Services&amp;action=history"/>
	<updated>2026-10-31T22:04:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://tomwiki.com/index.php?title=Models_Public_Services&amp;diff=2564&amp;oldid=prev</id>
		<title>Elias at 23:13, 17 January 2012</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=Models_Public_Services&amp;diff=2564&amp;oldid=prev"/>
		<updated>2012-01-17T23:13:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:13, 17 January 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Water conveyance==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Water conveyance==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight &lt;/del&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source &lt;/ins&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = waterconveyanceEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = waterconveyanceEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l117&quot;&gt;Line 117:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 117:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060117 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060117 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==CCTV surveillance==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==CCTV surveillance==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight &lt;/del&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source &lt;/ins&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = cctvsurveillanceEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = cctvsurveillanceEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l234&quot;&gt;Line 234:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 234:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Rigging elections==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Rigging elections==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight &lt;/del&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source &lt;/ins&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = riggingelectionsEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = riggingelectionsEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l391&quot;&gt;Line 391:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 391:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Gritting roads==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Gritting roads==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight &lt;/del&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source &lt;/ins&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = grittingroadsEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = grittingroadsEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l498&quot;&gt;Line 498:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 498:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Location of income tax offices==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Location of income tax offices==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight &lt;/del&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source &lt;/ins&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = locationofincometaxofficesEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = locationofincometaxofficesEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l605&quot;&gt;Line 605:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 605:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Efficiency of hospitals==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Efficiency of hospitals==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight &lt;/del&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source &lt;/ins&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = efficiencyofhospitalsEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% function Result = efficiencyofhospitalsEx(PriLev)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l719&quot;&gt;Line 719:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 719:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060118 per   Added documentation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;% 060125 per   Moved disp to end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Elias</name></author>
	</entry>
	<entry>
		<id>http://tomwiki.com/index.php?title=Models_Public_Services&amp;diff=931&amp;oldid=prev</id>
		<title>Elias: Created page with &quot;{{Part Of Manual|title=TOMLAB Models|link=TOMLAB Models}} ==Water conveyance==  &lt;syntaxhighlight lang=&quot;matlab&quot;&gt; % function Result = waterconveyanceEx(PriLev) % % Creat...&quot;</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=Models_Public_Services&amp;diff=931&amp;oldid=prev"/>
		<updated>2011-08-12T13:30:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Part Of Manual|title=TOMLAB Models|link=&lt;a href=&quot;/index.php?title=Models&quot; title=&quot;Models&quot;&gt;TOMLAB Models&lt;/a&gt;}} ==Water conveyance==  &amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt; % function Result = waterconveyanceEx(PriLev) % % Creat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Part Of Manual|title=TOMLAB Models|link=[[Models|TOMLAB Models]]}}&lt;br /&gt;
==Water conveyance==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = waterconveyanceEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MILP problem for water conveyance&lt;br /&gt;
%&lt;br /&gt;
% WATER CONVEYANCE / WATER SUPPLY MANAGEMENT&lt;br /&gt;
%&lt;br /&gt;
% The graph in the figure below shows a water transport network. The&lt;br /&gt;
% nodes, numbered from 1 to 10, represent the cities, the reservoirs,&lt;br /&gt;
% and the pumping stations connected by a network of pipes. The three&lt;br /&gt;
% cities Gotham City, Metropolis, and Spider Ville are supplied from&lt;br /&gt;
% two reservoirs. The availabilities of water from these reservoirs&lt;br /&gt;
% in thousands of m3/h are 35 for reservoir 1 and 25 for reservoir 2.&lt;br /&gt;
% The capacity of each pipe connection is indicated in thousands of&lt;br /&gt;
% m3/h in the graph.&lt;br /&gt;
%&lt;br /&gt;
% A study is undertaken to find out whether the existing network will&lt;br /&gt;
% be able to satisfy the demands of the cities in ten years time,&lt;br /&gt;
% that is 18, 15, and 20 thousand m3/h. Determine the maximum flow in&lt;br /&gt;
% the current network. Will it be sufficient in ten years from now?&lt;br /&gt;
%&lt;br /&gt;
% Water transport network&lt;br /&gt;
%&lt;br /&gt;
%&lt;br /&gt;
%     35          20        15         7          18&lt;br /&gt;
%    Reservoir-1 ----&amp;gt; 3 -------&amp;gt; 4 -------&amp;gt;  8-Gotham city&lt;br /&gt;
%                                              ^&lt;br /&gt;
%              | \15   |            \       ---+&lt;br /&gt;
%              |  \    |10           ----\ /&lt;br /&gt;
%            12|   \   |                  X&lt;br /&gt;
%               \   \  |       10        / \10&lt;br /&gt;
%                \   V V  --------------/   ---+&lt;br /&gt;
%     25          \      /      15             V   15&lt;br /&gt;
%    Reservoir-2 --+-&amp;gt; 5 -------------------&amp;gt;  9-Metropolis&lt;br /&gt;
%                  | 6   \       15            ^&lt;br /&gt;
%                \ \      -----------   -------+&lt;br /&gt;
%                 \ \                \ /   10&lt;br /&gt;
%                  \ \12              X&lt;br /&gt;
%                22 \ \              / \&lt;br /&gt;
%                    V V            /   -----+&lt;br /&gt;
%                          22         10     V     20&lt;br /&gt;
%                      6 -------&amp;gt; 7 -------&amp;gt; 10-Spider Ville&lt;br /&gt;
%&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% arcs_out/in                For an arc i arcs_out(i) is its target node&lt;br /&gt;
%                            and arcs_in(i) its starting node&lt;br /&gt;
% capacity                   Capacity of an arc&lt;br /&gt;
% source                     Artificial node acting as a source&lt;br /&gt;
% sink                       Artificial node acting as a sink&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% For an interpretation of the results, run:&lt;br /&gt;
% Result   = waterconveyanceEx(2);&lt;br /&gt;
%&lt;br /&gt;
% REFERENCES&lt;br /&gt;
%&lt;br /&gt;
% Applications of optimization... Gueret, Prins, Seveaux&lt;br /&gt;
% http://web.univ-ubs.fr/lester/~sevaux/pl/index.php&lt;br /&gt;
%&lt;br /&gt;
% INPUT PARAMETERS&lt;br /&gt;
% PriLev       Print Level&lt;br /&gt;
%&lt;br /&gt;
% OUTPUT PARAMETERS&lt;br /&gt;
% Result       Result structure&lt;br /&gt;
&lt;br /&gt;
% Marcus Edvall, Tomlab Optimization Inc, E-mail: tomlab@tomopt.com&lt;br /&gt;
% Copyright (c) 2005-2005 by Tomlab Optimization Inc., $Release: 5.0.0$&lt;br /&gt;
% Written Dec 5, 2005.   Last modified Dec 5, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = waterconveyanceEx(PriLev)&lt;br /&gt;
&lt;br /&gt;
if nargin &amp;lt; 1&lt;br /&gt;
   PriLev = 1;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
arcs_in         = [ 1  1  1  2  2  3  3  4  4  5  5  5  6  7  7  8  9 10 11 11]&amp;#039;;&lt;br /&gt;
arcs_out        = [ 3  5  6  5  6  4  5  8  9  8  9 10  7  9 10 12 12 12  1  2]&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
capacity        = [20 15 12  6 22 15 10  7 10 10 15 15 22 10 10 18 15 20 35 25]&amp;#039;;&lt;br /&gt;
source          = 11;&lt;br /&gt;
sink            = 12;&lt;br /&gt;
&lt;br /&gt;
Prob = waterconveyance(arcs_in, arcs_out, capacity, source, sink);&lt;br /&gt;
Result = tomRun(&amp;#039;cplex&amp;#039;, Prob, PriLev);&lt;br /&gt;
&lt;br /&gt;
if PriLev &amp;gt; 1,&lt;br /&gt;
   x        = Result.x_k;&lt;br /&gt;
   names    = [&amp;#039;Reservoir 1 &amp;#039;; ...&lt;br /&gt;
         &amp;#039;Reservoir 2 &amp;#039;; ...&lt;br /&gt;
         &amp;#039;Node 3      &amp;#039;; ...&lt;br /&gt;
         &amp;#039;Node 4      &amp;#039;; ...&lt;br /&gt;
         &amp;#039;Node 5      &amp;#039;; ...&lt;br /&gt;
         &amp;#039;Node 6      &amp;#039;; ...&lt;br /&gt;
         &amp;#039;Node 7      &amp;#039;; ...&lt;br /&gt;
         &amp;#039;Gotham City &amp;#039;; ...&lt;br /&gt;
         &amp;#039;Metropolis  &amp;#039;; ...&lt;br /&gt;
         &amp;#039;Spider Ville&amp;#039;; ...&lt;br /&gt;
         &amp;#039;Production  &amp;#039;; ... % this is the source node&lt;br /&gt;
         &amp;#039;Consumption &amp;#039;];    % this is the sink node&lt;br /&gt;
   disp(&amp;#039;Maximum flow of the network is as follows:&amp;#039;)&lt;br /&gt;
   for i = 1:length(arcs_in),&lt;br /&gt;
      if x(i) ~= 0,&lt;br /&gt;
         disp([names(arcs_in(i),:) &amp;#039; -&amp;gt; &amp;#039; names(arcs_out(i),:) &amp;#039;: &amp;#039; num2str(x(i)) ])&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051205 med   Created.&lt;br /&gt;
% 060117 per   Added documentation.&lt;br /&gt;
% 060125 per   Moved disp to end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CCTV surveillance==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = cctvsurveillanceEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MILP problem for cctv surveillance&lt;br /&gt;
%&lt;br /&gt;
% CCTV SURVEILLANCE&lt;br /&gt;
%&lt;br /&gt;
% In the course of the last few months, the industrial zone of&lt;br /&gt;
% Billston has suffered from a series of break-ins and thefts during&lt;br /&gt;
% the night. The zone is watched by security men but there are too&lt;br /&gt;
% few of them. The town council in charge of security in this zone&lt;br /&gt;
% decides to install surveillance cameras to aid the security men&lt;br /&gt;
% with their task. These cameras can be directed and pivot through&lt;br /&gt;
% 360 degrees. By installing a camera at the intersection of several&lt;br /&gt;
% streets, it is possible to survey all adjoining streets. The map in&lt;br /&gt;
% the figure below shows the industrial zone with the limits of the&lt;br /&gt;
% zone to be covered by closed circuit TV (CCTV) surveillance and the&lt;br /&gt;
% 49 possible locations where to install the cameras. What is the&lt;br /&gt;
% minimum number of cameras that have to be installed to survey all&lt;br /&gt;
% the streets of this zone and where should they be placed?&lt;br /&gt;
%&lt;br /&gt;
% The industrial zone in Billston&lt;br /&gt;
%&lt;br /&gt;
% 13 -- 14 -- 18 -- 17    28 -- 29    35 -- 36&lt;br /&gt;
%&lt;br /&gt;
%  |     |     |           |           |&lt;br /&gt;
%  |     |     |           |           |&lt;br /&gt;
%  |&lt;br /&gt;
%  |    15 -- 19          26 -- 27    34    48&lt;br /&gt;
%  |&lt;br /&gt;
%  |  /  |     |           |           |     |&lt;br /&gt;
%  | /   |     |           |           |     |&lt;br /&gt;
%&lt;br /&gt;
% 12    16 -- 20    24 -- 25 -- 30    33    47 -- 45 -- 46&lt;br /&gt;
%&lt;br /&gt;
%  |  /        |        /        |  /  |           |&lt;br /&gt;
%  | /         |       /         | /   |           |&lt;br /&gt;
%&lt;br /&gt;
%  3 -- 11 -- 21 -- 22          31    37 -- 43 -- 44 -- 49&lt;br /&gt;
%&lt;br /&gt;
%  | \                 \         |     |&lt;br /&gt;
%  |  \                 \        |     |&lt;br /&gt;
%  |&lt;br /&gt;
%  |    4 -- 9 -- 10      23 -- 32 -- 38&lt;br /&gt;
%  |&lt;br /&gt;
%  |    | \                      |     |&lt;br /&gt;
%  |    |  \                     |     |&lt;br /&gt;
%  |&lt;br /&gt;
%  |    6     5                 39 -- 40 -- 41 -- 42&lt;br /&gt;
%  |&lt;br /&gt;
%  |    | \                      |        /&lt;br /&gt;
%  |    |  \                     |       /&lt;br /&gt;
%  |                             |      /&lt;br /&gt;
%  |    8     7                  |     /&lt;br /&gt;
%  |                             |    /&lt;br /&gt;
%  |                             |   /&lt;br /&gt;
%  |                             |  /&lt;br /&gt;
%  |                             | /&lt;br /&gt;
%&lt;br /&gt;
%  1 --------------------------- 2&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% arcs_out/in                These variables describe the network&lt;br /&gt;
%                            of streets&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% For an interpretation of the results, run:&lt;br /&gt;
% Result = cctvsurveillanceEx(2);&lt;br /&gt;
%&lt;br /&gt;
% REFERENCES&lt;br /&gt;
%&lt;br /&gt;
% Applications of optimization... Gueret, Prins, Seveaux&lt;br /&gt;
% http://web.univ-ubs.fr/lester/~sevaux/pl/index.php&lt;br /&gt;
%&lt;br /&gt;
% INPUT PARAMETERS&lt;br /&gt;
% PriLev       Print Level&lt;br /&gt;
%&lt;br /&gt;
% OUTPUT PARAMETERS&lt;br /&gt;
% Result       Result structure&lt;br /&gt;
&lt;br /&gt;
% Marcus Edvall, Tomlab Optimization Inc, E-mail: tomlab@tomopt.com&lt;br /&gt;
% Copyright (c) 2005-2005 by Tomlab Optimization Inc., $Release: 5.0.0$&lt;br /&gt;
% Written Dec 5, 2005.   Last modified Dec 5, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = cctvsurveillanceEx(PriLev)&lt;br /&gt;
&lt;br /&gt;
if nargin &amp;lt; 1&lt;br /&gt;
   PriLev = 1;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
arcs_in =  [1 1 2 2 3 3 3 3 4 4 4 6 6 9 11 12 12 13 14 14 15 15 16 ...&lt;br /&gt;
      17 18 19 20 21 22 22 23 24 25 25 26 26 28 30 31 31 32 32 ...&lt;br /&gt;
      33 33 34 35 37 37 38 39 40 41 43 44 44 45 45 47]&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
arcs_out = [2 3 39 41 4 11 12 16 5 6 9 7 8 10 21 13 15 14 15 18 16 ...&lt;br /&gt;
      19 20 18 19 20 21 22 23 25 32 25 26 30 27 28 29 31 32 33 ...&lt;br /&gt;
      38 39 34 37 35 36 38 43 40 40 41 42 44 49 45 46 47 48]&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
Prob = cctvsurveillance(arcs_in, arcs_out);&lt;br /&gt;
Result = tomRun(&amp;#039;cplex&amp;#039;, Prob, PriLev);&lt;br /&gt;
&lt;br /&gt;
if PriLev &amp;gt; 1,&lt;br /&gt;
   disp(&amp;#039;Put cameras in nodes &amp;#039;)&lt;br /&gt;
   disp(num2str(find(Result.x_k)&amp;#039;))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051205 med   Created.&lt;br /&gt;
% 060118 per   Added documentation.&lt;br /&gt;
% 060125 per   Moved disp to end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Rigging elections==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = riggingelectionsEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MILP problem for rigging elections&lt;br /&gt;
%&lt;br /&gt;
% RIGGING ELECTIONS&lt;br /&gt;
%&lt;br /&gt;
% In a country not very far away, the party of the duke Sark Mevo has&lt;br /&gt;
% finally beaten the ruling coalition headed by the princess Reguel&lt;br /&gt;
% Tekris. Mevo wishes to consolidate his position in the capital, the&lt;br /&gt;
% fourteen quarters of which need to be grouped to electoral&lt;br /&gt;
% districts. A schematic map of the capital is given in the figure&lt;br /&gt;
% below. The quarters are numbered from 1 to 14. The two other&lt;br /&gt;
% numbers are the forecast number of favorable votes for Mevo and the&lt;br /&gt;
% total number of electors per quarter. All electors must vote and&lt;br /&gt;
% the winner needs to have the absolute majority. A valid electoral&lt;br /&gt;
% district is formed by several adjacent quarters and must have&lt;br /&gt;
% between 30,000 and 100,000 voters. Two quarters that touch each&lt;br /&gt;
% other just at a point like 12 and 13 are not considered adjacent.&lt;br /&gt;
% Electoral districts consisting of a single quarter are permitted if&lt;br /&gt;
% it has at least 50,000 voters. Nevertheless, Mevo may not decently&lt;br /&gt;
% define an electoral district solely with quarter 10, since this&lt;br /&gt;
% contains his residence. Determine a partitioning into five&lt;br /&gt;
% electoral districts that maximizes the number of seats for Mevo.&lt;br /&gt;
% Should this cause any difficulties, try a partitioning into six&lt;br /&gt;
% districts. Snirp, the mathematical jester, suggests Mevo uses&lt;br /&gt;
% Mathematical Programming...&lt;br /&gt;
%&lt;br /&gt;
%  +-------------+--+------+-------------------------------+&lt;br /&gt;
%  |    1        |  |   6  |  7  12000/30000               |&lt;br /&gt;
%  | 17500/30000 |  | 9000/+---------------+---------------+&lt;br /&gt;
%  +-------------+  |40000 |    8          |               |&lt;br /&gt;
%  |    2        |  |      |  10000/30000  |  9            |&lt;br /&gt;
%  | 15000/50000 |  +------+-------+-------+ 26000/40000   |&lt;br /&gt;
%  +-------------+    5    |       |  11   |               |&lt;br /&gt;
%  |    3        |  18000/ |  10   | 2500/ +---------------+&lt;br /&gt;
%  | 14200/20000 |  20000  | 34000/| 10000 | 12 27000/60000|&lt;br /&gt;
%  +-------------+---------+ 60000 +-------+---------------+&lt;br /&gt;
%  |         4             |       |  13   |  14           |&lt;br /&gt;
%  |      42000/70000      |       | 29000/| 15000/40000   |&lt;br /&gt;
%  +                       |       | 40000 |               |&lt;br /&gt;
%  +-----------------------+-------+-------+---------------+&lt;br /&gt;
%&lt;br /&gt;
% Map of the capital and its quarters.&lt;br /&gt;
% Legend: quarter number, supporters/electorate&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% in/out                     Quarter in(i) borders to quarter out(i)&lt;br /&gt;
% population                 Population of each quarter&lt;br /&gt;
% votes                      Supporters er quarter&lt;br /&gt;
% minpop                     Min size of an electoral district&lt;br /&gt;
% maxpop                     Max size of an electoral district&lt;br /&gt;
% minsingle                  Min size of a quarter to be a district&lt;br /&gt;
% districtsnum               Number of districts wanted&lt;br /&gt;
% illegalsingle              This quarter may not be single&lt;br /&gt;
% districts                  The possible partition of the quarters&lt;br /&gt;
%                            into desired number of districts.&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% For an interpretation of the results, run:&lt;br /&gt;
% Result = riggingelectionsEx(2);&lt;br /&gt;
%&lt;br /&gt;
% REFERENCES&lt;br /&gt;
%&lt;br /&gt;
% Applications of optimization... Gueret, Prins, Seveaux&lt;br /&gt;
% http://web.univ-ubs.fr/lester/~sevaux/pl/index.php&lt;br /&gt;
%&lt;br /&gt;
% INPUT PARAMETERS&lt;br /&gt;
% PriLev       Print Level&lt;br /&gt;
%&lt;br /&gt;
% OUTPUT PARAMETERS&lt;br /&gt;
% Result       Result structure&lt;br /&gt;
&lt;br /&gt;
% Marcus Edvall, Tomlab Optimization Inc, E-mail: tomlab@tomopt.com&lt;br /&gt;
% Copyright (c) 2005-2005 by Tomlab Optimization Inc., $Release: 5.0.0$&lt;br /&gt;
% Written Dec 5, 2005.   Last modified Dec 5, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = riggingelectionsEx(PriLev)&lt;br /&gt;
&lt;br /&gt;
if nargin &amp;lt; 1&lt;br /&gt;
   PriLev = 1;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
in  =  [1 1 2 2 3 3 4  4 5  5 6 6 7 7 8  8  8  9  9 10 10 11 11 12 13]&amp;#039;;&lt;br /&gt;
out =  [2 5 3 5 4 5 5 10 6 10 7 8 8 9 9 10 11 11 12 11 13 12 13 14 14]&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
population = [30 50 20 70 20 40 30 30 40 60 10 60 40 40]&amp;#039;;&lt;br /&gt;
votes      = [17.5 15 14.2 42 18 9 12 10 26 34 2.5 27 29 15]&amp;#039;;&lt;br /&gt;
minpop     = 30;&lt;br /&gt;
maxpop     = 100;&lt;br /&gt;
minsingle  = 50;&lt;br /&gt;
districtsnum = 6;&lt;br /&gt;
illegalsingle = 10;&lt;br /&gt;
&lt;br /&gt;
districts = [];&lt;br /&gt;
rowlen = length(population);&lt;br /&gt;
maxq   = rowlen;&lt;br /&gt;
&lt;br /&gt;
for q=1:maxq&lt;br /&gt;
   if (population(q) &amp;gt;= minsingle &amp;amp; q ~= illegalsingle)&lt;br /&gt;
      districts = [districts; zeros(1,maxq)];&lt;br /&gt;
      districts(end, q) = 1;&lt;br /&gt;
   end&lt;br /&gt;
   idx = find(in == q);&lt;br /&gt;
   for i = 1:length(idx)&lt;br /&gt;
      p = out(idx(i));&lt;br /&gt;
      if (population(q) + population(p) &amp;lt;= maxpop)&lt;br /&gt;
         if (population(q) + population(p) &amp;gt;= minpop)&lt;br /&gt;
            districts = addNeighbor(districts, q, p, rowlen);&lt;br /&gt;
&lt;br /&gt;
            idx2 = find(in == p);&lt;br /&gt;
            for j = 1:length(idx2)&lt;br /&gt;
               r = out(idx2(j));&lt;br /&gt;
               if (population(q) + population(p) + population(r) &amp;lt;= maxpop)&lt;br /&gt;
                  if (population(q) + population(p) + population(r) &amp;gt;= minpop)&lt;br /&gt;
                     districts = addNeighbor(districts, q, p, rowlen, r);&lt;br /&gt;
                  end&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
Prob = riggingelections(districts, votes, population, districtsnum);&lt;br /&gt;
Result = tomRun(&amp;#039;cplex&amp;#039;, Prob, PriLev);&lt;br /&gt;
Result.districts = districts;&lt;br /&gt;
&lt;br /&gt;
if PriLev &amp;gt; 1,&lt;br /&gt;
   temp   = Result.districts(find(Result.x_k),:);&lt;br /&gt;
   disp(&amp;#039;to rig the elections:&amp;#039;)&lt;br /&gt;
   for d  = 1:size(temp,1),&lt;br /&gt;
      qs = find(temp(d,:));&lt;br /&gt;
      disp([&amp;#039;   merge the quarters &amp;#039; num2str(qs) &amp;#039; into a district.&amp;#039;])&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function districts = addNeighbor(districts, q, p, rowlen, r)&lt;br /&gt;
if nargin &amp;lt;5&lt;br /&gt;
   districts = [districts; zeros(1,rowlen)];&lt;br /&gt;
   districts(end, [q, p]) = [1 1];&lt;br /&gt;
else&lt;br /&gt;
   districts = [districts; zeros(1,rowlen)];&lt;br /&gt;
   districts(end, [q, p, r]) = [1 1 1];&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051205 med   Created.&lt;br /&gt;
% 060118 per   Added documentation.&lt;br /&gt;
% 060125 per   Moved disp to end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Gritting roads==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = grittingroadsEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MILP problem for gritting roads&lt;br /&gt;
%&lt;br /&gt;
% GRITTING ROADS&lt;br /&gt;
%&lt;br /&gt;
% In the case of ice, all the streets of a village need to be&lt;br /&gt;
% gritted. A schematic map of the streets is given in the figure&lt;br /&gt;
% below. The nodes correspond to street intersections, the arcs to&lt;br /&gt;
% the streets that need to be gritted. The arcs are labeled with the&lt;br /&gt;
% length of the street in meters.&lt;br /&gt;
%&lt;br /&gt;
% Graph of the village streets&lt;br /&gt;
%&lt;br /&gt;
%      --150-&amp;gt;   --130-&amp;gt;   --100-&amp;gt;&lt;br /&gt;
%    1         2         3         4&lt;br /&gt;
%                &amp;lt;-140--   &amp;lt;-100--&lt;br /&gt;
%   | ^      /| ^        ^        | ^&lt;br /&gt;
%   | 165   / | 170      |        | 180&lt;br /&gt;
%   | |    /  | |       200       | |&lt;br /&gt;
%  165|  230 160|        |       190|&lt;br /&gt;
%   | |  /    | |        |        | |&lt;br /&gt;
%   | | /     | |        |        | |&lt;br /&gt;
%   V |V      V |        |        V |&lt;br /&gt;
%      --144-&amp;gt;   --128-&amp;gt;&lt;br /&gt;
%    5         6         7 --109-&amp;gt; 8&lt;br /&gt;
%      &amp;lt;-144--   &amp;lt;-122--&lt;br /&gt;
%    ^       /| ^      ^| ^      / |&lt;br /&gt;
%    194    / |174    / | |     /  |&lt;br /&gt;
%    |     /  | |    / 185|185 /   |&lt;br /&gt;
%    |   218 174|  233  | |   /   190&lt;br /&gt;
%    |   /    | |  /    | |  140   |&lt;br /&gt;
%    |  /     | | /     | | /      |&lt;br /&gt;
%    | V      V |/      V |V       V&lt;br /&gt;
%&lt;br /&gt;
%    9 --148-&amp;gt; 10 &amp;lt;-135- 11 -110-&amp;gt; 12&lt;br /&gt;
%&lt;br /&gt;
% The highway maintenance depot with the gritting truck is located at&lt;br /&gt;
% intersection number 1. The truck has a sufficiently large capacity&lt;br /&gt;
% to grit all the streets during a single tour. Due to the one-way&lt;br /&gt;
% streets, it may be forced to pass several times through the same&lt;br /&gt;
% street that has already been gritted. Determine a tour for the&lt;br /&gt;
% gritting truck of minimum total length that passes through all&lt;br /&gt;
% streets. For bidirectional streets, both directions need to be&lt;br /&gt;
% gritted separately.&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% in/out                     Road i starts in in(i) and&lt;br /&gt;
%                            goes out to out(i)&lt;br /&gt;
% lengths                    Lengths of the roads&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% For an interpretation of the results, run:&lt;br /&gt;
% Result = grittingroadsEx(2);&lt;br /&gt;
%&lt;br /&gt;
% REFERENCES&lt;br /&gt;
%&lt;br /&gt;
% Applications of optimization... Gueret, Prins, Seveaux&lt;br /&gt;
% http://web.univ-ubs.fr/lester/~sevaux/pl/index.php&lt;br /&gt;
%&lt;br /&gt;
% INPUT PARAMETERS&lt;br /&gt;
% PriLev       Print Level&lt;br /&gt;
%&lt;br /&gt;
% OUTPUT PARAMETERS&lt;br /&gt;
% Result       Result structure&lt;br /&gt;
&lt;br /&gt;
% Marcus Edvall, Tomlab Optimization Inc, E-mail: tomlab@tomopt.com&lt;br /&gt;
% Copyright (c) 2005-2005 by Tomlab Optimization Inc., $Release: 5.0.0$&lt;br /&gt;
% Written Dec 6, 2005.   Last modified Dec 6, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = grittingroadsEx(PriLev)&lt;br /&gt;
&lt;br /&gt;
if nargin &amp;lt; 1&lt;br /&gt;
   PriLev = 1;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
in  =  [1 1 2 2 2 3 3 4 4 5 5 6 6 6 6  6 7 7 7  7 8  8  8 9 9 10 10 11 11 12]&amp;#039;;&lt;br /&gt;
out =  [2 5 3 5 6 2 4 3 8 1 6 2 5 7 9 10 3 6 8 11 4 11 12 5 10 6  7  7 10 11]&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
lengths = [150 165 130 230 160 140 100 100 190 165 144 170 144 128 218 174 ...&lt;br /&gt;
      200 122 109 185 180 141 190 194 148 174 233 185 135 110]&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
Prob = grittingroads(in, out, lengths);&lt;br /&gt;
Result = tomRun(&amp;#039;cplex&amp;#039;, Prob, PriLev);&lt;br /&gt;
&lt;br /&gt;
if PriLev &amp;gt; 1,&lt;br /&gt;
   twice  = find(Result.x_k &amp;gt; 1);&lt;br /&gt;
   disp(&amp;#039;all roads travelled once, except:&amp;#039;)&lt;br /&gt;
   for i  = 1:length(twice),&lt;br /&gt;
      idx  = twice(i);&lt;br /&gt;
      disp([&amp;#039;  road from &amp;#039; num2str(in(idx)) &amp;#039; to &amp;#039; num2str(out(idx)) ...&lt;br /&gt;
            &amp;#039; ( that is travelled &amp;#039; num2str(Result.x_k(idx))   &amp;#039; times)&amp;#039;])&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051206 med   Created.&lt;br /&gt;
% 060118 per   Added documentation.&lt;br /&gt;
% 060125 per   Moved disp to end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Location of income tax offices==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = locationofincometaxofficesEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MILP problem for location of income tax offices&lt;br /&gt;
%&lt;br /&gt;
% LOCATION OF INCOME TAX OFFICES&lt;br /&gt;
%&lt;br /&gt;
% The income tax administration is planning to restructure the&lt;br /&gt;
% network of income tax offices in a region. The graph in the figure&lt;br /&gt;
% below shows the cities in the region and the major roads. The&lt;br /&gt;
% numbers within () close to the cities indicate the population in&lt;br /&gt;
% thousands of inhabitants. The arcs are labeled with the distances&lt;br /&gt;
% in kilometers. The income tax administration has determined that&lt;br /&gt;
% offices should be established in three cities to provide sufficient&lt;br /&gt;
% coverage. Where should these offices be located to minimize the&lt;br /&gt;
% average distance per inhabitant to the closest income tax office?&lt;br /&gt;
%&lt;br /&gt;
% Graph of towns and roads of the region&lt;br /&gt;
%&lt;br /&gt;
%&lt;br /&gt;
%   (15)   (10)   (12)   (18)&lt;br /&gt;
%   1 -15- 2 -22- 3 -18- 4&lt;br /&gt;
%&lt;br /&gt;
%    | \       / |     |&lt;br /&gt;
%    |  24   16  |     |&lt;br /&gt;
%   18   \   /   |     |&lt;br /&gt;
%    |           20    12&lt;br /&gt;
%    |     5(5)  |     |&lt;br /&gt;
%    |           |     |&lt;br /&gt;
%    |     | \   |     |&lt;br /&gt;
%    |    12  24 |     |&lt;br /&gt;
%    |     |   \ |     |&lt;br /&gt;
%&lt;br /&gt;
%   7 -15- 8 -30- 9 -12- 6 (24)&lt;br /&gt;
% (11)    (16)   (13)&lt;br /&gt;
%    |     |   /  |   /&lt;br /&gt;
%    22   25  19  19 22&lt;br /&gt;
%    |     | /    | /&lt;br /&gt;
%&lt;br /&gt;
%  10 -19- 11 -21- 12 (20)&lt;br /&gt;
%  (22)    (19)&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% population                 Population of each town&lt;br /&gt;
% numloc                     Number of offices to start&lt;br /&gt;
% lengths                    The length of the roads&lt;br /&gt;
% in/out                     A road i goes between towns&lt;br /&gt;
%                            in(i) and out(i)&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% For an interpretation of the results, run:&lt;br /&gt;
% Result = locationofincometaxofficesEx(2);&lt;br /&gt;
%&lt;br /&gt;
% REFERENCES&lt;br /&gt;
%&lt;br /&gt;
% Applications of optimization... Gueret, Prins, Seveaux&lt;br /&gt;
% http://web.univ-ubs.fr/lester/~sevaux/pl/index.php&lt;br /&gt;
%&lt;br /&gt;
% INPUT PARAMETERS&lt;br /&gt;
% PriLev       Print Level&lt;br /&gt;
%&lt;br /&gt;
% OUTPUT PARAMETERS&lt;br /&gt;
% Result       Result structure&lt;br /&gt;
&lt;br /&gt;
% Marcus Edvall, Tomlab Optimization Inc, E-mail: tomlab@tomopt.com&lt;br /&gt;
% Copyright (c) 2005-2005 by Tomlab Optimization Inc., $Release: 5.0.0$&lt;br /&gt;
% Written Dec 6, 2005.   Last modified Dec 6, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = locationofincometaxofficesEx(PriLev)&lt;br /&gt;
&lt;br /&gt;
if nargin &amp;lt; 1&lt;br /&gt;
   PriLev = 1;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
population = [15 10 12 18 5 24 11 16 13 22 19 20]&amp;#039;;&lt;br /&gt;
numloc     = 3;&lt;br /&gt;
in         = [1 1 1 2 3 3 3 4 5 5 6  6 7  7 8  8  9  9 10 11]&amp;#039;;&lt;br /&gt;
out        = [2 5 7 3 4 5 9 6 8 9 9 12 8 10 9 11 11 12 11 12]&amp;#039;;&lt;br /&gt;
lengths    = [15 24 18 22 18 16 20 12 12 24 12 22 15 22 30 ...&lt;br /&gt;
      25 19 19 19 21]&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
Prob = locationofincometaxoffices(population, numloc, in, out, lengths);&lt;br /&gt;
Result = tomRun(&amp;#039;cplex&amp;#039;, Prob, PriLev);&lt;br /&gt;
&lt;br /&gt;
if PriLev &amp;gt; 1,&lt;br /&gt;
   cities = length(population);&lt;br /&gt;
   temp   = Result.x_k(1:cities);&lt;br /&gt;
   build  = find(temp);&lt;br /&gt;
   goto   = reshape(Result.x_k(1+cities:end),cities,cities);&lt;br /&gt;
   disp([&amp;#039;Build the offices in towns &amp;#039; num2str(build&amp;#039;) &amp;#039; and let&amp;#039;])&lt;br /&gt;
   for i = 1:length(build),&lt;br /&gt;
      disp([&amp;#039;   people from &amp;#039; num2str(find(goto(build(i),:))) ...&lt;br /&gt;
            &amp;#039; travel to &amp;#039; num2str(build(i)) ])&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051206 med   Created.&lt;br /&gt;
% 060118 per   Added documentation.&lt;br /&gt;
% 060125 per   Moved disp to end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Efficiency of hospitals==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = efficiencyofhospitalsEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MILP problem for efficiency of hospitals&lt;br /&gt;
%&lt;br /&gt;
% EFFICIENCY OF HOSPITALS&lt;br /&gt;
%&lt;br /&gt;
% The administration of the hospitals in Paris decides to measure the&lt;br /&gt;
% efficiency of the surgery departments in four major hospitals with&lt;br /&gt;
% a desire to improve the service to the public. To keep this study&lt;br /&gt;
% anonymous, the hospitals are named H1 to H4. The method suggested&lt;br /&gt;
% to measure the efficiency is DEA (Data Envelopment Analysis). This&lt;br /&gt;
% method compares the performance of a fictitious hospital with the&lt;br /&gt;
% performances of the four hospitals.&lt;br /&gt;
%&lt;br /&gt;
% Three initial indicators (resources) are taken into account: the&lt;br /&gt;
% number of non-medical personnel, the general expenses, and the&lt;br /&gt;
% available number of beds. In addition, four final indicators&lt;br /&gt;
% (services) are analyzed: the number of hospital admissions per day,&lt;br /&gt;
% the number of consultations in the outpatients’ clinic, the number&lt;br /&gt;
% of nurses on duty every day, and the number of interns and doctors&lt;br /&gt;
% on duty every day. The corresponding data have been analyzed over a&lt;br /&gt;
% period of two years and the numbers representing a day of average&lt;br /&gt;
% activity in every hospital are given in the following two tables.&lt;br /&gt;
%&lt;br /&gt;
% Resource indicators&lt;br /&gt;
%&lt;br /&gt;
% +---------------------+-----+------+-----+-----+&lt;br /&gt;
% |                     | H1  | H2   | H3  | H4  |&lt;br /&gt;
% +---------------------+-----+------+-----+-----+&lt;br /&gt;
% |Non-medical personnel| 90  | 87   | 51  | 66  |&lt;br /&gt;
% |General expenses (k$)|38.89|109.48|40.43|48.41|&lt;br /&gt;
% |Number of beds       | 34  | 33   | 20  | 33  |&lt;br /&gt;
% +---------------------+-----+------+-----+-----+&lt;br /&gt;
%&lt;br /&gt;
% Service indicators&lt;br /&gt;
%&lt;br /&gt;
% +-------------------+-----+-----+-----+-----+&lt;br /&gt;
% |                   | H1  | H2  | H3  | H4  |&lt;br /&gt;
% +-------------------+-----+-----+-----+-----+&lt;br /&gt;
% |Admissions         |30.12|18.54|20.88|10.42|&lt;br /&gt;
% |Consultations      |13.54|14.45| 8.52|17.74|&lt;br /&gt;
% |Interns and doctors| 13  |  7  |   8 | 26  |&lt;br /&gt;
% |Nurses on duty     | 79  | 55  |  47 | 50  |&lt;br /&gt;
% +-------------------+-----+-----+-----+-----+&lt;br /&gt;
%&lt;br /&gt;
% Justify through the DEA method how hospital H2 is performing&lt;br /&gt;
% compared to the others.&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% resources                  A matrix describing the resources&lt;br /&gt;
% services                   A matrix describing the services&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% For an interpretation of the results, run:&lt;br /&gt;
% Result = efficiencyofhospitalsEx(2);&lt;br /&gt;
%&lt;br /&gt;
% REFERENCES&lt;br /&gt;
%&lt;br /&gt;
% Applications of optimization... Gueret, Prins, Seveaux&lt;br /&gt;
% http://web.univ-ubs.fr/lester/~sevaux/pl/index.php&lt;br /&gt;
%&lt;br /&gt;
% INPUT PARAMETERS&lt;br /&gt;
% PriLev       Print Level&lt;br /&gt;
%&lt;br /&gt;
% OUTPUT PARAMETERS&lt;br /&gt;
% Result       Result structure&lt;br /&gt;
&lt;br /&gt;
% Marcus Edvall, Tomlab Optimization Inc, E-mail: tomlab@tomopt.com&lt;br /&gt;
% Copyright (c) 2005-2005 by Tomlab Optimization Inc., $Release: 5.0.0$&lt;br /&gt;
% Written Dec 6, 2005.   Last modified Dec 6, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = efficiencyofhospitalsEx(PriLev)&lt;br /&gt;
&lt;br /&gt;
if nargin &amp;lt; 1&lt;br /&gt;
   PriLev = 1;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
resources  = [90 87 51 66;...&lt;br /&gt;
      38.89 109.48 40.43 48.41;...&lt;br /&gt;
      34 33 20 33];&lt;br /&gt;
services   = [30.12 18.54 20.88 10.42;...&lt;br /&gt;
      13.54 14.45 8.52 17.74;...&lt;br /&gt;
      13 7 8 26;...&lt;br /&gt;
      79 55 47 50];&lt;br /&gt;
&lt;br /&gt;
indices    = zeros(size(resources,2),1);&lt;br /&gt;
&lt;br /&gt;
for i=1:size(resources,2)&lt;br /&gt;
   Prob = efficiencyofhospitals(resources, services, i);&lt;br /&gt;
   Result = tomRun(&amp;#039;cplex&amp;#039;, Prob, PriLev);&lt;br /&gt;
   indices(i,1) = Result.x_k(end,1);&lt;br /&gt;
   Result.indices = indices;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
if PriLev &amp;gt; 1,&lt;br /&gt;
   temp   = Result.indices;&lt;br /&gt;
   for i = 1:length(temp),&lt;br /&gt;
      disp([&amp;#039;H&amp;#039; num2str(i) &amp;#039; is &amp;#039; num2str(100*temp(i)) &amp;#039;% efficient&amp;#039;])&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051206 med   Created.&lt;br /&gt;
% 060118 per   Added documentation.&lt;br /&gt;
% 060125 per   Moved disp to end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Elias</name></author>
	</entry>
</feed>