66 lines
19 KiB
HTML
66 lines
19 KiB
HTML
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
|
<head>
|
||
|
|
<title>OR-Tools</title>
|
||
|
|
<meta http-equiv="Content-Type" content="text/html;"/>
|
||
|
|
<meta charset="utf-8"/>
|
||
|
|
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
|
||
|
|
<link rel="stylesheet" type="text/css" href="ortools.css" title="default" media="screen,print" />
|
||
|
|
<script type="text/javascript" src="jquery.js"></script>
|
||
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div id="banner-container">
|
||
|
|
<div id="banner">
|
||
|
|
<span id="sfml">OR-Tools 7.1@</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div id="content">
|
||
|
|
<!-- Generated by Doxygen 1.8.15 -->
|
||
|
|
<div id="navrow1" class="tabs">
|
||
|
|
<ul class="tablist">
|
||
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div id="navrow2" class="tabs2">
|
||
|
|
<ul class="tablist">
|
||
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
||
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div id="nav-path" class="navpath">
|
||
|
|
<ul>
|
||
|
|
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_725f3a5915051842f84e3ea508be2a62.html">graph</a></li><li class="navelem"><a class="el" href="dir_b844ff27acc43c1a4b2e863940cb5a2f.html">samples</a></li> </ul>
|
||
|
|
</div>
|
||
|
|
</div><!-- top -->
|
||
|
|
<div class="header">
|
||
|
|
<div class="headertitle">
|
||
|
|
<div class="title">SimpleMaxFlowProgram.cs</div> </div>
|
||
|
|
</div><!--header-->
|
||
|
|
<div class="contents">
|
||
|
|
<a href="SimpleMaxFlowProgram_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2010-2018 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// [START program]</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">using</span> System;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">using</span> <a class="code" href="namespaceGoogle.html">Google</a>.<a class="code" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code" href="namespaceGoogle_1_1OrTools_1_1Graph.html">Graph</a>;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classSimpleMaxFlowProgram.html"> 18</a></span> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classSimpleMaxFlowProgram.html">SimpleMaxFlowProgram</a></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> Main()</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="comment">// [START data]</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="comment">// Define three parallel arrays: start_nodes, end_nodes, and the capacities</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="comment">// between each pair. For instance, the arc from node 0 to node 1 has a</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="comment">// capacity of 20.</span></div><div class="line"><a na
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a492379b78b025a09516b97d168cf7ec6"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a492379b78b025a09516b97d168cf7ec6">Google.OrTools.Graph.MaxFlow.NumArcs</a></div><div class="ttdeci">int NumArcs()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00056">MaxFlow.cs:56</a></div></div>
|
||
|
|
<div class="ttc" id="classSimpleMaxFlowProgram_html"><div class="ttname"><a href="classSimpleMaxFlowProgram.html">SimpleMaxFlowProgram</a></div><div class="ttdef"><b>Definition:</b> <a href="SimpleMaxFlowProgram_8cs_source.html#l00018">SimpleMaxFlowProgram.cs:18</a></div></div>
|
||
|
|
<div class="ttc" id="namespaceGoogle_html"><div class="ttname"><a href="namespaceGoogle.html">Google</a></div><div class="ttdef"><b>Definition:</b> <a href="KInt64Vector_8cs_source.html#l00011">KInt64Vector.cs:11</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a56385726a31714a40d7addf195f614a0"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a56385726a31714a40d7addf195f614a0">Google.OrTools.Graph.MaxFlow.Solve</a></div><div class="ttdeci">MaxFlow.Status Solve(int source, int sink)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00076">MaxFlow.cs:76</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html">Google.OrTools.Graph.MaxFlow</a></div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00013">MaxFlow.cs:13</a></div></div>
|
||
|
|
<div class="ttc" id="namespaceGoogle_1_1OrTools_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools.html">Google.OrTools</a></div><div class="ttdef"><b>Definition:</b> <a href="KInt64Vector_8cs_source.html#l00011">KInt64Vector.cs:11</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a21927482a0c291c9a79b94a582c3534f"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a21927482a0c291c9a79b94a582c3534f">Google.OrTools.Graph.MaxFlow.Flow</a></div><div class="ttdeci">long Flow(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00086">MaxFlow.cs:86</a></div></div>
|
||
|
|
<div class="ttc" id="namespaceGoogle_1_1OrTools_1_1Graph_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools_1_1Graph.html">Google.OrTools.Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="LinearSumAssignment_8cs_source.html#l00011">LinearSumAssignment.cs:11</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a1c3d550cfa19751fedbddd2b37b154f0"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a1c3d550cfa19751fedbddd2b37b154f0">Google.OrTools.Graph.MaxFlow.Head</a></div><div class="ttdeci">int Head(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00066">MaxFlow.cs:66</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a59864058a8df2fdbc14cbe0a0f581d22"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a59864058a8df2fdbc14cbe0a0f581d22">Google.OrTools.Graph.MaxFlow.OptimalFlow</a></div><div class="ttdeci">long OptimalFlow()</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00081">MaxFlow.cs:81</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a2d40430f8d48317094acb9ab132de194"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a2d40430f8d48317094acb9ab132de194">Google.OrTools.Graph.MaxFlow.Status</a></div><div class="ttdeci">Status</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00091">MaxFlow.cs:91</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a3bd67701a00ffd8d14bdde8944b29f5b"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a3bd67701a00ffd8d14bdde8944b29f5b">Google.OrTools.Graph.MaxFlow.AddArcWithCapacity</a></div><div class="ttdeci">int AddArcWithCapacity(int tail, int head, long capacity)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00046">MaxFlow.cs:46</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow_html_a046e6a4550f66b9efd8618750b337fd7"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Graph_1_1MaxFlow.html#a046e6a4550f66b9efd8618750b337fd7">Google.OrTools.Graph.MaxFlow.Capacity</a></div><div class="ttdeci">long Capacity(int arc)</div><div class="ttdef"><b>Definition:</b> <a href="MaxFlow_8cs_source.html#l00071">MaxFlow.cs:71</a></div></div>
|
||
|
|
</div><!-- fragment --></div><!-- contents -->
|
||
|
|
</div>
|
||
|
|
<div id="footer-container">
|
||
|
|
<div id="footer">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|