Files
ortools-clone/docs/cpp_graph/min__cost__flow_8h_source.html

124 lines
140 KiB
HTML
Raw Normal View History

2019-06-13 15:36:14 +02:00
<!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"/>-->
2019-06-20 23:08:48 +02:00
<link rel="stylesheet" type="text/css" href="ortools.css" title="default" media="screen,print" />
2019-06-13 15:36:14 +02:00
<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">
2019-06-29 18:18:08 +02:00
<span id="sfml">OR-Tools 7.2</span>
2019-06-13 15:36:14 +02:00
</div>
</div>
2019-06-29 18:18:08 +02:00
<link rel="icon" href="https://developers.google.com/optimization/images/orLogo.png">
2019-06-13 15:36:14 +02:00
<div id="content">
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
2019-07-15 17:42:24 -07:00
<li class="current"><a href="files.html"><span>Files</span></a></li>
2019-06-13 15:36:14 +02:00
</ul>
</div>
</div><!-- top -->
2019-07-12 13:25:23 -07:00
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('min__cost__flow_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
2019-06-13 15:36:14 +02:00
<div class="header">
<div class="headertitle">
<div class="title">min_cost_flow.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="min__cost__flow_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2010-2018 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<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>&#160;<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>&#160;<span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<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>&#160;<span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<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>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<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>&#160;<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>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">// An implementation of a cost-scaling push-relabel algorithm for</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// the min-cost flow problem.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">// In the following, we consider a graph G = (V,E) where V denotes the set</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">// of nodes (vertices) in the graph, E denotes the set of arcs (edges).</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">// n = |V| denotes the number of nodes in the graph, and m = |E| denotes the</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment">// number of arcs in the graph.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment">// With each arc (v,w) is associated a nonnegative capacity u(v,w)</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment">// (where &#39;u&#39; stands for &quot;upper bound&quot;) and a unit cost c(v,w). With</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment">// each node v is associated a quantity named supply(v), which</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">// represents a supply of fluid (if &gt;0) or a demand
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html">operations_research::SimpleMinCostFlow</a></div><div class="ttdoc">A simple and efficient min-cost flow interface.</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00213">min_cost_flow.h:213</a></div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlowBase_html_ae5cad0c7d9c3eddbc7c3aefbee060457"><div class="ttname"><a href="classoperations__research_1_1MinCostFlowBase.html#ae5cad0c7d9c3eddbc7c3aefbee060457">operations_research::MinCostFlowBase::Status</a></div><div class="ttdeci">Status</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00194">min_cost_flow.h:194</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a492bdbfb9459995c0f0c41c1cbd0b1bd"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a492bdbfb9459995c0f0c41c1cbd0b1bd">operations_research::SimpleMinCostFlow::Tail</a></div><div class="ttdeci">NodeIndex Tail(ArcIndex arc) const</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a60da0a24c813a9ee39f96cc36f8dd9ad"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a60da0a24c813a9ee39f96cc36f8dd9ad">operations_research::GenericMinCostFlow::MakeFeasible</a></div><div class="ttdeci">bool MakeFeasible()</div><div class="ttdoc">Makes the min-cost flow problem solvable by truncating supplies and demands to a level acceptable by ...</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a7e4301ebf8c5f86143e390494a0a6f4f"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a7e4301ebf8c5f86143e390494a0a6f4f">operations_research::GenericMinCostFlow::SetNodeSupply</a></div><div class="ttdeci">void SetNodeSupply(NodeIndex node, FlowQuantity supply)</div><div class="ttdoc">Sets the supply corresponding to node.</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a0aadf64af2dbb2115943c046e3d14622"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a0aadf64af2dbb2115943c046e3d14622">operations_research::GenericMinCostFlow::OutgoingOrOppositeIncomingArcIterator</a></div><div class="ttdeci">Graph::OutgoingOrOppositeIncomingArcIterator OutgoingOrOppositeIncomingArcIterator</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00328">min_cost_flow.h:328</a></div></div>
<div class="ttc" id="namespaceutil_html_ae76339cb2dcd3bc05ad762146f91fdda"><div class="ttname"><a href="namespaceutil.html#ae76339cb2dcd3bc05ad762146f91fdda">util::Graph</a></div><div class="ttdeci">ListGraph Graph</div><div class="ttdoc">Defining the simplest Graph interface as Graph for convenience.</div><div class="ttdef"><b>Definition:</b> <a href="graph_8h_source.html#l02358">graph.h:2358</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a49270938ce4794ae76f8a25c23ddef65"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a49270938ce4794ae76f8a25c23ddef65">operations_research::SimpleMinCostFlow::MaximumFlow</a></div><div class="ttdeci">FlowQuantity MaximumFlow() const</div><div class="ttdoc">Returns the total flow of the minimum-cost flow found by the algorithm when the returned Status is OP...</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a3c6c7677fb80955e5c7386849596043e"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a3c6c7677fb80955e5c7386849596043e">operations_research::GenericMinCostFlow::OutgoingArcIterator</a></div><div class="ttdeci">Graph::OutgoingArcIterator OutgoingArcIterator</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00326">min_cost_flow.h:326</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a8ea0e6e91a6965d8de090ef797bb4185"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a8ea0e6e91a6965d8de090ef797bb4185">operations_research::GenericMinCostFlow::graph</a></div><div class="ttdeci">const Graph * graph() const</div><div class="ttdoc">Returns the graph associated to the current object.</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00337">min_cost_flow.h:337</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_aaf02e6d654d4be1a50507d9d40dd1e99"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#aaf02e6d654d4be1a50507d9d40dd1e99">operations_research::GenericMinCostFlow::NodeIndex</a></div><div class="ttdeci">Graph::NodeIndex NodeIndex</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00324">min_cost_flow.h:324</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_aa7950685633ee869aa9471b2ec5fbcfa"><div class="ttname"><a href="namespaceoperations__research.html#aa7950685633ee869aa9471b2ec5fbcfa">operations_research::CostValue</a></div><div class="ttdeci">int64 CostValue</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00203">ebert_graph.h:203</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_ace5a6df9ac9993c42cd091f6e9ebbd54"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#ace5a6df9ac9993c42cd091f6e9ebbd54">operations_research::GenericMinCostFlow::status</a></div><div class="ttdeci">Status status() const</div><div class="ttdoc">Returns the status of last call to Solve().</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00342">min_cost_flow.h:342</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a81e1e8d405058ffdd6aa80978345fa83"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a81e1e8d405058ffdd6aa80978345fa83">operations_research::GenericMinCostFlow::ArcIndexArray</a></div><div class="ttdeci">ZVector&lt; ArcIndex &gt; ArcIndexArray</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00329">min_cost_flow.h:329</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a98af872df7cb24c5d3074cc44a16f9a7"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a98af872df7cb24c5d3074cc44a16f9a7">operations_research::SimpleMinCostFlow::UnitCost</a></div><div class="ttdeci">CostValue UnitCost(ArcIndex arc) const</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_ad66a0601a4f1c5f98079d333d5a465e8"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#ad66a0601a4f1c5f98079d333d5a465e8">operations_research::GenericMinCostFlow::ArcIndex</a></div><div class="ttdeci">Graph::ArcIndex ArcIndex</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00325">min_cost_flow.h:325</a></div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlowBase_html"><div class="ttname"><a href="classoperations__research_1_1MinCostFlowBase.html">operations_research::MinCostFlowBase</a></div><div class="ttdoc">Different statuses for a solved problem.</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00192">min_cost_flow.h:192</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a5841ff601ab08548afb15c45b2245de7"><div class="ttname"><a href="namespaceoperations__research.html#a5841ff601ab08548afb15c45b2245de7">operations_research::FlowQuantity</a></div><div class="ttdeci">int64 FlowQuantity</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00202">ebert_graph.h:202</a></div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlowBase_html_ae5cad0c7d9c3eddbc7c3aefbee060457ad79843de8fcdec97ba2ce9b83d6cf3c1"><div class="ttname"><a href="classoperations__research_1_1MinCostFlowBase.html#ae5cad0c7d9c3eddbc7c3aefbee060457ad79843de8fcdec97ba2ce9b83d6cf3c1">operations_research::MinCostFlowBase::UNBALANCED</a></div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00199">min_cost_flow.h:199</a></div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlowBase_html_ae5cad0c7d9c3eddbc7c3aefbee060457a030d97dcea9960e3d1f127024b0e2168"><div class="ttname"><a href="classoperations__research_1_1MinCostFlowBase.html#ae5cad0c7d9c3eddbc7c3aefbee060457a030d97dcea9960e3d1f127024b0e2168">operations_research::MinCostFlowBase::BAD_RESULT</a></div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00200">min_cost_flow.h:200</a></div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlowBase_html_ae5cad0c7d9c3eddbc7c3aefbee060457ab78b8e2734f0e777e79b8e5f93948101"><div class="ttname"><a href="classoperations__research_1_1MinCostFlowBase.html#ae5cad0c7d9c3eddbc7c3aefbee060457ab78b8e2734f0e777e79b8e5f93948101">operations_research::MinCostFlowBase::FEASIBLE</a></div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00197">min_cost_flow.h:197</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_ac2a7f803ea909ac1f3225f2607f1f33b"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#ac2a7f803ea909ac1f3225f2607f1f33b">operations_research::SimpleMinCostFlow::Flow</a></div><div class="ttdeci">FlowQuantity Flow(ArcIndex arc) const</div><div class="ttdoc">Returns the flow on arc, this only make sense for a successful Solve().</div></div>
<div class="ttc" id="namespaceoperations__research_html_a7d4fc0319cb4e28ec175fc9163775a6e"><div class="ttname"><a href="namespaceoperations__research.html#a7d4fc0319cb4e28ec175fc9163775a6e">operations_research::QuantityArray</a></div><div class="ttdeci">ZVector&lt; FlowQuantity &gt; QuantityArray</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00209">ebert_graph.h:209</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html">operations_research::GenericMinCostFlow</a></div><div class="ttdoc">Forward declaration.</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00188">min_cost_flow.h:188</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_ac5a5362a674cfb2a7589bcd77c484c17"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#ac5a5362a674cfb2a7589bcd77c484c17">operations_research::GenericMinCostFlow::Flow</a></div><div class="ttdeci">FlowQuantity Flow(ArcIndex arc) const</div><div class="ttdoc">Returns the flow on the given arc using the equations given in the comment on residual_arc_capacity_.</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a35f31d23e3f300f2e36aa46b2e854c00"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a35f31d23e3f300f2e36aa46b2e854c00">operations_research::GenericMinCostFlow::SetArcCapacity</a></div><div class="ttdeci">void SetArcCapacity(ArcIndex arc, ArcFlowType new_capacity)</div><div class="ttdoc">Sets the capacity for the given arc.</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a0969b64c9993394fb1cc97a2404e12a4"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a0969b64c9993394fb1cc97a2404e12a4">operations_research::GenericMinCostFlow::SetArcUnitCost</a></div><div class="ttdeci">void SetArcUnitCost(ArcIndex arc, ArcScaledCostType unit_cost)</div><div class="ttdoc">Sets the unit cost for the given arc.</div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlowBase_html_ae5cad0c7d9c3eddbc7c3aefbee060457af323941c683086f71ce1e7cae7a0a1b3"><div class="ttname"><a href="classoperations__research_1_1MinCostFlowBase.html#ae5cad0c7d9c3eddbc7c3aefbee060457af323941c683086f71ce1e7cae7a0a1b3">operations_research::MinCostFlowBase::INFEASIBLE</a></div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00198">min_cost_flow.h:198</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a44c22a9d4609a54cfc7034de3e541ce7"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a44c22a9d4609a54cfc7034de3e541ce7">operations_research::GenericMinCostFlow::Capacity</a></div><div class="ttdeci">FlowQuantity Capacity(ArcIndex arc) const</div><div class="ttdoc">Returns the capacity of the given arc.</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_ae70575b0b8bbc06301778b172752958b"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#ae70575b0b8bbc06301778b172752958b">operations_research::GenericMinCostFlow::UnitCost</a></div><div class="ttdeci">CostValue UnitCost(ArcIndex arc) const</div><div class="ttdoc">Returns the unscaled cost for the given arc.</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a37cb4245bf39c34116d5466d7922f565"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a37cb4245bf39c34116d5466d7922f565">operations_research::GenericMinCostFlow::GetOptimalCost</a></div><div class="ttdeci">CostValue GetOptimalCost() const</div><div class="ttdoc">Returns the cost of the minimum-cost flow found by the algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00380">min_cost_flow.h:380</a></div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlowBase_html_ae5cad0c7d9c3eddbc7c3aefbee060457a44ab1b2f3c5251267bce749661e4e6de"><div class="ttname"><a href="classoperations__research_1_1MinCostFlowBase.html#ae5cad0c7d9c3eddbc7c3aefbee060457a44ab1b2f3c5251267bce749661e4e6de">operations_research::MinCostFlowBase::NOT_SOLVED</a></div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00195">min_cost_flow.h:195</a></div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlow_html"><div class="ttname"><a href="classoperations__research_1_1MinCostFlow.html">operations_research::MinCostFlow</a></div><div class="ttdoc">Default MinCostFlow instance that uses StarGraph.</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00609">min_cost_flow.h:609</a></div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlow_html_a53a9c622cd9bc61deece5070c7533519"><div class="ttname"><a href="classoperations__research_1_1MinCostFlow.html#a53a9c622cd9bc61deece5070c7533519">operations_research::MinCostFlow::MinCostFlow</a></div><div class="ttdeci">MinCostFlow(const StarGraph *graph)</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00611">min_cost_flow.h:611</a></div></div>
<div class="ttc" id="graph_8h_html"><div class="ttname"><a href="graph_8h.html">graph.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_af4eeb2bca251bf02604bcbea5c304421"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#af4eeb2bca251bf02604bcbea5c304421">operations_research::SimpleMinCostFlow::Solve</a></div><div class="ttdeci">Status Solve()</div><div class="ttdoc">Solves the problem, and returns the problem status.</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00239">min_cost_flow.h:239</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_aaec6a152673412884a7c0d1b59991a70"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#aaec6a152673412884a7c0d1b59991a70">operations_research::SimpleMinCostFlow::OptimalCost</a></div><div class="ttdeci">CostValue OptimalCost() const</div><div class="ttdoc">Returns the cost of the minimum-cost flow found by the algorithm when the returned Status is OPTIMAL.</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a15963b8d1126b858e249c58658934305"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a15963b8d1126b858e249c58658934305">operations_research::GenericMinCostFlow::InitialSupply</a></div><div class="ttdeci">FlowQuantity InitialSupply(NodeIndex node) const</div><div class="ttdoc">Returns the initial supply at a given node.</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a17aff4acf62f808db05d5c43f37efda2"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a17aff4acf62f808db05d5c43f37efda2">operations_research::GenericMinCostFlow::GenericMinCostFlow</a></div><div class="ttdeci">GenericMinCostFlow(const Graph *graph)</div><div class="ttdoc">Initialize a MinCostFlow instance on the given graph.</div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a4f442c73b242e40a793d529df4e44d07"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a4f442c73b242e40a793d529df4e44d07">operations_research::SimpleMinCostFlow::SimpleMinCostFlow</a></div><div class="ttdeci">SimpleMinCostFlow()</div><div class="ttdoc">The constructor takes no size.</div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a7410b695f7e06dd3de7e6920bc28a3ac"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a7410b695f7e06dd3de7e6920bc28a3ac">operations_research::SimpleMinCostFlow::SetNodeSupply</a></div><div class="ttdeci">void SetNodeSupply(NodeIndex node, FlowQuantity supply)</div><div class="ttdoc">Sets the supply of the given node.</div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlowBase_html_ae5cad0c7d9c3eddbc7c3aefbee060457a41523b94852c3cb55c86ce0e291e3719"><div class="ttname"><a href="classoperations__research_1_1MinCostFlowBase.html#ae5cad0c7d9c3eddbc7c3aefbee060457a41523b94852c3cb55c86ce0e291e3719">operations_research::MinCostFlowBase::BAD_COST_RANGE</a></div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00201">min_cost_flow.h:201</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a816e24f3a6af98c2b3ae1854f6fc0781"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a816e24f3a6af98c2b3ae1854f6fc0781">operations_research::GenericMinCostFlow::SetUseUpdatePrices</a></div><div class="ttdeci">void SetUseUpdatePrices(bool value)</div><div class="ttdoc">Whether to use the UpdatePrices() heuristic.</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00406">min_cost_flow.h:406</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a60875aa935bd9594db707bfd97eab98c"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a60875aa935bd9594db707bfd97eab98c">operations_research::GenericMinCostFlow::SetArcFlow</a></div><div class="ttdeci">void SetArcFlow(ArcIndex arc, ArcFlowType new_flow)</div><div class="ttdoc">Sets the flow for the given arc.</div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a01f13e85a3d12e356f26d80210a6755f"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a01f13e85a3d12e356f26d80210a6755f">operations_research::GenericMinCostFlow::CheckFeasibility</a></div><div class="ttdeci">bool CheckFeasibility(std::vector&lt; NodeIndex &gt; *const infeasible_supply_node, std::vector&lt; NodeIndex &gt; *const infeasible_demand_node)</div><div class="ttdoc">Checks for feasibility, i.e., that all the supplies and demands can be matched without exceeding bott...</div></div>
<div class="ttc" id="namespaceoperations__research_html_a31d858394c5eed1fa21edc3da47047c1"><div class="ttname"><a href="namespaceoperations__research.html#a31d858394c5eed1fa21edc3da47047c1">operations_research::ArcIndex</a></div><div class="ttdeci">int32 ArcIndex</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00201">ebert_graph.h:201</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_aad61644a352f9eccbce03deffa6f6313"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#aad61644a352f9eccbce03deffa6f6313">operations_research::SimpleMinCostFlow::NumArcs</a></div><div class="ttdeci">ArcIndex NumArcs() const</div></div>
<div class="ttc" id="classoperations__research_1_1MinCostFlowBase_html_ae5cad0c7d9c3eddbc7c3aefbee060457a7ba4907297a99141ebd2bc890d5a591c"><div class="ttname"><a href="classoperations__research_1_1MinCostFlowBase.html#ae5cad0c7d9c3eddbc7c3aefbee060457a7ba4907297a99141ebd2bc890d5a591c">operations_research::MinCostFlowBase::OPTIMAL</a></div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00196">min_cost_flow.h:196</a></div></div>
2019-06-13 15:51:12 +02:00
<div class="ttc" id="namespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in c...</div><div class="ttdef"><b>Definition:</b> <a href="christofides_8h_source.html#l00033">christofides.h:33</a></div></div>
2019-06-13 15:36:14 +02:00
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_afa58296d5399afd27f8bed235e18309d"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#afa58296d5399afd27f8bed235e18309d">operations_research::GenericMinCostFlow::FeasibleSupply</a></div><div class="ttdeci">FlowQuantity FeasibleSupply(NodeIndex node) const</div><div class="ttdoc">Returns the largest supply (if &gt; 0) or largest demand in absolute value (if &lt; 0) admissible at node.</div></div>
<div class="ttc" id="classoperations__research_1_1EbertGraph_html"><div class="ttname"><a href="classoperations__research_1_1EbertGraph.html">operations_research::EbertGraph</a></div><div class="ttdoc">Forward declarations.</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00188">ebert_graph.h:188</a></div></div>
<div class="ttc" id="ebert__graph_8h_html"><div class="ttname"><a href="ebert__graph_8h.html">ebert_graph.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a632cc069a03f2d9873715467c09a3810"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a632cc069a03f2d9873715467c09a3810">operations_research::SimpleMinCostFlow::AddArcWithCapacityAndUnitCost</a></div><div class="ttdeci">ArcIndex AddArcWithCapacityAndUnitCost(NodeIndex tail, NodeIndex head, FlowQuantity capacity, CostValue unit_cost)</div><div class="ttdoc">Adds a directed arc from tail to head to the underlying graph with a given capacity and cost per unit...</div></div>
<div class="ttc" id="namespaceoperations__research_html_afdee62ecefa0520e530c18a55b083e6d"><div class="ttname"><a href="namespaceoperations__research.html#afdee62ecefa0520e530c18a55b083e6d">operations_research::CostArray</a></div><div class="ttdeci">ZVector&lt; CostValue &gt; CostArray</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00210">ebert_graph.h:210</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a443e6d29a83127237379abb898a26195"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a443e6d29a83127237379abb898a26195">operations_research::SimpleMinCostFlow::SolveMaxFlowWithMinCost</a></div><div class="ttdeci">Status SolveMaxFlowWithMinCost()</div><div class="ttdoc">Same as Solve(), but does not have the restriction that the supply must match the demand or that the ...</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00248">min_cost_flow.h:248</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a67cea170737362bd37bc8c8f8f024555"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a67cea170737362bd37bc8c8f8f024555">operations_research::GenericMinCostFlow::Supply</a></div><div class="ttdeci">FlowQuantity Supply(NodeIndex node) const</div><div class="ttdoc">Returns the supply at a given node.</div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a6f1a6fedf4eff7e8b015564e0a4fc786"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a6f1a6fedf4eff7e8b015564e0a4fc786">operations_research::SimpleMinCostFlow::Capacity</a></div><div class="ttdeci">FlowQuantity Capacity(ArcIndex arc) const</div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a034e472c35933cd3b6c6fc02985f54f7"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a034e472c35933cd3b6c6fc02985f54f7">operations_research::SimpleMinCostFlow::Supply</a></div><div class="ttdeci">FlowQuantity Supply(NodeIndex node) const</div></div>
<div class="ttc" id="namespaceoperations__research_html_a0e629e35bfa311b31dd7f5065eb834bb"><div class="ttname"><a href="namespaceoperations__research.html#a0e629e35bfa311b31dd7f5065eb834bb">operations_research::NodeIndex</a></div><div class="ttdeci">int32 NodeIndex</div><div class="ttdoc">Standard instantiation of ForwardEbertGraph (named 'ForwardStarGraph') of EbertGraph (named 'StarGrap...</div><div class="ttdef"><b>Definition:</b> <a href="ebert__graph_8h_source.html#l00192">ebert_graph.h:192</a></div></div>
<div class="ttc" id="classoperations__research_1_1GenericMinCostFlow_html_a9fffb489dce981de3233b1702b801eb6"><div class="ttname"><a href="classoperations__research_1_1GenericMinCostFlow.html#a9fffb489dce981de3233b1702b801eb6">operations_research::GenericMinCostFlow::SetCheckFeasibility</a></div><div class="ttdeci">void SetCheckFeasibility(bool value)</div><div class="ttdoc">Whether to check the feasibility of the problem with a max-flow, prior to solving it.</div><div class="ttdef"><b>Definition:</b> <a href="min__cost__flow_8h_source.html#l00414">min_cost_flow.h:414</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_a4792c687fa3c6fc576f0495e542ee6e5"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#a4792c687fa3c6fc576f0495e542ee6e5">operations_research::SimpleMinCostFlow::Head</a></div><div class="ttdeci">NodeIndex Head(ArcIndex arc) const</div></div>
<div class="ttc" id="classoperations__research_1_1SimpleMinCostFlow_html_ac80325e043df267da7b4f9e0799bba54"><div class="ttname"><a href="classoperations__research_1_1SimpleMinCostFlow.html#ac80325e043df267da7b4f9e0799bba54">operations_research::SimpleMinCostFlow::NumNodes</a></div><div class="ttdeci">NodeIndex NumNodes() const</div><div class="ttdoc">Accessors for the user given data.</div></div>
</div><!-- fragment --></div><!-- contents -->
2019-07-12 13:25:23 -07:00
</div><!-- doc-content -->
2019-06-13 15:36:14 +02:00
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>