<?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=CPLEX_Appendix_E</id>
	<title>CPLEX Appendix E - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://tomwiki.com/index.php?action=history&amp;feed=atom&amp;title=CPLEX_Appendix_E"/>
	<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=CPLEX_Appendix_E&amp;action=history"/>
	<updated>2026-11-01T22:16:38Z</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=CPLEX_Appendix_E&amp;diff=2400&amp;oldid=prev</id>
		<title>Elias at 11:51, 13 December 2011</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=CPLEX_Appendix_E&amp;diff=2400&amp;oldid=prev"/>
		<updated>2011-12-13T11:51:30Z</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 06:51, 13 December 2011&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-l26&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&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;&amp;lt;equation id=&amp;quot;eqn:networkProb&amp;quot;&amp;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;&amp;lt;equation id=&amp;quot;eqn:networkProb&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;&amp;lt;math&amp;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;&amp;lt;math&amp;gt;&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;\begin{array}{rccccl}    \min\limits_{x} &amp;amp; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\multicolumn{5}{l}{{&lt;/del&gt;\sum\limits_{a \in A}c_{a}x_{a&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/del&gt;} \\ &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;       &amp;amp; \\    &lt;/del&gt;s/t &amp;amp; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\multicolumn{5}{l}{&lt;/del&gt;\sum\limits_{a \in T_a}x_{a} - \sum\limits_{a \in H_a}x_{a} = s_{n} \forall n \in N&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/del&gt;\\ &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;       &lt;/del&gt;&amp;amp; l_{a} &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp; &lt;/del&gt;\leq &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &amp;amp; &lt;/del&gt;x_{a} &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &amp;amp; &lt;/del&gt;\leq  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp; &lt;/del&gt;u_{a} \\ &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;\end{array}&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;\begin{array}{rccccl}     &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;\min\limits_{x} &amp;amp; \sum\limits_{a \in A}c_{a}x_{a} \\ &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;s/t &amp;amp; \sum\limits_{a \in T_a} x_{a} - \sum\limits_{a \in H_a} x_{a} = s_{n} \forall n \in N \\&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\\&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;amp;l_{a} \leq x_{a} \leq  u_{a} \\&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;\end{array}&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;&amp;lt;/math&amp;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;&amp;lt;/math&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;&amp;lt;/equation&amp;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;&amp;lt;/equation&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=CPLEX_Appendix_E&amp;diff=1003&amp;oldid=prev</id>
		<title>Elias at 11:15, 17 August 2011</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=CPLEX_Appendix_E&amp;diff=1003&amp;oldid=prev"/>
		<updated>2011-08-17T11:15:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://tomwiki.com/index.php?title=CPLEX_Appendix_E&amp;amp;diff=1003&amp;amp;oldid=1001&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Elias</name></author>
	</entry>
	<entry>
		<id>http://tomwiki.com/index.php?title=CPLEX_Appendix_E&amp;diff=1001&amp;oldid=prev</id>
		<title>Elias: Created page with &quot;{{Part Of Manual|title=the CPLEX Manual|link=CPLEX}} ==TOMLAB /CPLEX Network Solver==  The TOMLAB /CPLEX network solver is a special interface for network problems desc...&quot;</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=CPLEX_Appendix_E&amp;diff=1001&amp;oldid=prev"/>
		<updated>2011-08-17T09:51:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Part Of Manual|title=the CPLEX Manual|link=&lt;a href=&quot;/index.php?title=CPLEX&quot; title=&quot;CPLEX&quot;&gt;CPLEX&lt;/a&gt;}} ==TOMLAB /CPLEX Network Solver==  The TOMLAB /CPLEX network solver is a special interface for network problems desc...&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=the CPLEX Manual|link=[[CPLEX|CPLEX]]}}&lt;br /&gt;
