<?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_Loading_and_Cutting</id>
	<title>Models Loading and Cutting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://tomwiki.com/index.php?action=history&amp;feed=atom&amp;title=Models_Loading_and_Cutting"/>
	<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=Models_Loading_and_Cutting&amp;action=history"/>
	<updated>2026-11-03T03:25:07Z</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_Loading_and_Cutting&amp;diff=2558&amp;oldid=prev</id>
		<title>Elias at 22:58, 17 January 2012</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=Models_Loading_and_Cutting&amp;diff=2558&amp;oldid=prev"/>
		<updated>2012-01-17T22:58:04Z</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 17:58, 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;==Wagon load balancing==&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;==Wagon load balancing==&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 = wagonloadbalancingEx(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 = wagonloadbalancingEx(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-l89&quot;&gt;Line 89:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 89:&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;&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;% 060203 med   Printing updated&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;% 060203 med   Printing updated&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;==Barge loading==&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;==Barge loading==&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 = bargeloadingEx(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 = bargeloadingEx(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-l203&quot;&gt;Line 203:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 203:&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;% 060111 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;% 060111 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;==Tank loading==&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;==Tank loading==&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 = tankloadingEx(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 = tankloadingEx(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-l291&quot;&gt;Line 291:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 291:&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;% 060124 per   Interpretation of results upgraded.&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;% 060124 per   Interpretation of results upgraded.&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;==Backing up files==&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;==Backing up files==&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 = backingupfilesEx(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 = backingupfilesEx(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-l372&quot;&gt;Line 372:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 372:&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;&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;% 060314 med   checking for empty disc changed&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;% 060314 med   checking for empty disc changed&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;==Cutting sheet metal==&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;==Cutting sheet metal==&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 = cuttingsheetmetalEx(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 = cuttingsheetmetalEx(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-l447&quot;&gt;Line 447:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 447:&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;% 060112 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;% 060112 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;==Cutting steel bars for desk legs==&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;==Cutting steel bars for desk legs==&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 = cuttingsteelbarsfordesklegsEx(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 = cuttingsteelbarsfordesklegsEx(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-l530&quot;&gt;Line 530:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 530:&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;% 060112 per   Minor update.&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;% 060112 per   Minor update.&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_Loading_and_Cutting&amp;diff=925&amp;oldid=prev</id>
		<title>Elias: Created page with &quot;{{Part Of Manual|title=TOMLAB Models|link=TOMLAB Models}} ==Wagon load balancing==  &lt;syntaxhighlight lang=&quot;matlab&quot;&gt; % function Result = wagonloadbalancingEx(PriLev) % ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=Models_Loading_and_Cutting&amp;diff=925&amp;oldid=prev"/>
		<updated>2011-08-12T12:58: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;}} ==Wagon load balancing==  &amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt; % function Result = wagonloadbalancingEx(PriLev) % ...&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;
==Wagon load balancing==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = wagonloadbalancingEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB LP problem for wagon loading. Minimizes the max weight&lt;br /&gt;
%&lt;br /&gt;
% WAGON LOAD BALANCING&lt;br /&gt;
%&lt;br /&gt;
% Three railway wagons with a carrying capacity of 100 quintals (1&lt;br /&gt;
% quintal = 100 kg) have been reserved to transport sixteen boxes.&lt;br /&gt;
% The weight of the boxes in quintals is given in the following&lt;br /&gt;
% table. How shall the boxes be assigned to the wagons in order to&lt;br /&gt;
% keep to the limits on the maximum carrying capacity and to minimize&lt;br /&gt;
% the heaviest wagon load?&lt;br /&gt;
%&lt;br /&gt;
% Weight of boxes&lt;br /&gt;
%&lt;br /&gt;
% +------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+&lt;br /&gt;
% |Box   | 1| 2| 3| 4| 5| 6| 7| 8| 9|10|11|12|13|14|15|16|&lt;br /&gt;
% +------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+&lt;br /&gt;
% |Weight|34| 6| 8|17|16| 5|13|21|25|31|14|13|33| 9|25|25|&lt;br /&gt;
% +------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+&lt;br /&gt;
%&lt;br /&gt;
% Before implementing a Mathematical Programming solution, one may&lt;br /&gt;
% wish to try to see whether it is possible to solve this problem&lt;br /&gt;
% instance with the following simple heuristic: until all boxes are&lt;br /&gt;
% distributed to the wagons we choose in turn the heaviest unassigned&lt;br /&gt;
% box and put it onto the wagon with the least load.&lt;br /&gt;
%&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% minload                    Minimal load accepted per wagon&lt;br /&gt;
% maxload                    Maximal load accepted per wagon&lt;br /&gt;
% weights                    Weight of each box&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% For an interpretation of the results, set PriLev &amp;gt; 1,&lt;br /&gt;
% Result = wagonloadbalancingEx(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-2006 by Tomlab Optimization Inc., $Release: 5.1.0$&lt;br /&gt;
% Written Oct 7, 2005.   Last modified Feb 3, 2006.&lt;br /&gt;
&lt;br /&gt;
function Result = wagonloadbalancingEx(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;
minload    = [  0;  0;  0;];&lt;br /&gt;
maxload    = [100;100;100;];&lt;br /&gt;
weights    = [34;6;8;17;16;5;13;21;25;31;14;13;33;9;25;25];&lt;br /&gt;
&lt;br /&gt;
Prob = wagonloadbalancing(minload, maxload, weights);&lt;br /&gt;
Prob.SolverInf = &amp;#039;cplex&amp;#039;;&lt;br /&gt;
Result = infLinSolve(Prob, PriLev);&lt;br /&gt;
&lt;br /&gt;
if PriLev &amp;gt; 1,&lt;br /&gt;
   boxes  = length(weights);&lt;br /&gt;
   wagons = length(minload);&lt;br /&gt;
   temp   = reshape(Result.x_k,boxes,wagons);&lt;br /&gt;
   for w = 1:wagons,&lt;br /&gt;
      idx = find(temp(:,w) &amp;gt; 0.5);&lt;br /&gt;
      disp([&amp;#039;wagon &amp;#039; num2str(w) ...&lt;br /&gt;
            &amp;#039; has a total load of &amp;#039; num2str(sum(weights(idx))) ...&lt;br /&gt;
            &amp;#039; by carrying the boxes: &amp;#039; num2str(idx&amp;#039;) ])&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051007 med   Created.&lt;br /&gt;
% 060111 per   Added documentation.&lt;br /&gt;
% 060125 per   Moved disp to end&lt;br /&gt;
% 060203 med   Printing updated&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Barge loading==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = bargeloadingEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB LP problem for barge loading, maximizing the profit&lt;br /&gt;
%&lt;br /&gt;
% BARGE LOADING&lt;br /&gt;
%&lt;br /&gt;
% A shipper on the river Rhine owns a barge of carrying capacity 1500&lt;br /&gt;
% m3. Over time he has specialized in the transport of wheat. He has&lt;br /&gt;
% seven regular customers who load and unload practically at the same&lt;br /&gt;
% places. The shipper knows his costs of transport from long&lt;br /&gt;
% experience and according to his personal preferences has concluded&lt;br /&gt;
% agreements with his clients for the price charged to them for the&lt;br /&gt;
% transport of their wheat. The following table summarizes the&lt;br /&gt;
% information about the seven clients. Every client wishes to&lt;br /&gt;
% transport a certain number of lots, deciding himself the size of&lt;br /&gt;
% his lots in m3. The table lists the price charged by the shipper&lt;br /&gt;
% for every transported lot. The last column of the table contains&lt;br /&gt;
% the cost incurred by the shipper per transported m3. This cost&lt;br /&gt;
% differs depending on the distance covered.&lt;br /&gt;
%&lt;br /&gt;
% Lots to transport&lt;br /&gt;
%&lt;br /&gt;
% +------+------------------+--------+----------+--------------+&lt;br /&gt;
% |      |Available quantity|Lot size|Price per | Transport    |&lt;br /&gt;
% |Client| (no. of lots)    |(in m3) |lot (in $)|cost (in $/m3)|&lt;br /&gt;
% +------+------------------+--------+----------+--------------+&lt;br /&gt;
% |  1   |     12           |   10   |  1000    |     80       |&lt;br /&gt;
% |  2   |     31           |    8   |   600    |     70       |&lt;br /&gt;
% |  3   |     20           |    6   |   600    |     85       |&lt;br /&gt;
% |  4   |     25           |    9   |   800    |     80       |&lt;br /&gt;
% |  5   |     50           |   15   |  1200    |     73       |&lt;br /&gt;
% |  6   |     40           |   10   |   800    |     70       |&lt;br /&gt;
% |  7   |     60           |   12   |  1100    |     80       |&lt;br /&gt;
% +------+------------------+--------+----------+--------------+&lt;br /&gt;
%&lt;br /&gt;
% The objective of the shipper is to maximize his profit from&lt;br /&gt;
% transporting the wheat with lots that may be divided.&lt;br /&gt;
%&lt;br /&gt;
% Question 1:&lt;br /&gt;
% As a first step, assuming that every client has an unlimited&lt;br /&gt;
% quantity of wheat, which clients’ wheat should be transported?&lt;br /&gt;
%&lt;br /&gt;
% Question 2:&lt;br /&gt;
% If in addition the actual availability of wheat lots from the&lt;br /&gt;
% customers is taken into account, which strategy should the shipper&lt;br /&gt;
% adopt?&lt;br /&gt;
%&lt;br /&gt;
% Question 3:&lt;br /&gt;
% What happens if the lots cannot be divided?&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% capacity                   = 1500;&lt;br /&gt;
% units                      = [12;31;20;25;50;40;60];&lt;br /&gt;
% sizes                      = [10;8;6;9;15;10;12];&lt;br /&gt;
% unitprice                  = [10;6;6;8;12;8;11]*100;&lt;br /&gt;
% cost                       = [80;70;85;80;73;70;80];&lt;br /&gt;
% var1                       30 plus&lt;br /&gt;
% var2                       30 minus&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% x_k is a long vector of values, and if we run&lt;br /&gt;
% Result      = bargeloadingEx(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 Oct 7, 2005.   Last modified Oct 7, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = bargeloadingEx(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;
capacity    = 1500;&lt;br /&gt;
units       = [12;31;20;25;50;40;60];&lt;br /&gt;
sizes       = [10;8;6;9;15;10;12];&lt;br /&gt;
unitprice   = [10;6;6;8;12;8;11]*100;&lt;br /&gt;
cost        = [80;70;85;80;73;70;80];&lt;br /&gt;
&lt;br /&gt;
Prob = bargeloading(capacity, units, sizes, unitprice, cost);&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;Best buy&amp;#039;)&lt;br /&gt;
   for i = 1:length(units),&lt;br /&gt;
      if Result.x_k(i) &amp;gt; 0,&lt;br /&gt;
         disp([&amp;#039; &amp;#039; num2str(Result.x_k(i)) &amp;#039; unit(s) from &amp;#039; num2str(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;
% 051007 med   Created.&lt;br /&gt;
% 060111 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;
==Tank loading==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = tankloadingEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MIP problem for tank loading, maximizing the left over&lt;br /&gt;
% capacity&lt;br /&gt;
%&lt;br /&gt;
% TANK LOADING&lt;br /&gt;
%&lt;br /&gt;
% Five tanker ships have arrived at a chemical factory. They are&lt;br /&gt;
% carrying loads of liquid products that must not be mixed: 1200&lt;br /&gt;
% tonnes of Benzol, 700 tonnes of Butanol, 1000 tonnes of Propanol,&lt;br /&gt;
% 450 tonnes of Styrene, and 1200 tonnes of THF. Nine tanks of&lt;br /&gt;
% different capacities are available on site. Some of them are&lt;br /&gt;
% already partially filled with a liquid. The following table lists&lt;br /&gt;
% the characteristics of the tanks (in tonnes). Into which tanks&lt;br /&gt;
% should the ships be unloaded (question 1) to maximize the capacity&lt;br /&gt;
% of the tanks that remain unused, or (question 2) to maximize the&lt;br /&gt;
% number of tanks that remain free?&lt;br /&gt;
%&lt;br /&gt;
% Characteristics of tanks&lt;br /&gt;
%&lt;br /&gt;
% +---------------+---+------+---+---+---+---+---+---+---+&lt;br /&gt;
% |Tank           |  1|    2 |  3|  4|  5|  6|  7|  8|  9|&lt;br /&gt;
% +---------------+---+------+---+---+---+---+---+---+---+&lt;br /&gt;
% |Capacity       |500|  400 |400|600|600|900|800|800|800|&lt;br /&gt;
% |Current product|  -|Benzol|  -|  -|  -|  -|THF|  -|  -|&lt;br /&gt;
% |Quantity       |  0|  100 |  0|  0|  0|  0|300|  0|  0|&lt;br /&gt;
% +---------------+---+------+---+---+---+---+---+---+---+&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% capacity                   Capacity of Empty tanks&lt;br /&gt;
% products                   Amount of incoming chemicals&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% In order to interpret the results, try the following:&lt;br /&gt;
% Result = tankloadingEx(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 Oct 10, 2005.   Last modified Dec 8, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = tankloadingEx(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;
capacity    = [500;0;400;600;600;900;0;800;800];&lt;br /&gt;
products    = [1200-300;700;1000;450;1200-500];&lt;br /&gt;
&lt;br /&gt;
Prob = tankloading(capacity, products);&lt;br /&gt;
Result = tomRun(&amp;#039;cplex&amp;#039;, Prob, PriLev);&lt;br /&gt;
Result.remaining = sum(capacity)-Result.f_k;&lt;br /&gt;
&lt;br /&gt;
if PriLev &amp;gt; 1,&lt;br /&gt;
   disp(&amp;#039;NB: Tank 2 and tank 7 are filled before the optimization starts.&amp;#039;)&lt;br /&gt;
   temp   = reshape(Result.x_k,9,5);&lt;br /&gt;
   ships  = length(products);&lt;br /&gt;
   for ship = 1:ships,&lt;br /&gt;
      tank = find(temp(:,ship));&lt;br /&gt;
      disp([&amp;#039;Ship number &amp;#039; num2str(ship) &amp;#039; unloads in tank(s) &amp;#039; num2str(tank&amp;#039;)])&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051010 med   Created&lt;br /&gt;
% 051208 med   Added remaining the return&lt;br /&gt;
% 060112 per   Added documentation.&lt;br /&gt;
% 060124 per   Interpretation of results upgraded.&lt;br /&gt;
% 060125 per   Moved disp to end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Backing up files==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = backingupfilesEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MIP problem for backing up files&lt;br /&gt;
%&lt;br /&gt;
% BACKING UP FILES&lt;br /&gt;
%&lt;br /&gt;
% Before leaving on holiday, you wish to backup your most important&lt;br /&gt;
% files onto floppy disks. You have got empty disks of 1.44Mb&lt;br /&gt;
% capacity. The sixteen files you would like to save have the&lt;br /&gt;
% following sizes: 46kb, 55kb, 62kb, 87kb, 108kb, 114kb, 137kb,&lt;br /&gt;
% 164kb, 253kb, 364kb, 372kb, 388kb, 406kb, 432kb, 461kb, and 851kb.&lt;br /&gt;
%&lt;br /&gt;
% Assuming that you do not have any program at hand to compress the&lt;br /&gt;
% files and that you have got a sufficient number of floppy disks to&lt;br /&gt;
% save everything, how should the files be distributed in order to&lt;br /&gt;
% minimize the number of floppy disks used?&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% maxuse                     A maximal number of disks&lt;br /&gt;
% capacity                   Storage available on each disk&lt;br /&gt;
% sizes                      Filesizes&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% Results are explained by running:&lt;br /&gt;
% Result       = backingupfilesEx(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-2006 by Tomlab Optimization Inc., $Release: 5.2.0$&lt;br /&gt;
% Written Oct 10, 2005.   Last modified Mar 14, 2006.&lt;br /&gt;
&lt;br /&gt;
function Result = backingupfilesEx(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;
maxuse   = 10;&lt;br /&gt;
capacity = 1440;&lt;br /&gt;
sizes    = [46;55;62;87;108;114;137;164;253;364;372;388;406;432;461;851];&lt;br /&gt;
&lt;br /&gt;
Prob = backingupfiles(maxuse, capacity, sizes);&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;
   files        = length(sizes);&lt;br /&gt;
   filepos      = reshape(Result.x_k(1:files*maxuse),files,maxuse);&lt;br /&gt;
   disks_in_use = sum(Result.x_k(files*maxuse+1:files*maxuse+maxuse));&lt;br /&gt;
   disp([&amp;#039;a total of &amp;#039; num2str(disks_in_use) &amp;#039; disks are in use&amp;#039;])&lt;br /&gt;
   for d = 1:maxuse,&lt;br /&gt;
      files_on_disk = filepos(:,d);         % what files on disk d&lt;br /&gt;
      if (abs(sum(files_on_disk)) &amp;gt;= 0.5),         % disk d is not empty?&lt;br /&gt;
         file_ids = find(files_on_disk);&lt;br /&gt;
         disp([&amp;#039;  files on one of them: &amp;#039;  num2str(file_ids&amp;#039;) ])&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;
% 051010 med   Created.&lt;br /&gt;
% 060112 per   Added documentation&lt;br /&gt;
% 060125 per   Moved disp to end&lt;br /&gt;
% 060314 med   checking for empty disc changed&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Cutting sheet metal==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = cuttingsheetmetalEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MIP problem for cutting smaller parts from big ones.&lt;br /&gt;
%&lt;br /&gt;
% CUTTING SHEET METAL&lt;br /&gt;
%&lt;br /&gt;
% A sheet metal workshop cuts pieces of sheet metal from large&lt;br /&gt;
% rectangular sheets of 48 decimeters × 96 decimeters (dm). It has&lt;br /&gt;
% received an order for 8 rectangular pieces of 36 dm × 50 dm, 13&lt;br /&gt;
% sheets of 24 dm × 36 dm, 5 sheets of 20 dm × 60 dm, and 15 sheets&lt;br /&gt;
% of 18 dm × 30 dm. Theses pieces of sheet metal need to be cut from&lt;br /&gt;
% the available large pieces. How can this order by satisfied by&lt;br /&gt;
% using the least number of large sheets?&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% patterns                   Each column represent a possible sheet.&lt;br /&gt;
% demand                     Wanted rectangles&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% To explain the results, run:&lt;br /&gt;
% Result = cuttingsheetmetalEx(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 Oct 10, 2005.   Last modified Oct 10, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = cuttingsheetmetalEx(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;
% Have to manually evaluate all the possible patterns.&lt;br /&gt;
&lt;br /&gt;
patterns = [1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0;...&lt;br /&gt;
      2 1 0 2 1 0 3 2 1 0 5 4 3 2 1 0;...&lt;br /&gt;
      0 0 0 2 2 2 1 1 1 1 0 0 0 0 0 0;...&lt;br /&gt;
      0 1 3 0 1 3 0 2 3 5 0 1 3 5 6 8];&lt;br /&gt;
demand = [8;13;5;15];&lt;br /&gt;
&lt;br /&gt;
Prob = cuttingsheetmetal(demand, patterns);&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;
   idx    = find(x);&lt;br /&gt;
   order  = [x(idx) idx];&lt;br /&gt;
   for i = 1:length(idx),&lt;br /&gt;
      disp([&amp;#039;cut &amp;#039; num2str([order(i,1)]) &amp;#039; sheet(s) in pattern &amp;#039; num2str([order(i,2)])])&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051010 med   Created.&lt;br /&gt;
% 060112 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;
==Cutting steel bars for desk legs==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% function Result = cuttingsteelbarsfordesklegsEx(PriLev)&lt;br /&gt;
%&lt;br /&gt;
% Creates a TOMLAB MIP problem for cutting steel bars for desk legs.&lt;br /&gt;
%&lt;br /&gt;
% CUTTING STEEL BARS FOR DESK LEGS&lt;br /&gt;
%&lt;br /&gt;
% The company SchoolDesk produces desks of different sizes for&lt;br /&gt;
% kindergartens, primary and secondary schools, and colleges. The&lt;br /&gt;
% legs of the desks all have the same diameter, with different&lt;br /&gt;
% lengths: 40 cm for the smallest ones, 60 cm for medium height, and&lt;br /&gt;
% 70 cm for the largest ones. These legs are cut from steel bars of&lt;br /&gt;
% 1.5 or 2 meters. The company has received an order for 108 small,&lt;br /&gt;
% 125 medium and 100 large desks. How should this order be produced&lt;br /&gt;
% if the company wishes to minimize the trim loss?&lt;br /&gt;
%&lt;br /&gt;
% VARIABLES&lt;br /&gt;
%&lt;br /&gt;
% patterns                   The different cutting patterns&lt;br /&gt;
% demand                     Demand of the different lengths&lt;br /&gt;
% loss                       Loss for each pattern&lt;br /&gt;
% lengths                    The lengths&lt;br /&gt;
%&lt;br /&gt;
% RESULTS&lt;br /&gt;
%&lt;br /&gt;
% To interpret the results run this:&lt;br /&gt;
% Result = cuttingsteelbarsfordesklegsEx(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 Oct 10, 2005.   Last modified Dec 8, 2005.&lt;br /&gt;
&lt;br /&gt;
function Result = cuttingsteelbarsfordesklegsEx(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;
patterns = [0 0 2 0 2 3 0 0 1 3 0 5;...&lt;br /&gt;
      0 1 0 2 1 0 1 2 0 0 3 0;...&lt;br /&gt;
      2 1 1 0 0 0 2 1 2 1 0 0];&lt;br /&gt;
&lt;br /&gt;
demand   = [108;125;100]*4;&lt;br /&gt;
loss     = [10 20  0 30 10 30  0 10 20 10 20  0]&amp;#039;;&lt;br /&gt;
lengths  = [150;200];&lt;br /&gt;
&lt;br /&gt;
Prob = cuttingsteelbarsfordesklegs(demand, patterns, lengths);&lt;br /&gt;
Prob.fConstant = -75280; % Constant to deduct from objective&lt;br /&gt;
Result = tomRun(&amp;#039;cplex&amp;#039;, Prob, PriLev);&lt;br /&gt;
Result.loss = sum(Result.x_k.*loss);&lt;br /&gt;
&lt;br /&gt;
if PriLev &amp;gt; 1,&lt;br /&gt;
   x      = Result.x_k;&lt;br /&gt;
   idx    = find(x);&lt;br /&gt;
   order  = [x(idx) idx];&lt;br /&gt;
   disp([&amp;#039;a minimal loss of &amp;#039; num2str(Result.loss) &amp;#039; is found with this combination:&amp;#039; ])&lt;br /&gt;
   for i = 1:length(idx),&lt;br /&gt;
      disp([&amp;#039; cut &amp;#039; num2str([order(i,1)]) &amp;#039; bar(s) in pattern &amp;#039; num2str([order(i,2)])])&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% MODIFICATION LOG&lt;br /&gt;
%&lt;br /&gt;
% 051010 med   Created&lt;br /&gt;
% 051208 med   Loss added to Result&lt;br /&gt;
% 060112 per   Added documentation.&lt;br /&gt;
% 060112 per   Minor update.&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>