==TOMLAB /CPLEX Network Solver==&lt;br /&gt;
&lt;br /&gt;
The TOMLAB /CPLEX network solver is a special interface for network problems described by a set of nodes and arcs. The TOMLAB  format is not applicable for these types of problem. See &amp;#039;&amp;#039;cplexnet&amp;#039;&amp;#039; for information on calling the solver.&lt;br /&gt;
&lt;br /&gt;
A network-flow problem finds the minimal-cost flow through a network, where a network consists of a set N of nodes and a set A of arcs connecting the nodes. An arc a in the set A is an ordered pair (i, j) where i and j are nodes in the set N; node i is called the tail or the from-node and node j is called the head or the to-node of the arc a. Not all the pairs of nodes in a set N are necessarily connected by arcs in the set A. More than one arc may connect a pair of nodes; in other words, a1 = (i, j) and a2 = (i, j) may be two different arcs in A, both connecting the nodes i and j in N.&lt;br /&gt;
&lt;br /&gt;
Each arc a may be associated with four values:&lt;br /&gt;
&lt;br /&gt;
*x&amp;lt;sub&amp;gt;a&amp;lt;/sub&amp;gt; is the flow value, that is, the amount passing through the arc a from its tail (or from-node) to its head (or to-node).  The flow values are the modeling variables of a network-flow problem.  Negative values are allowed; a negative flow value indicates that there is flow from the head to the tail.&lt;br /&gt;
&lt;br /&gt;
*l&amp;lt;sub&amp;gt;a&amp;lt;/sub&amp;gt; the lower bound, determines the minimum flow allowed through the arc a. By default, the lower bound on an arc is 0 (zero).&lt;br /&gt;
&lt;br /&gt;
*u&amp;lt;sub&amp;gt;a&amp;lt;/sub&amp;gt;, the upper bound, determines the maximum flow allowed through the arc a. By default, the upper bound on an arc is positive infinity.&lt;br /&gt;
&lt;br /&gt;
c&amp;lt;sub&amp;gt;a&amp;lt;/sub&amp;gt;, the objective value, determines the contribution to the objective function of one unit of flow through the arc.&lt;br /&gt;
&lt;br /&gt;
Each node n is associated with one value:&lt;br /&gt;
&lt;br /&gt;
*s&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt; is the supply value at node n.&lt;br /&gt;
&lt;br /&gt;
By convention, a node with strictly  positive supply value (that  is, &amp;#039;&amp;#039;sn &amp;gt; &amp;#039;&amp;#039;0) is called a supply node or a source, and a node with strictly  negative supply value (that is, &amp;#039;&amp;#039;sn &amp;lt; &amp;#039;&amp;#039;0) is called a demand node or a sink. A node where &amp;#039;&amp;#039;sn &amp;#039;&amp;#039;= 0 is called a transshipment node. The sum of all supplies must match the sum of all demands; if not, then the network flow problem is infeasible.&lt;br /&gt;
&lt;br /&gt;
T&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt; is the set of arcs whose tails are node n; &amp;#039;&amp;#039;Hn &amp;#039;&amp;#039;is the set of arcs whose heads are node n.  The usual form of a network problem looks like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{rccccl}    \min\limits_{x} &amp;amp; \multicolumn{5}{l}{{\sum\limits_{a \in A}c_{a}x_{a}}} \\        &amp;amp; \\    s/t &amp;amp; \multicolumn{5}{l}{\sum\limits_{a \in T_a}x_{a} - \sum\limits_{a \in H_a}x_{a} = s_{n} \forall n \in N}\\        &amp;amp; l_{a} &amp;amp; \leq  &amp;amp; x_{a}   &amp;amp; \leq  &amp;amp; u_{a} \\     \end{array}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A test routines that illustrates a simple problem is included in the TOMLAB distribution. &amp;lt;xr id=&amp;quot;fig:netProblem&amp;quot; /&amp;gt; shows the network problem solved:&lt;br /&gt;
&lt;br /&gt;
The following code will call the network solver and deliver the optimal solution.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;figure id=&amp;quot;fig:netProblem&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Network problem in cpxNetTest1.m.jpg|thumb|550px|none|alt=Network problem in cpxNetTest1.m|&amp;lt;caption&amp;gt;Network problem in cpxNetTest1.m.&amp;lt;/caption&amp;gt;]]&lt;br /&gt;
&amp;lt;/figure&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
x = cpxNetTest1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is possible to  call the TOMLAB   /CPLEX solver using a special non-MATLAB  input  format. Example &amp;#039;&amp;#039;cpxNetTest2&amp;#039;&amp;#039; illustrates how to load and solve the problem described in &amp;#039;&amp;#039;nexample.net&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
===cpxcb_BARRIER===&lt;br /&gt;
*[[CPLEX cpxcb_BARRIER|cpxcb_BARRIER]]&lt;/div&gt;</summary>
		<author><name>Elias</name></author>
	</entry>
</feed>