Files
ortools-clone/docs/cpp_routing/routing_8h_source.html
2019-09-03 15:42:34 +02:00

582 lines
672 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">Google OR-Tools 7.3</span>
</div>
</div>
<div id="content" style="width: 100%; overflow: hidden;">
<div style="margin-left: 15px; margin-top: 5px; float: left; color: #145A32;">
<h2>C++ Reference</h2>
<ul>
<li><a href="../cpp_algorithms/annotated.html">Algorithms</a></li>
<li><a href="../cpp_sat/annotated.html">CP-SAT</a></li>
<li><a href="../cpp_graph/annotated.html">Graph</a></li>
<li><a href="../cpp_routing/annotated.html">Routing</a></li>
<li><a href="../cpp_linear/annotated.html">Linear solver</a></li>
</ul>
</div>
<div id="content">
<div align="center">
<h1 style="color: #145A32;">C++ Reference: Routing</h1>
</div>
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<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="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_afbb39f66221aac28bbdefd1dca2b2b0.html">constraint_solver</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">routing.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="routing_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="l00068"></a><span class="lineno"> 68</span>&#160;<span class="comment">// TODO(user): Add a section on costs (vehicle arc costs, span costs,</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="comment">// disjunctions costs).</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="preprocessor">#ifndef OR_TOOLS_CONSTRAINT_SOLVER_ROUTING_H_</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<span class="preprocessor">#define OR_TOOLS_CONSTRAINT_SOLVER_ROUTING_H_</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="preprocessor">#include &lt;cstddef&gt;</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="preprocessor">#include &lt;queue&gt;</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;<span class="preprocessor">#include &quot;absl/container/flat_hash_map.h&quot;</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;<span class="preprocessor">#include &quot;absl/container/flat_hash_set.h&quot;</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;<span class="preprocessor">#include &quot;absl/hash/hash.h&quot;</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;<span class="preprocessor">#include &quot;absl/time/time.h&quot;</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;<span class="preprocessor">#include &quot;ortools/base/adjustable_priority_queue-inl.h&quot;</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;<span class="preprocessor">#include &quot;ortools/base/adjustable_priority_queue.h&quot;</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;<span class="preprocessor">#include &quot;ortools/base/commandlineflags.h&quot;</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;<span class="preprocessor">#include &quot;ortools/base/hash.h&quot;</span></div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;<span class="preprocessor">#include &quot;ortools/base/int_type_indexed_vector.h&quot;</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;<span class="preprocessor">#include &quot;ortools/base/logging.h&quot;</span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;<span class="preprocessor">#include &quot;ortools/base/macros.h&quot;</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="constraint__solver_8h.html">ortools/constraint_solver/constraint_solver.h</a>&quot;</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="constraint__solveri_8h.html">ortools/constraint_solver/constraint_solveri.h</a>&quot;</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="routing__index__manager_8h.html">ortools/constraint_solver/routing_index_manager.h</a>&quot;</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;<span class="preprocessor">#include &quot;ortools/constraint_solver/routing_parameters.pb.h&quot;</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="routing__types_8h.html">ortools/constraint_solver/routing_types.h</a>&quot;</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;<span class="preprocessor">#include &quot;ortools/glop/lp_solver.h&quot;</span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;<span class="preprocessor">#include &quot;ortools/glop/parameters.pb.h&quot;</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;<span class="preprocessor">#include &quot;ortools/graph/graph.h&quot;</span></div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;<span class="preprocessor">#include &quot;ortools/lp_data/lp_data.h&quot;</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;<span class="preprocessor">#include &quot;ortools/lp_data/lp_types.h&quot;</span></div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;<span class="preprocessor">#include &quot;ortools/sat/theta_tree.h&quot;</span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;<span class="preprocessor">#include &quot;ortools/util/range_query_function.h&quot;</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;<span class="preprocessor">#include &quot;ortools/util/sorted_interval_list.h&quot;</span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;<span class="keyword">class </span>GlobalDimensionCumulOptimizer;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;<span class="keyword">class </span>IntVarFilteredDecisionBuilder;</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;<span class="keyword">class </span>LocalDimensionCumulOptimizer;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;<span class="keyword">class </span>LocalSearchOperator;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;<span class="keyword">class </span>RoutingDimension;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;<span class="keyword">using</span> util::ReverseArcListGraph;</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;<span class="keyword">class </span>SweepArranger;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;<span class="keyword">struct </span>SweepIndex;</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html"> 206</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a> {</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b"> 209</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> {</div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70babe45300b724161791a6429b27d7f5009"> 211</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70babe45300b724161791a6429b27d7f5009">ROUTING_NOT_SOLVED</a>,</div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba09515ee36ef4715f09f3aa67f685011e"> 213</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba09515ee36ef4715f09f3aa67f685011e">ROUTING_SUCCESS</a>,</div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70baba9b2029e549c14c8a6b9f6201e329fd"> 215</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70baba9b2029e549c14c8a6b9f6201e329fd">ROUTING_FAIL</a>,</div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70baf6452d79d02ab06bc8d722d25825cae3"> 217</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70baf6452d79d02ab06bc8d722d25825cae3">ROUTING_FAIL_TIMEOUT</a>,</div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae78ffdfdfc3eb7331c0ef91bdef8452b"> 219</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae78ffdfdfc3eb7331c0ef91bdef8452b">ROUTING_INVALID</a></div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; };</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83"> 223</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> {</div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a2fecd02405f5ff0769292822ad17a955"> 225</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a2fecd02405f5ff0769292822ad17a955">PICKUP_AND_DELIVERY_NO_ORDER</a>,</div><div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a272376ed085de7d28d36fa1013394cc8"> 227</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a272376ed085de7d28d36fa1013394cc8">PICKUP_AND_DELIVERY_LIFO</a>,</div><div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a5c55a9aa52a754be8eb1b9d29af97a8a"> 229</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a5c55a9aa52a754be8eb1b9d29af97a8a">PICKUP_AND_DELIVERY_FIFO</a></div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; };</div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d"> 231</a></span>&#160; <span class="keyword">typedef</span> RoutingCostClassIndex <a class="code" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a>;</div><div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a966f3010581e2a82e0b1e550667d8bce"> 232</a></span>&#160; <span class="keyword">typedef</span> RoutingDimensionIndex <a class="code" href="classoperations__research_1_1RoutingModel.html#a966f3010581e2a82e0b1e550667d8bce">DimensionIndex</a>;</div><div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1"> 233</a></span>&#160; <span class="keyword">typedef</span> RoutingDisjunctionIndex <a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a>;</div><div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ab6aae3927f3537c446ac33f2c6ecb922"> 234</a></span>&#160; <span class="keyword">typedef</span> RoutingVehicleClassIndex <a class="code" href="classoperations__research_1_1RoutingModel.html#ab6aae3927f3537c446ac33f2c6ecb922">VehicleClassIndex</a>;</div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3"> 235</a></span>&#160; <span class="keyword">typedef</span> <a class="code" href="namespaceoperations__research.html#abec0698c301a7fe57265985e2d30e7c7">RoutingTransitCallback1</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a>;</div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a"> 236</a></span>&#160; <span class="keyword">typedef</span> <a class="code" href="namespaceoperations__research.html#ab35e9f27307e9c5273c9d77fcf30de0e">RoutingTransitCallback2</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a>;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;<span class="comment">// TODO(user): Remove all SWIG guards by adding the @ignore in .i.</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160;<span class="preprocessor">#if !defined(SWIG)</span></div><div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a1636c49d2587c3d9df16918345b82378"> 240</a></span>&#160; <span class="keyword">typedef</span> <a class="code" href="namespaceoperations__research.html#a1a7c1221ae29f298e0879e516d086f8b">RoutingIndexPair</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#a1636c49d2587c3d9df16918345b82378">IndexPair</a>;</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe"> 241</a></span>&#160; <span class="keyword">typedef</span> <a class="code" href="namespaceoperations__research.html#aef7db0bee0a22d1791d040fd3853f3b7">RoutingIndexPairs</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe">IndexPairs</a>;</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160;<span class="preprocessor">#if !defined(SWIG)</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html">StateDependentTransit</a> {</div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html#aa62eca1f13335c62c6eadad531f06247"> 258</a></span>&#160; RangeIntToIntFunction* <a class="code" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html#aa62eca1f13335c62c6eadad531f06247">transit</a>; </div><div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html#ab71e287979b5c9040d1596d12ed3bb5f"> 259</a></span>&#160; RangeMinMaxIndexFunction* <a class="code" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html#ab71e287979b5c9040d1596d12ed3bb5f">transit_plus_identity</a>; </div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; };</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; <span class="keyword">typedef</span> std::function&lt;<a class="code" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html">StateDependentTransit</a>(int64, int64)&gt;</div><div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b"> 262</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">VariableIndexEvaluator2</a>;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160;</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160;<span class="preprocessor">#if !defined(SWIG)</span></div><div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass.html"> 266</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html">CostClass</a> {</div><div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba"> 268</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba">evaluator_index</a> = 0;</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html"> 290</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html">DimensionCost</a> {</div><div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a251a1028d938f5eb8605f759e6dc966f"> 291</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a251a1028d938f5eb8605f759e6dc966f">transit_evaluator_class</a>;</div><div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a348e00acd2dcfd664d889041f317ad31"> 292</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a348e00acd2dcfd664d889041f317ad31">cost_coefficient</a>;</div><div class="line"><a name="l00293"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a0c310f28070bbb116acea285b7b891ee"> 293</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a0c310f28070bbb116acea285b7b891ee">dimension</a>;</div><div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a84a0cd1c601b30f409f0b7d7d25e453b"> 294</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a84a0cd1c601b30f409f0b7d7d25e453b">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html">DimensionCost</a>&amp; cost)<span class="keyword"> const </span>{</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a251a1028d938f5eb8605f759e6dc966f">transit_evaluator_class</a> != cost.<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a251a1028d938f5eb8605f759e6dc966f">transit_evaluator_class</a>) {</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a251a1028d938f5eb8605f759e6dc966f">transit_evaluator_class</a> &lt; cost.<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a251a1028d938f5eb8605f759e6dc966f">transit_evaluator_class</a>;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; }</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a348e00acd2dcfd664d889041f317ad31">cost_coefficient</a> &lt; cost.<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a348e00acd2dcfd664d889041f317ad31">cost_coefficient</a>;</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; }</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; };</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; std::vector&lt;DimensionCost&gt;</div><div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#af2f6e7be2de171fceb7a2de8e62b6fab"> 302</a></span>&#160; <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#af2f6e7be2de171fceb7a2de8e62b6fab">dimension_transit_evaluator_class_and_cost_coefficient</a>;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160;</div><div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a15358ef4339f4d195684ff52c132a4dd"> 304</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a15358ef4339f4d195684ff52c132a4dd">CostClass</a>(<span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba">evaluator_index</a>)</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; : <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba">evaluator_index</a>(<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba">evaluator_index</a>) {}</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160;</div><div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#aecd5ad315b3f45eef0d567ad99008eaf"> 308</a></span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#aecd5ad315b3f45eef0d567ad99008eaf">LessThan</a>(<span class="keyword">const</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html">CostClass</a>&amp; a, <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html">CostClass</a>&amp; b) {</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; <span class="keywordflow">if</span> (a.<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba">evaluator_index</a> != b.<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba">evaluator_index</a>) {</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; <span class="keywordflow">return</span> a.<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba">evaluator_index</a> &lt; b.<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba">evaluator_index</a>;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; }</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; <span class="keywordflow">return</span> a.<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#af2f6e7be2de171fceb7a2de8e62b6fab">dimension_transit_evaluator_class_and_cost_coefficient</a> &lt;</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; b.<a class="code" href="structoperations__research_1_1RoutingModel_1_1CostClass.html#af2f6e7be2de171fceb7a2de8e62b6fab">dimension_transit_evaluator_class_and_cost_coefficient</a>;</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; }</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; };</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160;</div><div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html"> 317</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html">VehicleClass</a> {</div><div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#af626487fbe89510613df5f35bdf9a002"> 319</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#af626487fbe89510613df5f35bdf9a002">cost_class_index</a>;</div><div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a0e6f382c1edda3cf2469aff3f8f5b43d"> 321</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a0e6f382c1edda3cf2469aff3f8f5b43d">fixed_cost</a>;</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; <span class="comment">// TODO(user): Find equivalent start/end nodes wrt dimensions and</span></div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="comment">// callbacks.</span></div><div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a9f7fbf98fe796946fe0be2ca5c8b4e50"> 328</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a9f7fbf98fe796946fe0be2ca5c8b4e50">start_equivalence_class</a>;</div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#ac4332ba473c0913b24289e3a71522b2c"> 329</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#ac4332ba473c0913b24289e3a71522b2c">end_equivalence_class</a>;</div><div class="line"><a name="l00332"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a49c5021ae307aa7f5d390a54d4c2e103"> 332</a></span>&#160; gtl::ITIVector&lt;DimensionIndex, int64&gt; <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a49c5021ae307aa7f5d390a54d4c2e103">dimension_start_cumuls_min</a>;</div><div class="line"><a name="l00333"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#abdd163e15a00e879fe9fa9fe8e2acd42"> 333</a></span>&#160; gtl::ITIVector&lt;DimensionIndex, int64&gt; <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#abdd163e15a00e879fe9fa9fe8e2acd42">dimension_start_cumuls_max</a>;</div><div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#ae21ea61bbb486caa9404734373685893"> 334</a></span>&#160; gtl::ITIVector&lt;DimensionIndex, int64&gt; <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#ae21ea61bbb486caa9404734373685893">dimension_end_cumuls_min</a>;</div><div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#aec2f68b291a699a015f05b9531149d03"> 335</a></span>&#160; gtl::ITIVector&lt;DimensionIndex, int64&gt; <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#aec2f68b291a699a015f05b9531149d03">dimension_end_cumuls_max</a>;</div><div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a7d97f1723731f1618d519c2089f8f349"> 336</a></span>&#160; gtl::ITIVector&lt;DimensionIndex, int64&gt; <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a7d97f1723731f1618d519c2089f8f349">dimension_capacities</a>;</div><div class="line"><a name="l00339"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a2e96542c2d18ed442c6dc3367009fe0e"> 339</a></span>&#160; gtl::ITIVector&lt;DimensionIndex, int64&gt; <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a2e96542c2d18ed442c6dc3367009fe0e">dimension_evaluator_classes</a>;</div><div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#ad0f12c443e4158fdb27375de6fe0fb95"> 341</a></span>&#160; uint64 <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#ad0f12c443e4158fdb27375de6fe0fb95">unvisitable_nodes_fprint</a>;</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#aac2b6fe6489b8e1ae6867681a5ae83ef">LessThan</a>(<span class="keyword">const</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html">VehicleClass</a>&amp; a, <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html">VehicleClass</a>&amp; b);</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; };</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160;<span class="preprocessor">#endif // defined(SWIG)</span></div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160;</div><div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a89db28c1da47c5aef8a0aa380a1800ec"> 349</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a89db28c1da47c5aef8a0aa380a1800ec">kNoPenalty</a>;</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160;</div><div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#af0a7f9f77f520184e88b73c571be73af"> 353</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#af0a7f9f77f520184e88b73c571be73af">kNoDisjunction</a>;</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160;</div><div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#adff4a61e79da6a3ea06ab2e9f3d431a8"> 357</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a966f3010581e2a82e0b1e550667d8bce">DimensionIndex</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#adff4a61e79da6a3ea06ab2e9f3d431a8">kNoDimension</a>;</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160;</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#af12674b693b7b7cfe271e5b066e10bff">RoutingModel</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a>&amp; index_manager);</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#af12674b693b7b7cfe271e5b066e10bff">RoutingModel</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a>&amp; index_manager,</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; <span class="keyword">const</span> RoutingModelParameters&amp; parameters);</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#adca8397d2ad8dfc3bcd2a768bf3e12a2">~RoutingModel</a>();</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160;</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#acbab635c68d8a6e0961afae0f606590b">RegisterUnaryTransitCallback</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a> callback);</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a7dd3d77b26ddfc5e981637ee8b83c1ed">RegisterPositiveUnaryTransitCallback</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a> callback);</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a8c58bbbfc090a581f02d76fabf465b3e">RegisterTransitCallback</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a> callback);</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aa540a1068aef75c041330a2eafccd623">RegisterPositiveTransitCallback</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a> callback);</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a422ce2898045c53fc90d21d8633d4af7">RegisterStateDependentTransitCallback</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">VariableIndexEvaluator2</a> callback);</div><div class="line"><a name="l00373"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ad558398f8c75f81d879f74d18ba5e7c3"> 373</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a>&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#ad558398f8c75f81d879f74d18ba5e7c3">TransitCallback</a>(<span class="keywordtype">int</span> callback_index)<span class="keyword"> const </span>{</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; CHECK_LT(callback_index, transit_evaluators_.size());</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; <span class="keywordflow">return</span> transit_evaluators_[callback_index];</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; }</div><div class="line"><a name="l00377"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a44afcc03d5cb68c01acefa253de9edcf"> 377</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a>&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a44afcc03d5cb68c01acefa253de9edcf">UnaryTransitCallbackOrNull</a>(<span class="keywordtype">int</span> callback_index)<span class="keyword"> const </span>{</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; CHECK_LT(callback_index, unary_transit_evaluators_.size());</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160; <span class="keywordflow">return</span> unary_transit_evaluators_[callback_index];</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>&#160; }</div><div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ac0772bdc4f47e45edccd5a5c25154993"> 381</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">VariableIndexEvaluator2</a>&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#ac0772bdc4f47e45edccd5a5c25154993">StateDependentTransitCallback</a>(</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; <span class="keywordtype">int</span> callback_index)<span class="keyword"> const </span>{</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; CHECK_LT(callback_index, state_dependent_transit_evaluators_.size());</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160; <span class="keywordflow">return</span> state_dependent_transit_evaluators_[callback_index];</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; }</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160;</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160;</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160;</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ab76cd57b0490eb4253fd1bf792e23f16">AddDimension</a>(<span class="keywordtype">int</span> evaluator_index, int64 slack_max, int64 capacity,</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160; <span class="keywordtype">bool</span> fix_start_cumul_to_zero, <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a66b87fec514d648c751ad9d4df09d05b">AddDimensionWithVehicleTransits</a>(</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; evaluator_indices, int64 slack_max,</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; int64 capacity, <span class="keywordtype">bool</span> fix_start_cumul_to_zero, <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aca85cf6d63540a9ed592a1d7b3236d2d">AddDimensionWithVehicleCapacity</a>(<span class="keywordtype">int</span> evaluator_index, int64 slack_max,</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160; std::vector&lt;int64&gt; vehicle_capacities,</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160; <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a0446229ea281bc2be5055b79825b9a9c">AddDimensionWithVehicleTransitAndCapacity</a>(</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; evaluator_indices, int64 slack_max,</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; std::vector&lt;int64&gt; vehicle_capacities, <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a95fe00b0ee96cce90af625f88d931b04">AddConstantDimensionWithSlack</a>(int64 value, int64 capacity,</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; int64 slack_max,</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160; <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160; <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00432"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a9fc965a401f96f12f9101b73ece8d26a"> 432</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a9fc965a401f96f12f9101b73ece8d26a">AddConstantDimension</a>(int64 value, int64 capacity,</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>&#160; <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>&#160; <span class="keyword">const</span> std::string&amp; name) {</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a95fe00b0ee96cce90af625f88d931b04">AddConstantDimensionWithSlack</a>(value, capacity, 0,</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>&#160; fix_start_cumul_to_zero, name);</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>&#160; }</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aedbec46c51bb2d8b0b0f77fc98ac8e9e">AddVectorDimension</a>(std::vector&lt;int64&gt; values, int64 capacity,</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>&#160; <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>&#160; <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a6842df436effdf2492362bb89e171af0">AddMatrixDimension</a>(std::vector&lt;std::vector&lt;int64&gt;&gt; values,</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160; int64 capacity, <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160; <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00464"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a496abfcf54eb77d6a82dc03954ee527d"> 464</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a496abfcf54eb77d6a82dc03954ee527d">AddDimensionDependentDimensionWithVehicleCapacity</a>(</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; pure_transits,</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; dependent_transits,</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* base_dimension, int64 slack_max,</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160; std::vector&lt;int64&gt; vehicle_capacities, <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160; <span class="keyword">const</span> std::string&amp; name) {</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160; <span class="keywordflow">return</span> AddDimensionDependentDimensionWithVehicleCapacityInternal(</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>&#160; pure_transits, dependent_transits, base_dimension, slack_max,</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>&#160; std::move(vehicle_capacities), fix_start_cumul_to_zero, name);</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160; }</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a496abfcf54eb77d6a82dc03954ee527d">AddDimensionDependentDimensionWithVehicleCapacity</a>(</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; transits, <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* base_dimension,</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160; int64 slack_max, std::vector&lt;int64&gt; vehicle_capacities,</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160; <span class="keywordtype">bool</span> fix_start_cumul_to_zero, <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a496abfcf54eb77d6a82dc03954ee527d">AddDimensionDependentDimensionWithVehicleCapacity</a>(</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>&#160; <span class="keywordtype">int</span> transit, <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* base_dimension, int64 slack_max,</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>&#160; int64 vehicle_capacity, <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>&#160; <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a496abfcf54eb77d6a82dc03954ee527d">AddDimensionDependentDimensionWithVehicleCapacity</a>(</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>&#160; <span class="keywordtype">int</span> pure_transit, <span class="keywordtype">int</span> dependent_transit,</div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* base_dimension, int64 slack_max,</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>&#160; int64 vehicle_capacity, <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>&#160; <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>&#160;</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html">RoutingModel::StateDependentTransit</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#a4140d4b0c6b75f277f5aefd1768d2fd9">MakeStateDependentTransit</a>(</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>&#160; <span class="keyword">const</span> std::function&lt;int64(int64)&gt;&amp; f, int64 domain_start,</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>&#160; int64 domain_end);</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>&#160;</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>&#160; <a class="code" href="classoperations__research_1_1Constraint.html">Constraint</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#ac041507427102f15800b00ece1f7b2c8">MakePathSpansAndTotalSlacks</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* dimension,</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>&#160; std::vector&lt;IntVar*&gt; spans,</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>&#160; std::vector&lt;IntVar*&gt; total_slacks);</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>&#160;</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>&#160; <span class="comment">// TODO(user): rename.</span></div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>&#160; std::vector&lt;::std::string&gt; <a class="code" href="classoperations__research_1_1RoutingModel.html#a43e14716c146e779b818f3451f23af1d">GetAllDimensionNames</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00512"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a635aac580cbeb4bcde72c9464f33ac06"> 512</a></span>&#160; <span class="keyword">const</span> std::vector&lt;RoutingDimension*&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a635aac580cbeb4bcde72c9464f33ac06">GetDimensions</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>&#160; <span class="keywordflow">return</span> dimensions_.get();</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>&#160; }</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>&#160; std::vector&lt;RoutingDimension*&gt; <a class="code" href="classoperations__research_1_1RoutingModel.html#a8a1c183bafee7baf41b816776e8e76c8">GetDimensionsWithSoftOrSpanCosts</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>&#160;<span class="comment"></span> <span class="keyword">const</span> std::vector&lt;std::unique_ptr&lt;GlobalDimensionCumulOptimizer&gt; &gt;&amp;</div><div class="line"><a name="l00521"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ad74e0742282743e9a78680f0565015be"> 521</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#ad74e0742282743e9a78680f0565015be">GetGlobalDimensionCumulOptimizers</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>&#160; <span class="keywordflow">return</span> global_dimension_optimizers_;</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>&#160; }</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>&#160; <span class="keyword">const</span> std::vector&lt;std::unique_ptr&lt;LocalDimensionCumulOptimizer&gt; &gt;&amp;</div><div class="line"><a name="l00525"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a449a82a0294dae7de9310328274462dd"> 525</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a449a82a0294dae7de9310328274462dd">GetLocalDimensionCumulOptimizers</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>&#160; <span class="keywordflow">return</span> local_dimension_optimizers_;</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>&#160; }</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>&#160;</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>&#160; <a class="code" href="classoperations__research_1_1GlobalDimensionCumulOptimizer.html">GlobalDimensionCumulOptimizer</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a1acd42381917a2b8dd956f87657e7bf1">GetMutableGlobalCumulOptimizer</a>(</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>&amp; dimension) <span class="keyword">const</span>;</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>&#160; <a class="code" href="classoperations__research_1_1LocalDimensionCumulOptimizer.html">LocalDimensionCumulOptimizer</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a50f66c7639c3aa15eff6222a53b2bf7e">GetMutableLocalCumulOptimizer</a>(</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>&amp; dimension) <span class="keyword">const</span>;</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>&#160;</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aea90b377b2cc45917a08d519be784009">HasDimension</a>(<span class="keyword">const</span> std::string&amp; dimension_name) <span class="keyword">const</span>;</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#ae9de37fba84b76353809819903940473">GetDimensionOrDie</a>(</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>&#160; <span class="keyword">const</span> std::string&amp; dimension_name) <span class="keyword">const</span>;</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>&#160; <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#ac9cd3df1f2e22dc88129e0d21e8b3673">GetMutableDimension</a>(</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>&#160; <span class="keyword">const</span> std::string&amp; dimension_name) <span class="keyword">const</span>;</div><div class="line"><a name="l00550"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#abfa1b833413dee47ab0aa06d8f625fd2"> 550</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#abfa1b833413dee47ab0aa06d8f625fd2">SetPrimaryConstrainedDimension</a>(<span class="keyword">const</span> std::string&amp; dimension_name) {</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>&#160; DCHECK(dimension_name.empty() || <a class="code" href="classoperations__research_1_1RoutingModel.html#aea90b377b2cc45917a08d519be784009">HasDimension</a>(dimension_name));</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>&#160; primary_constrained_dimension_ = dimension_name;</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>&#160; }</div><div class="line"><a name="l00556"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a08f0e7114d9118eafc2b3e3f96878014"> 556</a></span>&#160; <span class="keyword">const</span> std::string&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a08f0e7114d9118eafc2b3e3f96878014">GetPrimaryConstrainedDimension</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>&#160; <span class="keywordflow">return</span> primary_constrained_dimension_;</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>&#160; }</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#aa75928669f7ad3ffa7882538f74dab8b">AddDisjunction</a>(<span class="keyword">const</span> std::vector&lt;int64&gt;&amp; indices,</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>&#160; int64 penalty = <a class="code" href="classoperations__research_1_1RoutingModel.html#a89db28c1da47c5aef8a0aa380a1800ec">kNoPenalty</a>,</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>&#160; int64 max_cardinality = 1);</div><div class="line"><a name="l00579"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a89b2c610c22a3223f1cac10233d7992d"> 579</a></span>&#160; <span class="keyword">const</span> std::vector&lt;DisjunctionIndex&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a89b2c610c22a3223f1cac10233d7992d">GetDisjunctionIndices</a>(</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>&#160; int64 index)<span class="keyword"> const </span>{</div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>&#160; <span class="keywordflow">return</span> index_to_disjunctions_[index];</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>&#160; }</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> F&gt;</div><div class="line"><a name="l00587"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a32b850e71c62d48b685e29952e03ba4b"> 587</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a32b850e71c62d48b685e29952e03ba4b">ForEachNodeInDisjunctionWithMaxCardinalityFromIndex</a>(</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>&#160; int64 index, int64 max_cardinality, F f)<span class="keyword"> const </span>{</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> disjunction : <a class="code" href="classoperations__research_1_1RoutingModel.html#a89b2c610c22a3223f1cac10233d7992d">GetDisjunctionIndices</a>(index)) {</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>&#160; <span class="keywordflow">if</span> (disjunctions_[disjunction].value.max_cardinality == max_cardinality) {</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">const</span> int64 d_index : disjunctions_[disjunction].indices) {</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>&#160; f(d_index);</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>&#160; }</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>&#160; }</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>&#160; }</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>&#160; }</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>&#160;<span class="preprocessor">#if !defined(SWIGPYTHON)</span></div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a89b2c610c22a3223f1cac10233d7992d">GetDisjunctionIndices</a>(</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> index)<span class="keyword"> const </span>{</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>&#160; <span class="keywordflow">return</span> disjunctions_[index].indices;</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>&#160; }</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>&#160;<span class="preprocessor">#endif // !defined(SWIGPYTHON)</span></div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a276086c8aada62b6301aa44e4289347d">GetDisjunctionPenalty</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> index)<span class="keyword"> const </span>{</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>&#160; <span class="keywordflow">return</span> disjunctions_[index].value.penalty;</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>&#160; }</div><div class="line"><a name="l00611"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a1090dab71b48b49153d70b9e6c299c25"> 611</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a1090dab71b48b49153d70b9e6c299c25">GetDisjunctionMaxCardinality</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> index)<span class="keyword"> const </span>{</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>&#160; <span class="keywordflow">return</span> disjunctions_[index].value.max_cardinality;</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>&#160; }</div><div class="line"><a name="l00615"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aa9ed1612ddad261cf7e75643534d0aa0"> 615</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aa9ed1612ddad261cf7e75643534d0aa0">GetNumberOfDisjunctions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> disjunctions_.size(); }</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>&#160; std::vector&lt;std::pair&lt;int64, int64&gt;&gt; <a class="code" href="classoperations__research_1_1RoutingModel.html#a2f2eefe908c94f201c23a549797986e4">GetPerfectBinaryDisjunctions</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a8b9a513f402e84f4c71436cf430f248a">IgnoreDisjunctionsAlreadyForcedToZero</a>();</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>&#160;</div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a9b09ef1fec581652f66de933154b78e4">AddSoftSameVehicleConstraint</a>(<span class="keyword">const</span> std::vector&lt;int64&gt;&amp; indices,</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>&#160; int64 cost);</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>&#160;</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#afdd0e9e72af498399358bd22c591ae5c">SetAllowedVehiclesForIndex</a>(<span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#aa9e7ba89833775f29889744fe9480d29">vehicles</a>,</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>&#160; int64 index);</div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>&#160;</div><div class="line"><a name="l00642"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a43c49fc1660ae71cdb30ae93bcac80d7"> 642</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a43c49fc1660ae71cdb30ae93bcac80d7">IsVehicleAllowedForIndex</a>(<span class="keywordtype">int</span> vehicle, int64 index) {</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>&#160; <span class="keywordflow">return</span> allowed_vehicles_[index].empty() ||</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>&#160; allowed_vehicles_[index].find(vehicle) !=</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span>&#160; allowed_vehicles_[index].end();</div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>&#160; }</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>&#160;</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>&#160; <span class="comment">// TODO(user): Remove this when model introspection detects linked nodes.</span></div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a23c20278f29df4b683b589958ab3a187">AddPickupAndDelivery</a>(int64 pickup, int64 delivery);</div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a5f404ec17ed0917a6ac3711ac53e60f1">AddPickupAndDeliverySets</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> pickup_disjunction,</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> delivery_disjunction);</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>&#160;<span class="comment"></span> <span class="keyword">const</span> std::vector&lt;std::pair&lt;int, int&gt; &gt;&amp;</div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a62632c12610d494b7da27e49183922eb">GetPickupIndexPairs</a>(int64 node_index) <span class="keyword">const</span>;</div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>&#160; <span class="keyword">const</span> std::vector&lt;std::pair&lt;int, int&gt; &gt;&amp;</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a436789d1133bf0155f13d189e556355d">GetDeliveryIndexPairs</a>(int64 node_index) <span class="keyword">const</span>;</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span>&#160;</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a3656e594d89a44fb6b35ba8f2d395624">SetPickupAndDeliveryPolicyOfAllVehicles</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> policy);</div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a8bd5bf6b0d1d0c1c5e2470c5f4882a62">SetPickupAndDeliveryPolicyOfVehicle</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> policy,</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>&#160; <span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#ae0eaa0df826e18882df940962dc4ac27">GetPickupAndDeliveryPolicyOfVehicle</a>(</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>&#160; <span class="keywordtype">int</span> vehicle) <span class="keyword">const</span>;</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>&#160;</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ad62f14646fa4da5b6836a2ae505706d2">GetNumOfSingletonNodes</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span>&#160;</div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe">IndexPairs</a>&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a9e42e15bdb23d63ae78137b97a4882de">GetPickupAndDeliveryPairs</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>&#160; <span class="keywordflow">return</span> pickup_delivery_pairs_;</div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>&#160; }</div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>&#160; <span class="keyword">const</span> std::vector&lt;std::pair&lt;DisjunctionIndex, DisjunctionIndex&gt;&gt;&amp;</div><div class="line"><a name="l00698"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a075c26c8a078b9c0f1a4f2be00f1f795"> 698</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a075c26c8a078b9c0f1a4f2be00f1f795">GetPickupAndDeliveryDisjunctions</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span>&#160; <span class="keywordflow">return</span> pickup_delivery_disjunctions_;</div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>&#160; }</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>&#160; <span class="comment">// TODO(user): Support multiple visit types per node?</span></div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a572a1aeecbbd82737b62b88a6450a1c5">SetVisitType</a>(int64 index, <span class="keywordtype">int</span> type);</div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a95886cce213f51091399427b4728a6b2">GetVisitType</a>(int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span>&#160; <span class="comment">// TODO(user): Reconsider the logic and potentially remove the need to</span></div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span>&#160;<span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a822458cc9a9a6fa02e86af3e3a1e5c89">CloseVisitTypes</a>();</div><div class="line"><a name="l00725"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a24478803a7138d68852093b9c2743892"> 725</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a24478803a7138d68852093b9c2743892">GetNumberOfVisitTypes</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> num_visit_types_; }</div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a796b4eed03ed53bbbaed642f4ae94952">AddHardTypeIncompatibility</a>(<span class="keywordtype">int</span> type1, <span class="keywordtype">int</span> type2);</div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a7086a908f1890a7e1550c97b774e6384">AddTemporalTypeIncompatibility</a>(<span class="keywordtype">int</span> type1, <span class="keywordtype">int</span> type2);</div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span>&#160; <span class="keyword">const</span> absl::flat_hash_set&lt;int&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a51fb0661acf38ed1442819e2cc452311">GetHardTypeIncompatibilitiesOfType</a>(</div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>&#160; <span class="keywordtype">int</span> type) <span class="keyword">const</span>;</div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span>&#160; <span class="keyword">const</span> absl::flat_hash_set&lt;int&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a9d8ead500db4128d0d27f8066d1f8208">GetTemporalTypeIncompatibilitiesOfType</a>(</div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>&#160; <span class="keywordtype">int</span> type) <span class="keyword">const</span>;</div><div class="line"><a name="l00739"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a9c58894df747f5498c335a3a8c5c0c88"> 739</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a9c58894df747f5498c335a3a8c5c0c88">HasHardTypeIncompatibilities</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>&#160; <span class="keywordflow">return</span> has_hard_type_incompatibilities_;</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>&#160; }</div><div class="line"><a name="l00742"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ad19492313b68e5a963af3793aaec8d90"> 742</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ad19492313b68e5a963af3793aaec8d90">HasTemporalTypeIncompatibilities</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>&#160; <span class="keywordflow">return</span> has_temporal_type_incompatibilities_;</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span>&#160; }</div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ac22e9cfd1fbf1b4af4f8a9be46ec88a1">AddSameVehicleRequiredTypeAlternatives</a>(</div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>&#160; <span class="keywordtype">int</span> dependent_type, absl::flat_hash_set&lt;int&gt; required_type_alternatives);</div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a92ee209f167d3974329301d784010b63">AddTemporalRequiredTypeAlternatives</a>(</div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>&#160; <span class="keywordtype">int</span> dependent_type, absl::flat_hash_set&lt;int&gt; required_type_alternatives);</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>&#160;<span class="comment"></span> <span class="keyword">const</span> std::vector&lt;absl::flat_hash_set&lt;int&gt; &gt;&amp;</div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#ae350d70cb713a6772283e3753f4f2f7a">GetSameVehicleRequiredTypeAlternativesOfType</a>(<span class="keywordtype">int</span> type) <span class="keyword">const</span>;</div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>&#160; <span class="keyword">const</span> std::vector&lt;absl::flat_hash_set&lt;int&gt; &gt;&amp;</div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#ab1652af55e9d83490d9c59d35d991ce9">GetTemporalRequiredTypeAlternativesOfType</a>(<span class="keywordtype">int</span> type) <span class="keyword">const</span>;</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l00772"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#abc101a64a3c876dcdf1b7176d59bd2c9"> 772</a></span>&#160;<span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#abc101a64a3c876dcdf1b7176d59bd2c9">HasSameVehicleTypeRequirements</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>&#160; <span class="keywordflow">return</span> has_same_vehicle_type_requirements_;</div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span>&#160; }</div><div class="line"><a name="l00775"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a5e3f4c6871f7b2c67fd5b1ad6c94d891"> 775</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a5e3f4c6871f7b2c67fd5b1ad6c94d891">HasTemporalTypeRequirements</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span>&#160; <span class="keywordflow">return</span> has_temporal_type_requirements_;</div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>&#160; }</div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span>&#160;</div><div class="line"><a name="l00781"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ab313d84a56c5e9b1b8f28da70b8d4045"> 781</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ab313d84a56c5e9b1b8f28da70b8d4045">HasTypeRegulations</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ad19492313b68e5a963af3793aaec8d90">HasTemporalTypeIncompatibilities</a>() ||</div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a9c58894df747f5498c335a3a8c5c0c88">HasHardTypeIncompatibilities</a>() || <a class="code" href="classoperations__research_1_1RoutingModel.html#abc101a64a3c876dcdf1b7176d59bd2c9">HasSameVehicleTypeRequirements</a>() ||</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a5e3f4c6871f7b2c67fd5b1ad6c94d891">HasTemporalTypeRequirements</a>();</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>&#160; }</div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span>&#160;</div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a3600327c657a0c83430d7bd9566e9ab6">UnperformedPenalty</a>(int64 var_index) <span class="keyword">const</span>;</div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#ae8364b53d49a5b46e994d41124c4ffd6">UnperformedPenaltyOrValue</a>(int64 default_value, int64 var_index) <span class="keyword">const</span>;</div><div class="line"><a name="l00799"></a><span class="lineno"> 799</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#acca75b5d3bfe2433c5805b049815f533">GetDepot</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span>&#160;</div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ab8d61705aa4291d2cd437ba0a7dfccbf">SetArcCostEvaluatorOfAllVehicles</a>(<span class="keywordtype">int</span> evaluator_index);</div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ae75d9f49c157b7784fc8baa7d623ee35">SetArcCostEvaluatorOfVehicle</a>(<span class="keywordtype">int</span> evaluator_index, <span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l00809"></a><span class="lineno"> 809</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a07b796e9f91ee5b4c5e99c7f23e2f743">SetFixedCostOfAllVehicles</a>(int64 cost);</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a4e8f5b5f090cf084347eda6eb803813a">SetFixedCostOfVehicle</a>(int64 cost, <span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a4bab641f5b9bf8de266adad29558b4c2">GetFixedCostOfVehicle</a>(<span class="keywordtype">int</span> vehicle) <span class="keyword">const</span>;</div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span>&#160;</div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aba87f36c7b4e0bdd5e4e8e334b3e27fa">SetAmortizedCostFactorsOfAllVehicles</a>(int64 linear_cost_factor,</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span>&#160; int64 quadratic_cost_factor);</div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ae1acdfe3dcf892d108d2a2ecab94e936">SetAmortizedCostFactorsOfVehicle</a>(int64 linear_cost_factor,</div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span>&#160; int64 quadratic_cost_factor,</div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span>&#160; <span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>&#160;</div><div class="line"><a name="l00839"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aa01519be299cb5ddef36111ee6f8a5cc"> 839</a></span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#aa01519be299cb5ddef36111ee6f8a5cc">GetAmortizedLinearCostFactorOfVehicles</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>&#160; <span class="keywordflow">return</span> linear_cost_factor_of_vehicle_;</div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span>&#160; }</div><div class="line"><a name="l00842"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aaeaf95383c1c03da6f22c522d119775b"> 842</a></span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#aaeaf95383c1c03da6f22c522d119775b">GetAmortizedQuadraticCostFactorOfVehicles</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>&#160; <span class="keywordflow">return</span> quadratic_cost_factor_of_vehicle_;</div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>&#160; }</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>&#160;</div><div class="line"><a name="l00846"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a7ccaa3133378da76d3fd5cdb560038ae"> 846</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a7ccaa3133378da76d3fd5cdb560038ae">ConsiderEmptyRouteCostsForVehicle</a>(<span class="keywordtype">bool</span> consider_costs, <span class="keywordtype">int</span> vehicle) {</div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span>&#160; DCHECK_LT(vehicle, vehicles_);</div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>&#160; consider_empty_route_costs_[vehicle] = consider_costs;</div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>&#160; }</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span>&#160;</div><div class="line"><a name="l00851"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aed6760664a6e4f3427832ee3b7ba0602"> 851</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aed6760664a6e4f3427832ee3b7ba0602">AreEmptyRouteCostsConsideredForVehicle</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span>&#160; DCHECK_LT(vehicle, vehicles_);</div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span>&#160; <span class="keywordflow">return</span> consider_empty_route_costs_[vehicle];</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span>&#160; }</div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span>&#160;</div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l00859"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a660cb5477a6d3fbf146657aa7af73968"> 859</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Solver.html#abb24034fec2804ac3c0172f043087321">Solver::IndexEvaluator2</a>&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a660cb5477a6d3fbf146657aa7af73968">first_solution_evaluator</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span>&#160; <span class="keywordflow">return</span> first_solution_evaluator_;</div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>&#160; }</div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ab69145472d51d341f82d3ad29e9c6be2">SetFirstSolutionEvaluator</a>(<a class="code" href="classoperations__research_1_1Solver.html#abb24034fec2804ac3c0172f043087321">Solver::IndexEvaluator2</a> evaluator) {</div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>&#160; first_solution_evaluator_ = std::move(evaluator);</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>&#160; }</div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a1156fa8214dba09e2a2a94862244aa1f">AddLocalSearchOperator</a>(LocalSearchOperator* ls_operator);</div><div class="line"><a name="l00871"></a><span class="lineno"> 871</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a0e23be986e4c3b96a50c8798aa5f536d">AddSearchMonitor</a>(SearchMonitor* <span class="keyword">const</span> monitor);</div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a086605d9650ce3c576d8a9c45ce0b9fc">AddAtSolutionCallback</a>(std::function&lt;<span class="keywordtype">void</span>()&gt; callback);</div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a4768ba91c34c542eddec212a68d79473">AddVariableMinimizedByFinalizer</a>(IntVar* var);</div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aabdcf3bd412a5a61d811ef85e115e5ff">AddVariableMaximizedByFinalizer</a>(IntVar* var);</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a939aa2ef2afec0337b0f9d4dcb1c2db8">AddWeightedVariableMinimizedByFinalizer</a>(IntVar* var, int64 cost);</div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a1739a41268c21cfc401d870f05b93536">AddVariableTargetToFinalizer</a>(IntVar* var, int64 target);</div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#add71470f4175a0859e6e3d69c2a53988">CloseModel</a>();</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aa79f8d482de4dd0ef86a1b54999686af">CloseModelWithParameters</a>(</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l00907"></a><span class="lineno"> 907</span>&#160; <span class="keyword">const</span> Assignment* <a class="code" href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1">Solve</a>(<span class="keyword">const</span> Assignment* assignment = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span>&#160; <span class="keyword">const</span> Assignment* <a class="code" href="classoperations__research_1_1RoutingModel.html#af4e97be54c31d45d312d168ce1c8ba6f">SolveWithParameters</a>(</div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters,</div><div class="line"><a name="l00917"></a><span class="lineno"> 917</span>&#160; std::vector&lt;const Assignment*&gt;* solutions = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span>&#160; <span class="keyword">const</span> Assignment* <a class="code" href="classoperations__research_1_1RoutingModel.html#a56e06d63a6d3792ab5cd64e51724632b">SolveFromAssignmentWithParameters</a>(</div><div class="line"><a name="l00919"></a><span class="lineno"> 919</span>&#160; <span class="keyword">const</span> Assignment* assignment,</div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters,</div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span>&#160; std::vector&lt;const Assignment*&gt;* solutions = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ac1a2ab630f6b13644ca6853c7893f413">SetAssignmentFromOtherModelAssignment</a>(</div><div class="line"><a name="l00928"></a><span class="lineno"> 928</span>&#160; Assignment* target_assignment, <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#af12674b693b7b7cfe271e5b066e10bff">RoutingModel</a>* source_model,</div><div class="line"><a name="l00929"></a><span class="lineno"> 929</span>&#160; <span class="keyword">const</span> Assignment* source_assignment);</div><div class="line"><a name="l00935"></a><span class="lineno"> 935</span>&#160; <span class="comment">// TODO(user): Add support for non-homogeneous costs and disjunctions.</span></div><div class="line"><a name="l00936"></a><span class="lineno"> 936</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#ae9b2404a26ab1e6acf562b8261eeba38">ComputeLowerBound</a>();</div><div class="line"><a name="l00938"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#adb1490a44086db009cdb51f854a02a65"> 938</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#adb1490a44086db009cdb51f854a02a65">status</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> status_; }</div><div class="line"><a name="l00947"></a><span class="lineno"> 947</span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#aaf71584ad4bffea7a489dc53787fa6f8">ApplyLocks</a>(<span class="keyword">const</span> std::vector&lt;int64&gt;&amp; locks);</div><div class="line"><a name="l00956"></a><span class="lineno"> 956</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a410f7da30cf944b7874eebe57eebe41a">ApplyLocksToAllVehicles</a>(<span class="keyword">const</span> std::vector&lt;std::vector&lt;int64&gt;&gt;&amp; locks,</div><div class="line"><a name="l00957"></a><span class="lineno"> 957</span>&#160; <span class="keywordtype">bool</span> close_routes);</div><div class="line"><a name="l00962"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ae033bc458ffce1ecc4874f3e212896f7"> 962</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ae033bc458ffce1ecc4874f3e212896f7">PreAssignment</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> preassignment_; }</div><div class="line"><a name="l00963"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a3af1158b77552d60afc3f0473de3892d"> 963</a></span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a3af1158b77552d60afc3f0473de3892d">MutablePreAssignment</a>() { <span class="keywordflow">return</span> preassignment_; }</div><div class="line"><a name="l00967"></a><span class="lineno"> 967</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#acfcef421e8c8cd243157543f741d6a73">WriteAssignment</a>(<span class="keyword">const</span> std::string&amp; file_name) <span class="keyword">const</span>;</div><div class="line"><a name="l00971"></a><span class="lineno"> 971</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a74e3de2ce73322e1860be0713c07c33e">ReadAssignment</a>(<span class="keyword">const</span> std::string&amp; file_name);</div><div class="line"><a name="l00974"></a><span class="lineno"> 974</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a566ddf59563c1b37e8c178b1805aa0f4">RestoreAssignment</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>&amp; solution);</div><div class="line"><a name="l00980"></a><span class="lineno"> 980</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a97dca877bb5083a72c147628a8439770">ReadAssignmentFromRoutes</a>(</div><div class="line"><a name="l00981"></a><span class="lineno"> 981</span>&#160; <span class="keyword">const</span> std::vector&lt;std::vector&lt;int64&gt;&gt;&amp; routes,</div><div class="line"><a name="l00982"></a><span class="lineno"> 982</span>&#160; <span class="keywordtype">bool</span> ignore_inactive_indices);</div><div class="line"><a name="l00999"></a><span class="lineno"> 999</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a78f7f1cb8b08b7ec1d477a14447bd8d4">RoutesToAssignment</a>(<span class="keyword">const</span> std::vector&lt;std::vector&lt;int64&gt;&gt;&amp; routes,</div><div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160; <span class="keywordtype">bool</span> ignore_inactive_indices, <span class="keywordtype">bool</span> close_routes,</div><div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <span class="keyword">const</span> assignment) <span class="keyword">const</span>;</div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a97d152b7049084186342b719eee6fa15">AssignmentToRoutes</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>&amp; assignment,</div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160; std::vector&lt;std::vector&lt;int64&gt;&gt;* <span class="keyword">const</span> routes) <span class="keyword">const</span>;</div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a1b7f20d14ae5261cb2f250c6e99f4383">CompactAssignment</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>&amp; assignment) <span class="keyword">const</span>;</div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a3e87a7710617f6ac19dca14adad9c5a6">CompactAndCheckAssignment</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>&amp; assignment) <span class="keyword">const</span>;</div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a437ae499bef0aa64f2753166a000f5bd">AddToAssignment</a>(<a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <span class="keyword">const</span> var);</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ab878a81ace850e3ecd26e95966409f61">AddIntervalToAssignment</a>(<a class="code" href="classoperations__research_1_1IntervalVar.html">IntervalVar</a>* <span class="keyword">const</span> interval);</div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a5cc6e6b421a6dfc8650cc38e116fff03">PackCumulsOfOptimizerDimensionsFromAssignment</a>(</div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* original_assignment, absl::Duration duration_limit);</div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160; <span class="comment">// TODO(user): Revisit if coordinates are added to the RoutingModel class.</span></div><div class="line"><a name="l01046"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a700982f228080c6278eb5a2f7f06f31d"> 1046</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a700982f228080c6278eb5a2f7f06f31d">SetSweepArranger</a>(<a class="code" href="classoperations__research_1_1SweepArranger.html">SweepArranger</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a71815ec83f6605bddb11578ebb835aae">sweep_arranger</a>) {</div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160; sweep_arranger_.reset(<a class="code" href="classoperations__research_1_1RoutingModel.html#a71815ec83f6605bddb11578ebb835aae">sweep_arranger</a>);</div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160; }</div><div class="line"><a name="l01050"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a71815ec83f6605bddb11578ebb835aae"> 1050</a></span>&#160; <a class="code" href="classoperations__research_1_1SweepArranger.html">SweepArranger</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a71815ec83f6605bddb11578ebb835aae">sweep_arranger</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> sweep_arranger_.get(); }</div><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a566384949e6395952f6f6b48603fd87f">AddLocalSearchFilter</a>(<a class="code" href="classoperations__research_1_1LocalSearchFilter.html">LocalSearchFilter</a>* filter) {</div><div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160; CHECK(filter != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160; <span class="keywordflow">if</span> (closed_) {</div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160; LOG(WARNING) &lt;&lt; <span class="stringliteral">&quot;Model is closed, filter addition will be ignored.&quot;</span>;</div><div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>&#160; }</div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160; extra_filters_.push_back(filter);</div><div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>&#160; }</div><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;</div><div class="line"><a name="l01067"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#acbdbdfc9491ef0586459d38cc5ef4cb8"> 1067</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#acbdbdfc9491ef0586459d38cc5ef4cb8">Start</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> starts_[vehicle]; }</div><div class="line"><a name="l01069"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a1dc8d32892f78532c8ee7a7186158e07"> 1069</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a1dc8d32892f78532c8ee7a7186158e07">End</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ends_[vehicle]; }</div><div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ae1adbc353c105572655ae866124c61b6">IsStart</a>(int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l01073"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ae2530e17cabaf267e12929ca0ee1bee0"> 1073</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ae2530e17cabaf267e12929ca0ee1bee0">IsEnd</a>(int64 index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> index &gt;= <a class="code" href="classoperations__research_1_1RoutingModel.html#a354dd8c252cf59b748602b342db6019d">Size</a>(); }</div><div class="line"><a name="l01076"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#abd33c037942b971eeefad43c6022c20e"> 1076</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#abd33c037942b971eeefad43c6022c20e">VehicleIndex</a>(<span class="keywordtype">int</span> index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> index_to_vehicle_[index]; }</div><div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a46a69d9769aa92122c7e5e20f49e3da3">Next</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>&amp; assignment, int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aedb8dca94b15e5465fef1667d1a81db6">IsVehicleUsed</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>&amp; assignment, <span class="keywordtype">int</span> vehicle) <span class="keyword">const</span>;</div><div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;</div><div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;<span class="preprocessor">#if !defined(SWIGPYTHON)</span></div><div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160; <span class="keyword">const</span> std::vector&lt;IntVar*&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#aad154b31953d2b467bbac3e4ac696cd6">Nexts</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> nexts_; }</div><div class="line"><a name="l01090"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a80572a238b48c2cefe38409e7544f161"> 1090</a></span>&#160; <span class="keyword">const</span> std::vector&lt;IntVar*&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a80572a238b48c2cefe38409e7544f161">VehicleVars</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> vehicle_vars_; }</div><div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;<span class="preprocessor">#endif </span></div><div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160;<span class="preprocessor"> IntVar* NextVar(int64 index) const { return nexts_[index]; }</span></div><div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#afadc1348f0318e9bc8cebb75b2fc4234">ActiveVar</a>(int64 index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> active_[index]; }</div><div class="line"><a name="l01099"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a7c2d33eef73401442fd9f2e205056c73"> 1099</a></span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a7c2d33eef73401442fd9f2e205056c73">VehicleCostsConsideredVar</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160; <span class="keywordflow">return</span> vehicle_costs_considered_[vehicle];</div><div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160; }</div><div class="line"><a name="l01104"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a8cded3d3d6746c179a8ec0eddad24342"> 1104</a></span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a8cded3d3d6746c179a8ec0eddad24342">VehicleVar</a>(int64 index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> vehicle_vars_[index]; }</div><div class="line"><a name="l01106"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#abcbe77312783c0a5aa4926ace764533b"> 1106</a></span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#abcbe77312783c0a5aa4926ace764533b">CostVar</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> cost_; }</div><div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;</div><div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a50dd6fccc1cca84aa10efc8f3ece396c">GetArcCostForVehicle</a>(int64 from_index, int64 to_index,</div><div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160; int64 vehicle) <span class="keyword">const</span>;</div><div class="line"><a name="l01113"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ae0c21c6d4e99cb309b8b298d280e4853"> 1113</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ae0c21c6d4e99cb309b8b298d280e4853">CostsAreHomogeneousAcrossVehicles</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>&#160; <span class="keywordflow">return</span> costs_are_homogeneous_across_vehicles_;</div><div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160; }</div><div class="line"><a name="l01118"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aa241abc19460575d250a5788f03afbf6"> 1118</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#aa241abc19460575d250a5788f03afbf6">GetHomogeneousCost</a>(int64 from_index, int64 to_index)<span class="keyword"> const </span>{</div><div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a50dd6fccc1cca84aa10efc8f3ece396c">GetArcCostForVehicle</a>(from_index, to_index, <span class="comment">/*vehicle=*/</span>0);</div><div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160; }</div><div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a6569b0ea25fa25c91c2b8b63bedeacc6">GetArcCostForFirstSolution</a>(int64 from_index, int64 to_index) <span class="keyword">const</span>;</div><div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a92d7882c311f7d9d0c55c4def34150dd">GetArcCostForClass</a>(int64 from_index, int64 to_index,</div><div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160; int64 <span class="comment">/*CostClassIndex*/</span> cost_class_index) <span class="keyword">const</span>;</div><div class="line"><a name="l01133"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a32bba655accbd7dc8e23d30bf679b880"> 1133</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#a32bba655accbd7dc8e23d30bf679b880">GetCostClassIndexOfVehicle</a>(int64 vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>&#160; DCHECK(closed_);</div><div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>&#160; <span class="keywordflow">return</span> cost_class_index_of_vehicle_[vehicle];</div><div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>&#160; }</div><div class="line"><a name="l01139"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a67e8d10adbcc563f428069f9b2c04b63"> 1139</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a67e8d10adbcc563f428069f9b2c04b63">HasVehicleWithCostClassIndex</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> cost_class_index)<span class="keyword"> const </span>{</div><div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>&#160; DCHECK(closed_);</div><div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160; <span class="keywordflow">if</span> (cost_class_index == kCostClassIndexOfZeroCost) {</div><div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160; <span class="keywordflow">return</span> has_vehicle_with_zero_cost_class_;</div><div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160; }</div><div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160; <span class="keywordflow">return</span> cost_class_index &lt; cost_classes_.size();</div><div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160; }</div><div class="line"><a name="l01147"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#ad3b144985c2b4b24cf39b839dbd9c16d"> 1147</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ad3b144985c2b4b24cf39b839dbd9c16d">GetCostClassesCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> cost_classes_.size(); }</div><div class="line"><a name="l01149"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#abaa74f74aefe075aedb6b16259a4404e"> 1149</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#abaa74f74aefe075aedb6b16259a4404e">GetNonZeroCostClassesCount</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160; <span class="keywordflow">return</span> std::max(0, <a class="code" href="classoperations__research_1_1RoutingModel.html#ad3b144985c2b4b24cf39b839dbd9c16d">GetCostClassesCount</a>() - 1);</div><div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>&#160; }</div><div class="line"><a name="l01152"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a7a8e134df97e40d1fc498f7f985c33ec"> 1152</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#ab6aae3927f3537c446ac33f2c6ecb922">VehicleClassIndex</a> <a class="code" href="classoperations__research_1_1RoutingModel.html#a7a8e134df97e40d1fc498f7f985c33ec">GetVehicleClassIndexOfVehicle</a>(int64 vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160; DCHECK(closed_);</div><div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160; <span class="keywordflow">return</span> vehicle_class_index_of_vehicle_[vehicle];</div><div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160; }</div><div class="line"><a name="l01157"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a34ab0d5fa45360b5e6a42b9a78cfe5a8"> 1157</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a34ab0d5fa45360b5e6a42b9a78cfe5a8">GetVehicleClassesCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> vehicle_classes_.size(); }</div><div class="line"><a name="l01159"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a0f8c7a97b5465ae4ba4cb1a92c39b756"> 1159</a></span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingModel.html#a0f8c7a97b5465ae4ba4cb1a92c39b756">GetSameVehicleIndicesOfIndex</a>(<span class="keywordtype">int</span> node)<span class="keyword"> const </span>{</div><div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160; DCHECK(closed_);</div><div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>&#160; <span class="keywordflow">return</span> same_vehicle_groups_[same_vehicle_group_[node]];</div><div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160; }</div><div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a1048b3f7ef92f0d7747f93c8586ea1cc">ArcIsMoreConstrainedThanArc</a>(int64 from, int64 to1, int64 to2);</div><div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>&#160; std::string <a class="code" href="classoperations__research_1_1RoutingModel.html#a25d079aaf52ffdf6d547384b523ff018">DebugOutputAssignment</a>(</div><div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>&amp; solution_assignment,</div><div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>&#160; <span class="keyword">const</span> std::string&amp; dimension_to_print) <span class="keyword">const</span>;</div><div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>&#160;</div><div class="line"><a name="l01192"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a5f32c22c620c811754ba7b6f977db864"> 1192</a></span>&#160; <a class="code" href="classoperations__research_1_1Solver.html">Solver</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a5f32c22c620c811754ba7b6f977db864">solver</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> solver_.get(); }</div><div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>&#160;</div><div class="line"><a name="l01195"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a3f5d70fe48cb54cbc5d8f6bba55b007d"> 1195</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a3f5d70fe48cb54cbc5d8f6bba55b007d">CheckLimit</a>() {</div><div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160; DCHECK(limit_ != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160; <span class="keywordflow">return</span> limit_-&gt;<a class="code" href="classoperations__research_1_1RegularLimit.html#a01dd9b59b9a183cb3ba148b08d09b320">Check</a>();</div><div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160; }</div><div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;</div><div class="line"><a name="l01201"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#adb0524e488894fa8f88764c74abb31f5"> 1201</a></span>&#160; absl::Duration <a class="code" href="classoperations__research_1_1RoutingModel.html#adb0524e488894fa8f88764c74abb31f5">RemainingTime</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160; DCHECK(limit_ != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160; <span class="keywordflow">return</span> limit_-&gt;<a class="code" href="classoperations__research_1_1RegularLimit.html#a8cc63d9778229883ca7594b3a47d8f5b">AbsoluteSolverDeadline</a>() - solver_-&gt;Now();</div><div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160; }</div><div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160;</div><div class="line"><a name="l01208"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a0f38add802397fef1f57b7d90ccd5aef"> 1208</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a0f38add802397fef1f57b7d90ccd5aef">nodes</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> nodes_; }</div><div class="line"><a name="l01210"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#aa9e7ba89833775f29889744fe9480d29"> 1210</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#aa9e7ba89833775f29889744fe9480d29">vehicles</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> vehicles_; }</div><div class="line"><a name="l01212"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a354dd8c252cf59b748602b342db6019d"> 1212</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a354dd8c252cf59b748602b342db6019d">Size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> nodes_ + vehicles_ - start_end_count_; }</div><div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160;</div><div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#a04bd106a61d493872cabb0f41f7f118f">GetNumberOfDecisionsInFirstSolution</a>(</div><div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters) <span class="keyword">const</span>;</div><div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingModel.html#aefff345740a5db07caea065ec14ec52f">GetNumberOfRejectsInFirstSolution</a>(</div><div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters) <span class="keyword">const</span>;</div><div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>&#160;</div><div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ac8347e84488d1b5eb7b5e6972fb32be3">IsMatchingModel</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>&#160;</div><div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>&#160; <span class="keyword">using</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e">GetTabuVarsCallback</a> =</div><div class="line"><a name="l01228"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e"> 1228</a></span>&#160; std::function&lt;std::vector&lt;operations_research::IntVar*&gt;(<a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>*)&gt;;</div><div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>&#160;</div><div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a7e2d405cde11bc4a08d752d0e669912c">SetTabuVarsCallback</a>(<a class="code" href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e">GetTabuVarsCallback</a> tabu_var_callback);</div><div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>&#160;</div><div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>&#160; <span class="comment">// TODO(user): Find a way to test and restrict the access at the same time.</span></div><div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>&#160;<span class="comment"></span> <a class="code" href="classoperations__research_1_1DecisionBuilder.html">DecisionBuilder</a>* <a class="code" href="classoperations__research_1_1RoutingModel.html#a20d0a3f5cec2e425c86f358e5f06b4a8">MakeGuidedSlackFinalizer</a>(</div><div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* dimension,</div><div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>&#160; std::function&lt;int64(int64)&gt; initializer);</div><div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>&#160; <span class="comment">// TODO(user): MakeGreedyDescentLSOperator is too general for routing.h.</span></div><div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>&#160;<span class="comment"></span> <span class="keyword">static</span> std::unique_ptr&lt;LocalSearchOperator&gt; <a class="code" href="classoperations__research_1_1RoutingModel.html#aa1c45751ee316e0948ba32494262f006">MakeGreedyDescentLSOperator</a>(</div><div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160; std::vector&lt;IntVar*&gt; variables);</div><div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>&#160;<span class="preprocessor">#endif </span></div><div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>&#160;<span class="preprocessor"> DecisionBuilder* MakeSelfDependentDimensionFinalizer(</span></div><div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* dimension);</div><div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>&#160;</div><div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>&#160; <span class="keyword">enum</span> RoutingLocalSearchOperator {</div><div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>&#160; RELOCATE = 0,</div><div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>&#160; RELOCATE_PAIR,</div><div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>&#160; LIGHT_RELOCATE_PAIR,</div><div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>&#160; RELOCATE_NEIGHBORS,</div><div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>&#160; EXCHANGE,</div><div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>&#160; EXCHANGE_PAIR,</div><div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>&#160; CROSS,</div><div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>&#160; CROSS_EXCHANGE,</div><div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>&#160; TWO_OPT,</div><div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>&#160; OR_OPT,</div><div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>&#160; RELOCATE_EXPENSIVE_CHAIN,</div><div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>&#160; LIN_KERNIGHAN,</div><div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>&#160; TSP_OPT,</div><div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>&#160; MAKE_ACTIVE,</div><div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>&#160; RELOCATE_AND_MAKE_ACTIVE,</div><div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>&#160; MAKE_ACTIVE_AND_RELOCATE,</div><div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>&#160; MAKE_INACTIVE,</div><div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>&#160; MAKE_CHAIN_INACTIVE,</div><div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>&#160; SWAP_ACTIVE,</div><div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>&#160; EXTENDED_SWAP_ACTIVE,</div><div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>&#160; NODE_PAIR_SWAP,</div><div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>&#160; PATH_LNS,</div><div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>&#160; FULL_PATH_LNS,</div><div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>&#160; TSP_LNS,</div><div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>&#160; INACTIVE_LNS,</div><div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>&#160; EXCHANGE_RELOCATE_PAIR,</div><div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>&#160; RELOCATE_SUBTRIP,</div><div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>&#160; EXCHANGE_SUBTRIP,</div><div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>&#160; LOCAL_SEARCH_OPERATOR_COUNTER</div><div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>&#160; };</div><div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>&#160;</div><div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>&#160; <span class="keyword">struct </span>ValuedNodes {</div><div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>&#160; std::vector&lt;int64&gt; indices;</div><div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>&#160; T value;</div><div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>&#160; };</div><div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>&#160; <span class="keyword">struct </span>DisjunctionValues {</div><div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160; int64 penalty;</div><div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>&#160; int64 max_cardinality;</div><div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160; };</div><div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>&#160; <span class="keyword">typedef</span> ValuedNodes&lt;DisjunctionValues&gt; Disjunction;</div><div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>&#160;</div><div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>&#160; <span class="keyword">struct </span>CostCacheElement {</div><div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>&#160; <span class="keywordtype">int</span> index;</div><div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> cost_class_index;</div><div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>&#160; int64 cost;</div><div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>&#160; };</div><div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>&#160;</div><div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>&#160; <span class="keywordtype">void</span> Initialize();</div><div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>&#160; <span class="keywordtype">void</span> AddNoCycleConstraintInternal();</div><div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>&#160; <span class="keywordtype">bool</span> AddDimensionWithCapacityInternal(</div><div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; evaluator_indices, int64 slack_max,</div><div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>&#160; std::vector&lt;int64&gt; vehicle_capacities, <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160; <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160; <span class="keywordtype">bool</span> AddDimensionDependentDimensionWithVehicleCapacityInternal(</div><div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; pure_transits,</div><div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; dependent_transits,</div><div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a50ba9dd11704e0be7edaa9e9f24142ff">RoutingDimension</a>* base_dimension, int64 slack_max,</div><div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160; std::vector&lt;int64&gt; vehicle_capacities, <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160; <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160; <span class="keywordtype">bool</span> InitializeDimensionInternal(</div><div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; evaluator_indices,</div><div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; state_dependent_evaluator_indices,</div><div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>&#160; int64 slack_max, <span class="keywordtype">bool</span> fix_start_cumul_to_zero,</div><div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a50ba9dd11704e0be7edaa9e9f24142ff">RoutingDimension</a>* dimension);</div><div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a966f3010581e2a82e0b1e550667d8bce">DimensionIndex</a> GetDimensionIndex(<span class="keyword">const</span> std::string&amp; dimension_name) <span class="keyword">const</span>;</div><div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>&#160;</div><div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160; <span class="keywordtype">void</span> StoreDimensionCumulOptimizers();</div><div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>&#160;</div><div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>&#160; <span class="keywordtype">void</span> ComputeCostClasses(<span class="keyword">const</span> RoutingSearchParameters&amp; parameters);</div><div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>&#160; <span class="keywordtype">void</span> ComputeVehicleClasses();</div><div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>&#160; int64 GetArcCostForClassInternal(int64 from_index, int64 to_index,</div><div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> cost_class_index) <span class="keyword">const</span>;</div><div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>&#160; <span class="keywordtype">void</span> AppendHomogeneousArcCosts(<span class="keyword">const</span> RoutingSearchParameters&amp; parameters,</div><div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>&#160; <span class="keywordtype">int</span> node_index,</div><div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>&#160; std::vector&lt;IntVar*&gt;* cost_elements);</div><div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>&#160; <span class="keywordtype">void</span> AppendArcCosts(<span class="keyword">const</span> RoutingSearchParameters&amp; parameters, <span class="keywordtype">int</span> node_index,</div><div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>&#160; std::vector&lt;IntVar*&gt;* cost_elements);</div><div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>&#160; Assignment* DoRestoreAssignment();</div><div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> kCostClassIndexOfZeroCost;</div><div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>&#160; int64 SafeGetCostClassInt64OfVehicle(int64 vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>&#160; DCHECK_LT(0, vehicles_);</div><div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>&#160; <span class="keywordflow">return</span> (vehicle &gt;= 0 ? <a class="code" href="classoperations__research_1_1RoutingModel.html#a32bba655accbd7dc8e23d30bf679b880">GetCostClassIndexOfVehicle</a>(vehicle)</div><div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>&#160; : kCostClassIndexOfZeroCost)</div><div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>&#160; .value();</div><div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>&#160; }</div><div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160; int64 GetDimensionTransitCostSum(int64 i, int64 j,</div><div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>&#160; <span class="keyword">const</span> CostClass&amp; cost_class) <span class="keyword">const</span>;</div><div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>&#160; IntVar* CreateDisjunction(<a class="code" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> disjunction);</div><div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160; <span class="keywordtype">void</span> AddPickupAndDeliverySetsInternal(<span class="keyword">const</span> std::vector&lt;int64&gt;&amp; pickups,</div><div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; deliveries);</div><div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>&#160; IntVar* CreateSameVehicleCost(<span class="keywordtype">int</span> vehicle_index);</div><div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>&#160; <span class="keywordtype">int</span> FindNextActive(<span class="keywordtype">int</span> index, <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; indices) <span class="keyword">const</span>;</div><div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>&#160;</div><div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>&#160; <span class="keywordtype">bool</span> RouteCanBeUsedByVehicle(<span class="keyword">const</span> Assignment&amp; assignment, <span class="keywordtype">int</span> start_index,</div><div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>&#160; <span class="keywordtype">int</span> vehicle) <span class="keyword">const</span>;</div><div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>&#160; <span class="keywordtype">bool</span> ReplaceUnusedVehicle(<span class="keywordtype">int</span> unused_vehicle, <span class="keywordtype">int</span> active_vehicle,</div><div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>&#160; Assignment* compact_assignment) <span class="keyword">const</span>;</div><div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>&#160;</div><div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>&#160; <span class="keywordtype">void</span> QuietCloseModel();</div><div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>&#160; <span class="keywordtype">void</span> QuietCloseModelWithParameters(</div><div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; parameters) {</div><div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>&#160; <span class="keywordflow">if</span> (!closed_) {</div><div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#aa79f8d482de4dd0ef86a1b54999686af">CloseModelWithParameters</a>(parameters);</div><div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>&#160; }</div><div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>&#160; }</div><div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>&#160;</div><div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>&#160; <span class="keywordtype">bool</span> SolveMatchingModel(Assignment* assignment);</div><div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>&#160; <span class="keywordtype">bool</span> AppendAssignmentIfFeasible(</div><div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>&#160; <span class="keyword">const</span> Assignment&amp; assignment,</div><div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>&#160; std::vector&lt;std::unique_ptr&lt;Assignment&gt;&gt;* assignments);</div><div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>&#160; <span class="keywordtype">void</span> LogSolution(<span class="keyword">const</span> RoutingSearchParameters&amp; parameters,</div><div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>&#160; <span class="keyword">const</span> std::string&amp; description, int64 solution_cost,</div><div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>&#160; int64 start_time_ms);</div><div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>&#160; Assignment* CompactAssignmentInternal(<span class="keyword">const</span> Assignment&amp; assignment,</div><div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>&#160; <span class="keywordtype">bool</span> check_compact_assignment) <span class="keyword">const</span>;</div><div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>&#160; std::string FindErrorInSearchParametersForModel(</div><div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters) <span class="keyword">const</span>;</div><div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>&#160; <span class="keywordtype">void</span> SetupSearch(<span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>&#160; <span class="comment">// TODO(user): Document each auxiliary method.</span></div><div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>&#160; Assignment* GetOrCreateAssignment();</div><div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>&#160; Assignment* GetOrCreateTmpAssignment();</div><div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>&#160; RegularLimit* GetOrCreateLimit();</div><div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>&#160; RegularLimit* GetOrCreateLocalSearchLimit();</div><div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>&#160; RegularLimit* GetOrCreateLargeNeighborhoodSearchLimit();</div><div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>&#160; RegularLimit* GetOrCreateFirstSolutionLargeNeighborhoodSearchLimit();</div><div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>&#160; LocalSearchOperator* CreateInsertionOperator();</div><div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>&#160; LocalSearchOperator* CreateMakeInactiveOperator();</div><div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>&#160; <span class="keywordtype">void</span> CreateNeighborhoodOperators(<span class="keyword">const</span> RoutingSearchParameters&amp; parameters);</div><div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>&#160; LocalSearchOperator* GetNeighborhoodOperators(</div><div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters) <span class="keyword">const</span>;</div><div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; GetOrCreateLocalSearchFilters();</div><div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; GetOrCreateFeasibilityFilters();</div><div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>&#160; DecisionBuilder* CreateSolutionFinalizer(SearchLimit* lns_limit);</div><div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>&#160; DecisionBuilder* CreateFinalizerForMinimizedAndMaximizedVariables();</div><div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>&#160; <span class="keywordtype">void</span> CreateFirstSolutionDecisionBuilders(</div><div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>&#160; DecisionBuilder* GetFirstSolutionDecisionBuilder(</div><div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters) <span class="keyword">const</span>;</div><div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>&#160; IntVarFilteredDecisionBuilder* GetFilteredFirstSolutionDecisionBuilderOrNull(</div><div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; parameters) <span class="keyword">const</span>;</div><div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>&#160; LocalSearchPhaseParameters* CreateLocalSearchParameters(</div><div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>&#160; DecisionBuilder* CreateLocalSearchDecisionBuilder(</div><div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>&#160; <span class="keywordtype">void</span> SetupDecisionBuilders(<span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>&#160; <span class="keywordtype">void</span> SetupMetaheuristics(<span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>&#160; <span class="keywordtype">void</span> SetupAssignmentCollector(</div><div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>&#160; <span class="keywordtype">void</span> SetupTrace(<span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>&#160; <span class="keywordtype">void</span> SetupSearchMonitors(<span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters);</div><div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>&#160; <span class="keywordtype">bool</span> UsesLightPropagation(</div><div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters) <span class="keyword">const</span>;</div><div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e">GetTabuVarsCallback</a> tabu_var_callback_;</div><div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>&#160;</div><div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>&#160; <span class="keywordtype">int</span> GetVehicleStartClass(int64 start) <span class="keyword">const</span>;</div><div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>&#160;</div><div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>&#160; <span class="keywordtype">void</span> InitSameVehicleGroups(<span class="keywordtype">int</span> number_of_groups) {</div><div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>&#160; same_vehicle_group_.assign(<a class="code" href="classoperations__research_1_1RoutingModel.html#a354dd8c252cf59b748602b342db6019d">Size</a>(), 0);</div><div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>&#160; same_vehicle_groups_.assign(number_of_groups, {});</div><div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>&#160; }</div><div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>&#160; <span class="keywordtype">void</span> SetSameVehicleGroup(<span class="keywordtype">int</span> index, <span class="keywordtype">int</span> group) {</div><div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>&#160; same_vehicle_group_[index] = group;</div><div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>&#160; same_vehicle_groups_[group].push_back(index);</div><div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>&#160; }</div><div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>&#160;</div><div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>&#160; std::unique_ptr&lt;Solver&gt; solver_;</div><div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>&#160; <span class="keywordtype">int</span> nodes_;</div><div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>&#160; <span class="keywordtype">int</span> vehicles_;</div><div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>&#160; Constraint* no_cycle_constraint_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>&#160; std::vector&lt;IntVar*&gt; nexts_;</div><div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>&#160; std::vector&lt;IntVar*&gt; vehicle_vars_;</div><div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>&#160; std::vector&lt;IntVar*&gt; active_;</div><div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>&#160; std::vector&lt;IntVar*&gt; vehicle_costs_considered_;</div><div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>&#160; std::vector&lt;IntVar*&gt; is_bound_to_end_;</div><div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>&#160; <span class="keyword">mutable</span> RevSwitch is_bound_to_end_ct_added_;</div><div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>&#160; absl::flat_hash_map&lt;std::string, DimensionIndex&gt; dimension_name_to_index_;</div><div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>&#160; gtl::ITIVector&lt;DimensionIndex, RoutingDimension*&gt; dimensions_;</div><div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>&#160;<span class="comment"></span> std::vector&lt;std::unique_ptr&lt;GlobalDimensionCumulOptimizer&gt; &gt;</div><div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>&#160; global_dimension_optimizers_;</div><div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>&#160; gtl::ITIVector&lt;DimensionIndex, int&gt; global_optimizer_index_;</div><div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>&#160; std::vector&lt;std::unique_ptr&lt;LocalDimensionCumulOptimizer&gt; &gt;</div><div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>&#160; local_dimension_optimizers_;</div><div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>&#160; gtl::ITIVector&lt;DimensionIndex, int&gt; local_optimizer_index_;</div><div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>&#160; std::string primary_constrained_dimension_;</div><div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>&#160; IntVar* cost_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>&#160; std::vector&lt;int&gt; vehicle_to_transit_cost_;</div><div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>&#160; std::vector&lt;int64&gt; fixed_cost_of_vehicle_;</div><div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>&#160; std::vector&lt;CostClassIndex&gt; cost_class_index_of_vehicle_;</div><div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>&#160; <span class="keywordtype">bool</span> has_vehicle_with_zero_cost_class_;</div><div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>&#160; std::vector&lt;int64&gt; linear_cost_factor_of_vehicle_;</div><div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160; std::vector&lt;int64&gt; quadratic_cost_factor_of_vehicle_;</div><div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>&#160; <span class="keywordtype">bool</span> vehicle_amortized_cost_factors_set_;</div><div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>&#160; std::vector&lt;bool&gt; consider_empty_route_costs_;</div><div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>&#160; gtl::ITIVector&lt;CostClassIndex, CostClass&gt; cost_classes_;</div><div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>&#160; <span class="keywordtype">bool</span> costs_are_homogeneous_across_vehicles_;</div><div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>&#160; <span class="keywordtype">bool</span> cache_callbacks_;</div><div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>&#160; <span class="keyword">mutable</span> std::vector&lt;CostCacheElement&gt; cost_cache_; </div><div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>&#160; std::vector&lt;VehicleClassIndex&gt; vehicle_class_index_of_vehicle_;</div><div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160; gtl::ITIVector&lt;VehicleClassIndex, VehicleClass&gt; vehicle_classes_;</div><div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>&#160; std::function&lt;int(int64)&gt; vehicle_start_class_callback_;</div><div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>&#160; gtl::ITIVector&lt;DisjunctionIndex, Disjunction&gt; disjunctions_;</div><div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>&#160; std::vector&lt;std::vector&lt;DisjunctionIndex&gt; &gt; index_to_disjunctions_;</div><div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>&#160; std::vector&lt;ValuedNodes&lt;int64&gt; &gt; same_vehicle_costs_;</div><div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>&#160; std::vector&lt;std::unordered_set&lt;int&gt;&gt; allowed_vehicles_;</div><div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe">IndexPairs</a> pickup_delivery_pairs_;</div><div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>&#160; std::vector&lt;std::pair&lt;DisjunctionIndex, DisjunctionIndex&gt; &gt;</div><div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>&#160; pickup_delivery_disjunctions_;</div><div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>&#160; <span class="comment">// If node_index is a pickup, index_to_pickup_index_pairs_[node_index] is the</span></div><div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>&#160; <span class="comment">// vector of pairs {pair_index, pickup_index} such that</span></div><div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>&#160; <span class="comment">// (pickup_delivery_pairs_[pair_index].first)[pickup_index] == node_index</span></div><div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>&#160; std::vector&lt;std::vector&lt;std::pair&lt;int, int&gt; &gt; &gt; index_to_pickup_index_pairs_;</div><div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>&#160; <span class="comment">// Same as above for deliveries.</span></div><div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>&#160; std::vector&lt;std::vector&lt;std::pair&lt;int, int&gt; &gt; &gt;</div><div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>&#160; index_to_delivery_index_pairs_;</div><div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>&#160; std::vector&lt;PickupAndDeliveryPolicy&gt; vehicle_pickup_delivery_policy_;</div><div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>&#160; <span class="comment">// Same vehicle group to which a node belongs.</span></div><div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>&#160; std::vector&lt;int&gt; same_vehicle_group_;</div><div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>&#160; <span class="comment">// Same vehicle node groups.</span></div><div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>&#160; std::vector&lt;std::vector&lt;int&gt;&gt; same_vehicle_groups_;</div><div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>&#160; <span class="comment">// Node visit types</span></div><div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>&#160; <span class="comment">// Variable index to visit type index.</span></div><div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160; std::vector&lt;int&gt; index_to_visit_type_;</div><div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160; std::vector&lt;absl::flat_hash_set&lt;int&gt; &gt;</div><div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>&#160; hard_incompatible_types_per_type_index_;</div><div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>&#160; <span class="keywordtype">bool</span> has_hard_type_incompatibilities_;</div><div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>&#160; std::vector&lt;absl::flat_hash_set&lt;int&gt; &gt;</div><div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>&#160; temporal_incompatible_types_per_type_index_;</div><div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>&#160; <span class="keywordtype">bool</span> has_temporal_type_incompatibilities_;</div><div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>&#160;</div><div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>&#160; std::vector&lt;std::vector&lt;absl::flat_hash_set&lt;int&gt; &gt; &gt;</div><div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>&#160; same_vehicle_required_type_alternatives_per_type_index_;</div><div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>&#160; <span class="keywordtype">bool</span> has_same_vehicle_type_requirements_;</div><div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>&#160; std::vector&lt;std::vector&lt;absl::flat_hash_set&lt;int&gt; &gt; &gt;</div><div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>&#160; temporal_required_type_alternatives_per_type_index_;</div><div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>&#160; <span class="keywordtype">bool</span> has_temporal_type_requirements_;</div><div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>&#160; absl::flat_hash_set&lt;int&gt; trivially_infeasible_visit_types_;</div><div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>&#160; <span class="keywordtype">int</span> num_visit_types_;</div><div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>&#160; <span class="comment">// Two indices are equivalent if they correspond to the same node (as given</span></div><div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>&#160; <span class="comment">// to the constructors taking a RoutingIndexManager).</span></div><div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>&#160; std::vector&lt;int&gt; index_to_equivalence_class_;</div><div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>&#160; std::vector&lt;int&gt; index_to_vehicle_;</div><div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>&#160; std::vector&lt;int64&gt; starts_;</div><div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>&#160; std::vector&lt;int64&gt; ends_;</div><div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>&#160; <span class="comment">// TODO(user): b/62478706 Once the port is done, this shouldn&#39;t be needed</span></div><div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>&#160; <span class="comment">// anymore.</span></div><div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>&#160; RoutingIndexManager manager_;</div><div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>&#160; <span class="keywordtype">int</span> start_end_count_;</div><div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>&#160; <span class="comment">// Model status</span></div><div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>&#160; <span class="keywordtype">bool</span> closed_ = <span class="keyword">false</span>;</div><div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> status_ = <a class="code" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70babe45300b724161791a6429b27d7f5009">ROUTING_NOT_SOLVED</a>;</div><div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>&#160; <span class="keywordtype">bool</span> enable_deep_serialization_ = <span class="keyword">true</span>;</div><div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>&#160;</div><div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>&#160; <span class="comment">// Search data</span></div><div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>&#160; std::vector&lt;DecisionBuilder*&gt; first_solution_decision_builders_;</div><div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>&#160; std::vector&lt;IntVarFilteredDecisionBuilder*&gt;</div><div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>&#160; first_solution_filtered_decision_builders_;</div><div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>&#160; <a class="code" href="classoperations__research_1_1Solver.html#abb24034fec2804ac3c0172f043087321">Solver::IndexEvaluator2</a> first_solution_evaluator_;</div><div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>&#160; std::vector&lt;LocalSearchOperator*&gt; local_search_operators_;</div><div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160; std::vector&lt;SearchMonitor*&gt; monitors_;</div><div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>&#160; SolutionCollector* collect_assignments_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>&#160; SolutionCollector* collect_one_assignment_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>&#160; SolutionCollector* packed_dimensions_assignment_collector_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>&#160; DecisionBuilder* solve_db_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>&#160; DecisionBuilder* improve_db_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>&#160; DecisionBuilder* restore_assignment_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>&#160; DecisionBuilder* restore_tmp_assignment_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>&#160; Assignment* assignment_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>&#160; Assignment* preassignment_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>&#160; Assignment* tmp_assignment_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>&#160; std::vector&lt;IntVar*&gt; extra_vars_;</div><div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>&#160; std::vector&lt;IntervalVar*&gt; extra_intervals_;</div><div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>&#160; std::vector&lt;LocalSearchOperator*&gt; extra_operators_;</div><div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>&#160; std::vector&lt;LocalSearchFilter*&gt; filters_;</div><div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>&#160; std::vector&lt;LocalSearchFilter*&gt; feasibility_filters_;</div><div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>&#160; std::vector&lt;LocalSearchFilter*&gt; extra_filters_;</div><div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>&#160; std::vector&lt;std::pair&lt;IntVar*, int64&gt;&gt; finalizer_variable_cost_pairs_;</div><div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>&#160; std::vector&lt;std::pair&lt;IntVar*, int64&gt;&gt; finalizer_variable_target_pairs_;</div><div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>&#160; absl::flat_hash_map&lt;IntVar*, int&gt; finalizer_variable_cost_index_;</div><div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>&#160; absl::flat_hash_set&lt;IntVar*&gt; finalizer_variable_target_set_;</div><div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>&#160; std::unique_ptr&lt;SweepArranger&gt; sweep_arranger_;</div><div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>&#160;</div><div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>&#160; RegularLimit* limit_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>&#160; RegularLimit* ls_limit_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>&#160; RegularLimit* lns_limit_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>&#160; RegularLimit* first_solution_lns_limit_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>&#160;</div><div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>&#160; <span class="keyword">typedef</span> std::pair&lt;int64, int64&gt; CacheKey;</div><div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>&#160; <span class="keyword">typedef</span> absl::flat_hash_map&lt;CacheKey, int64&gt; TransitCallbackCache;</div><div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>&#160; <span class="keyword">typedef</span> absl::flat_hash_map&lt;CacheKey, StateDependentTransit&gt;</div><div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>&#160; StateDependentTransitCallbackCache;</div><div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>&#160;</div><div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>&#160; std::vector&lt;TransitCallback1&gt; unary_transit_evaluators_;</div><div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>&#160; std::vector&lt;TransitCallback2&gt; transit_evaluators_;</div><div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>&#160; <span class="comment">// The following vector stores a boolean per transit_evaluator_, indicating</span></div><div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>&#160; <span class="comment">// whether the transits are all positive.</span></div><div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>&#160; <span class="comment">// is_transit_evaluator_positive_ will be set to true only when registering a</span></div><div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>&#160; <span class="comment">// callback via RegisterPositiveTransitCallback(), and to false otherwise.</span></div><div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>&#160; <span class="comment">// The actual positivity of the transit values will only be checked in debug</span></div><div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160; <span class="comment">// mode, when calling RegisterPositiveTransitCallback().</span></div><div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160; <span class="comment">// Therefore, RegisterPositiveTransitCallback() should only be called when the</span></div><div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>&#160; <span class="comment">// transits are known to be positive, as the positivity of a callback will</span></div><div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>&#160; <span class="comment">// allow some improvements in the solver, but will entail in errors if the</span></div><div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>&#160; <span class="comment">// transits are falsely assumed positive.</span></div><div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>&#160; std::vector&lt;bool&gt; is_transit_evaluator_positive_;</div><div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>&#160; std::vector&lt;VariableIndexEvaluator2&gt; state_dependent_transit_evaluators_;</div><div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>&#160; std::vector&lt;std::unique_ptr&lt;StateDependentTransitCallbackCache&gt;&gt;</div><div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>&#160; state_dependent_transit_evaluators_cache_;</div><div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>&#160;</div><div class="line"><a name="l01690"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a50ba9dd11704e0be7edaa9e9f24142ff"> 1690</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>;</div><div class="line"><a name="l01691"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModel.html#a00141bd90e555aea59a9e98cfbcda6eb"> 1691</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1RoutingModel.html#a00141bd90e555aea59a9e98cfbcda6eb">RoutingModelInspector</a>;</div><div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>&#160;</div><div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>&#160; DISALLOW_COPY_AND_ASSIGN(<a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>);</div><div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>&#160;};</div><div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>&#160;</div><div class="line"><a name="l01697"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModelVisitor.html"> 1697</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1RoutingModelVisitor.html">RoutingModelVisitor</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1BaseObject.html">BaseObject</a> {</div><div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l01700"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModelVisitor.html#a7de4c57f71fba7de7371a25dab168bcd"> 1700</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="classoperations__research_1_1RoutingModelVisitor.html#a7de4c57f71fba7de7371a25dab168bcd">kLightElement</a>[];</div><div class="line"><a name="l01701"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModelVisitor.html#a6c0546843b8356083c43bdede41b68d2"> 1701</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="classoperations__research_1_1RoutingModelVisitor.html#a6c0546843b8356083c43bdede41b68d2">kLightElement2</a>[];</div><div class="line"><a name="l01702"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingModelVisitor.html#ad4137c90b6df943177de8f580d4adc97"> 1702</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="classoperations__research_1_1RoutingModelVisitor.html#ad4137c90b6df943177de8f580d4adc97">kRemoveValues</a>[];</div><div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>&#160;};</div><div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>&#160;</div><div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>&#160;<span class="preprocessor">#if !defined(SWIG)</span></div><div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1DisjunctivePropagator.html">DisjunctivePropagator</a> {</div><div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l01715"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html"> 1715</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html">Tasks</a> {</div><div class="line"><a name="l01716"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#ad5e547ae9d4f7380beae49908c7cdc48"> 1716</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#ad5e547ae9d4f7380beae49908c7cdc48">num_chain_tasks</a> = 0;</div><div class="line"><a name="l01717"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a08530dc2a09c5639d9bffaa8d77ea4cb"> 1717</a></span>&#160; std::vector&lt;int64&gt; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a08530dc2a09c5639d9bffaa8d77ea4cb">start_min</a>;</div><div class="line"><a name="l01718"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a3a043b5db0f7e2cd5d378229ca05fcbe"> 1718</a></span>&#160; std::vector&lt;int64&gt; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a3a043b5db0f7e2cd5d378229ca05fcbe">start_max</a>;</div><div class="line"><a name="l01719"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a115f81774c290337166f498824bf5b87"> 1719</a></span>&#160; std::vector&lt;int64&gt; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a115f81774c290337166f498824bf5b87">duration_min</a>;</div><div class="line"><a name="l01720"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a702574cf13b54bc225f06ce3a548d4e3"> 1720</a></span>&#160; std::vector&lt;int64&gt; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a702574cf13b54bc225f06ce3a548d4e3">duration_max</a>;</div><div class="line"><a name="l01721"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#ac82dcb03265376c6caeb434de093eb11"> 1721</a></span>&#160; std::vector&lt;int64&gt; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#ac82dcb03265376c6caeb434de093eb11">end_min</a>;</div><div class="line"><a name="l01722"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a07ca7d21baf239c58ad6bd720a5caadb"> 1722</a></span>&#160; std::vector&lt;int64&gt; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a07ca7d21baf239c58ad6bd720a5caadb">end_max</a>;</div><div class="line"><a name="l01723"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a450130fc232b9ab24cc44a7c215850b6"> 1723</a></span>&#160; std::vector&lt;bool&gt; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a450130fc232b9ab24cc44a7c215850b6">is_preemptible</a>;</div><div class="line"><a name="l01724"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a425fd06d315549fdc6e6c482e3cdf774"> 1724</a></span>&#160; std::vector&lt;const SortedDisjointIntervalList*&gt; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a425fd06d315549fdc6e6c482e3cdf774">forbidden_intervals</a>;</div><div class="line"><a name="l01725"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a7cc44fe8f5261fa7bacc58867dfb3882"> 1725</a></span>&#160; std::vector&lt;std::pair&lt;int64, int64&gt;&gt; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a7cc44fe8f5261fa7bacc58867dfb3882">distance_duration</a>;</div><div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>&#160;</div><div class="line"><a name="l01727"></a><span class="lineno"><a class="line" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#aa71d36872f416feaa853788a7a7a7ef8"> 1727</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#aa71d36872f416feaa853788a7a7a7ef8">Clear</a>() {</div><div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a08530dc2a09c5639d9bffaa8d77ea4cb">start_min</a>.clear();</div><div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a3a043b5db0f7e2cd5d378229ca05fcbe">start_max</a>.clear();</div><div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a115f81774c290337166f498824bf5b87">duration_min</a>.clear();</div><div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a702574cf13b54bc225f06ce3a548d4e3">duration_max</a>.clear();</div><div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#ac82dcb03265376c6caeb434de093eb11">end_min</a>.clear();</div><div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a07ca7d21baf239c58ad6bd720a5caadb">end_max</a>.clear();</div><div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a450130fc232b9ab24cc44a7c215850b6">is_preemptible</a>.clear();</div><div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a425fd06d315549fdc6e6c482e3cdf774">forbidden_intervals</a>.clear();</div><div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a7cc44fe8f5261fa7bacc58867dfb3882">distance_duration</a>.clear();</div><div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>&#160; }</div><div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>&#160; };</div><div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>&#160;</div><div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1DisjunctivePropagator.html#a8a31c563d28e1ebe7c9e140f15fea586">Propagate</a>(Tasks* tasks);</div><div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>&#160;</div><div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1DisjunctivePropagator.html#a0d1ed47f6804807e925b489b24fb8d04">Precedences</a>(Tasks* tasks);</div><div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1DisjunctivePropagator.html#a29620476a22fde70929c77dc6342be0e">MirrorTasks</a>(Tasks* tasks);</div><div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1DisjunctivePropagator.html#a08f43a826695abdbdad1c608cb90b25a">EdgeFinding</a>(Tasks* tasks);</div><div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1DisjunctivePropagator.html#aa9b624e65cb55b3d74ad35a3a675f9ea">DetectablePrecedencesWithChain</a>(Tasks* tasks);</div><div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1DisjunctivePropagator.html#a7b0f3a8550bd73014e2b61899524a2ad">ForbiddenIntervals</a>(Tasks* tasks);</div><div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1DisjunctivePropagator.html#a13e93a8cd8587377e1b8f88096e0efd0">DistanceDuration</a>(Tasks* tasks);</div><div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>&#160;</div><div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>&#160; sat::ThetaLambdaTree&lt;int64&gt; theta_lambda_tree_;</div><div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>&#160; std::vector&lt;int&gt; tasks_by_start_min_;</div><div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>&#160; std::vector&lt;int&gt; tasks_by_end_max_;</div><div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>&#160; std::vector&lt;int&gt; event_of_task_;</div><div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>&#160; std::vector&lt;int&gt; nonchain_tasks_by_start_max_;</div><div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>&#160;};</div><div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>&#160;</div><div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceoperations__research.html#a9c690acb94faaa03d89930ec84a76bba">AppendTasksFromPath</a>(<span class="keyword">const</span> std::vector&lt;int64&gt;&amp; path,</div><div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; min_travels,</div><div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; max_travels,</div><div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; pre_travels,</div><div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; post_travels,</div><div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>&#160; <span class="keyword">const</span> RoutingDimension&amp; dimension,</div><div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>&#160; DisjunctivePropagator::Tasks* tasks);</div><div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceoperations__research.html#aec575fd72a48b07ceca957691d785d57">AppendTasksFromIntervals</a>(<span class="keyword">const</span> std::vector&lt;IntervalVar*&gt;&amp; intervals,</div><div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>&#160; DisjunctivePropagator::Tasks* tasks);</div><div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceoperations__research.html#a4f6a1b9fc737ba25fee7bf42d6635182">FillPathEvaluation</a>(<span class="keyword">const</span> std::vector&lt;int64&gt;&amp; path,</div><div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">RoutingModel::TransitCallback2</a>&amp; evaluator,</div><div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>&#160; std::vector&lt;int64&gt;* values);</div><div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>&#160;<span class="preprocessor">#endif // !defined(SWIG)</span></div><div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>&#160;</div><div class="line"><a name="l01793"></a><span class="lineno"><a class="line" href="classoperations__research_1_1GlobalVehicleBreaksConstraint.html"> 1793</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1GlobalVehicleBreaksConstraint.html">GlobalVehicleBreaksConstraint</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1Constraint.html">Constraint</a> {</div><div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classoperations__research_1_1GlobalVehicleBreaksConstraint.html#acb1ca5666c8795f29fc71c28d7bb0386">GlobalVehicleBreaksConstraint</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* dimension);</div><div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>&#160;</div><div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1GlobalVehicleBreaksConstraint.html#a19d94d32f3bde30deeebb883c6f71f84">Post</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1GlobalVehicleBreaksConstraint.html#a36d844f2722273b190ed9a069dd25938">InitialPropagate</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>&#160;</div><div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>&#160; <span class="keywordtype">void</span> PropagateNode(<span class="keywordtype">int</span> node);</div><div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>&#160; <span class="keywordtype">void</span> PropagateVehicle(<span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>&#160; <span class="keywordtype">void</span> PropagateMaxBreakDistance(<span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>&#160;</div><div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* model_;</div><div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* <span class="keyword">const</span> dimension_;</div><div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>&#160; std::vector&lt;Demon*&gt; vehicle_demons_;</div><div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>&#160; std::vector&lt;int64&gt; path_;</div><div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>&#160;</div><div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>&#160; <span class="keywordtype">void</span> FillPartialPathOfVehicle(<span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>&#160; <span class="keywordtype">void</span> FillPathTravels(<span class="keyword">const</span> std::vector&lt;int64&gt;&amp; path);</div><div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>&#160;</div><div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>&#160; <span class="keyword">class </span>TaskTranslator {</div><div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>&#160; TaskTranslator(<a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* start, int64 before_start, int64 after_start)</div><div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>&#160; : start_(start),</div><div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>&#160; before_start_(before_start),</div><div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>&#160; after_start_(after_start) {}</div><div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>&#160; <span class="keyword">explicit</span> TaskTranslator(<a class="code" href="classoperations__research_1_1IntervalVar.html">IntervalVar</a>* interval) : interval_(interval) {}</div><div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>&#160; TaskTranslator() {}</div><div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>&#160;</div><div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>&#160; <span class="keywordtype">void</span> SetStartMin(int64 value) {</div><div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>&#160; <span class="keywordflow">if</span> (start_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>&#160; start_-&gt;SetMin(CapAdd(before_start_, value));</div><div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (interval_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>&#160; interval_-&gt;SetStartMin(value);</div><div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>&#160; }</div><div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>&#160; }</div><div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>&#160; <span class="keywordtype">void</span> SetStartMax(int64 value) {</div><div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>&#160; <span class="keywordflow">if</span> (start_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>&#160; start_-&gt;SetMax(CapAdd(before_start_, value));</div><div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (interval_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>&#160; interval_-&gt;SetStartMax(value);</div><div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>&#160; }</div><div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>&#160; }</div><div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>&#160; <span class="keywordtype">void</span> SetDurationMin(int64 value) {</div><div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>&#160; <span class="keywordflow">if</span> (interval_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>&#160; interval_-&gt;SetDurationMin(value);</div><div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>&#160; }</div><div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>&#160; }</div><div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>&#160; <span class="keywordtype">void</span> SetEndMin(int64 value) {</div><div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>&#160; <span class="keywordflow">if</span> (start_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>&#160; start_-&gt;SetMin(CapSub(value, after_start_));</div><div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (interval_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>&#160; interval_-&gt;SetEndMin(value);</div><div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>&#160; }</div><div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>&#160; }</div><div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>&#160; <span class="keywordtype">void</span> SetEndMax(int64 value) {</div><div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>&#160; <span class="keywordflow">if</span> (start_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>&#160; start_-&gt;SetMax(CapSub(value, after_start_));</div><div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (interval_ != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>&#160; interval_-&gt;SetEndMax(value);</div><div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>&#160; }</div><div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>&#160; }</div><div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>&#160;</div><div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* start_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>&#160; int64 before_start_;</div><div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>&#160; int64 after_start_;</div><div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>&#160; <a class="code" href="classoperations__research_1_1IntervalVar.html">IntervalVar</a>* interval_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>&#160; };</div><div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>&#160;</div><div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>&#160; std::vector&lt;TaskTranslator&gt; task_translators_;</div><div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>&#160;</div><div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>&#160; <a class="code" href="classoperations__research_1_1DisjunctivePropagator.html">DisjunctivePropagator</a> disjunctive_propagator_;</div><div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>&#160; <a class="code" href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html">DisjunctivePropagator::Tasks</a> tasks_;</div><div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>&#160;</div><div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>&#160; std::vector&lt;int64&gt; min_travel_;</div><div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>&#160; std::vector&lt;int64&gt; max_travel_;</div><div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>&#160; std::vector&lt;int64&gt; pre_travel_;</div><div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>&#160; std::vector&lt;int64&gt; post_travel_;</div><div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>&#160;};</div><div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>&#160;</div><div class="line"><a name="l01891"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRegulationsChecker.html"> 1891</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html">TypeRegulationsChecker</a> {</div><div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a7745da6edcf25f61956a75b5bb3a7080">TypeRegulationsChecker</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>&amp; model);</div><div class="line"><a name="l01894"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRegulationsChecker.html#a44b8ed49b96fc411511e28e001da2b49"> 1894</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a44b8ed49b96fc411511e28e001da2b49">~TypeRegulationsChecker</a>() {}</div><div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>&#160;</div><div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a68fa0aaa5c8d8dbead32a6b04463722e">CheckVehicle</a>(<span class="keywordtype">int</span> vehicle,</div><div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>&#160; <span class="keyword">const</span> std::function&lt;int64(int64)&gt;&amp; next_accessor);</div><div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>&#160;</div><div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l01900"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRegulationsChecker.html#a28ee18c0e0da9de081c81efe393a528d"> 1900</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a28ee18c0e0da9de081c81efe393a528d">PickupDeliveryStatus</a> { <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a28ee18c0e0da9de081c81efe393a528dabd6c69691b68642f5c619c8be829d3db">PICKUP</a>, <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a28ee18c0e0da9de081c81efe393a528daa3d86aeb99ea59e36fba09925c54513d">DELIVERY</a>, <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a28ee18c0e0da9de081c81efe393a528dac157bdf0b85a40d2619cbc8bc1ae5fe2">NONE</a> };</div><div class="line"><a name="l01901"></a><span class="lineno"><a class="line" href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html"> 1901</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html">NodeCount</a> {</div><div class="line"><a name="l01902"></a><span class="lineno"><a class="line" href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html#ac4ba70647bf570cf26232b50d179f883"> 1902</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html#ac4ba70647bf570cf26232b50d179f883">non_pickup_delivery</a> = 0;</div><div class="line"><a name="l01903"></a><span class="lineno"><a class="line" href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html#aec9eecb2cb3eba0a8378de4588b96f4b"> 1903</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html#aec9eecb2cb3eba0a8378de4588b96f4b">pickup</a> = 0;</div><div class="line"><a name="l01904"></a><span class="lineno"><a class="line" href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html#aa317753b50911e38e8649a9e4dd19f83"> 1904</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html#aa317753b50911e38e8649a9e4dd19f83">delivery</a> = 0;</div><div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>&#160; };</div><div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>&#160;</div><div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#aa4ff894026533b3ea426f184387e63b2">GetNonDeliveryCount</a>(<span class="keywordtype">int</span> type) <span class="keyword">const</span>;</div><div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a7f84ed07c71e73b7769fb4d18c8f3d1d">GetNonDeliveredCount</a>(<span class="keywordtype">int</span> type) <span class="keyword">const</span>;</div><div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>&#160;</div><div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a1698ad93b76ebfc58a0e1a2771e4b75c">HasRegulationsToCheck</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l01914"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRegulationsChecker.html#ac7c59aaa287baab0ed83f717e84f8b9b"> 1914</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#ac7c59aaa287baab0ed83f717e84f8b9b">InitializeCheck</a>() {}</div><div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a5b64c3cf1ee14bb918c0577cf7e8ec0e">CheckTypeRegulations</a>(<span class="keywordtype">int</span> type) = 0;</div><div class="line"><a name="l01916"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRegulationsChecker.html#a7a699c6ed63d424d0c3c322eb7161ace"> 1916</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#a7a699c6ed63d424d0c3c322eb7161ace">FinalizeCheck</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>&#160;</div><div class="line"><a name="l01918"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRegulationsChecker.html#aeb246ac61d4eadd6abf6dbdb6ce134f5"> 1918</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>&amp; <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html#aeb246ac61d4eadd6abf6dbdb6ce134f5">model_</a>;</div><div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>&#160;</div><div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>&#160; std::vector&lt;PickupDeliveryStatus&gt; pickup_delivery_status_of_node_;</div><div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>&#160; std::vector&lt;NodeCount&gt; counts_of_type_;</div><div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>&#160;};</div><div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>&#160;</div><div class="line"><a name="l01926"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeIncompatibilityChecker.html"> 1926</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1TypeIncompatibilityChecker.html">TypeIncompatibilityChecker</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html">TypeRegulationsChecker</a> {</div><div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>&#160; <a class="code" href="classoperations__research_1_1TypeIncompatibilityChecker.html#a0e62f00f807fac1ac7e9d14e00fb8394">TypeIncompatibilityChecker</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>&amp; model,</div><div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>&#160; <span class="keywordtype">bool</span> check_hard_incompatibilities);</div><div class="line"><a name="l01930"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeIncompatibilityChecker.html#aca7631df6a13c47b9978b3ff9421c0e5"> 1930</a></span>&#160; <a class="code" href="classoperations__research_1_1TypeIncompatibilityChecker.html#aca7631df6a13c47b9978b3ff9421c0e5">~TypeIncompatibilityChecker</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>&#160;</div><div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>&#160; <span class="keywordtype">bool</span> HasRegulationsToCheck() <span class="keyword">const override</span>;</div><div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>&#160; <span class="keywordtype">bool</span> CheckTypeRegulations(<span class="keywordtype">int</span> type) <span class="keyword">override</span>;</div><div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>&#160; <span class="keywordtype">bool</span> check_hard_incompatibilities_;</div><div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>&#160;};</div><div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>&#160;</div><div class="line"><a name="l01942"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRequirementChecker.html"> 1942</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1TypeRequirementChecker.html">TypeRequirementChecker</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html">TypeRegulationsChecker</a> {</div><div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l01944"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRequirementChecker.html#aa61667d3933f65282eaabd3fb06d4416"> 1944</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="classoperations__research_1_1TypeRequirementChecker.html#aa61667d3933f65282eaabd3fb06d4416">TypeRequirementChecker</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>&amp; model)</div><div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>&#160; : <a class="code" href="classoperations__research_1_1TypeRegulationsChecker.html">TypeRegulationsChecker</a>(model) {}</div><div class="line"><a name="l01946"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRequirementChecker.html#a74c15d3bf7b8a04ef26d5da0237cb3b2"> 1946</a></span>&#160; <a class="code" href="classoperations__research_1_1TypeRequirementChecker.html#a74c15d3bf7b8a04ef26d5da0237cb3b2">~TypeRequirementChecker</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>&#160;</div><div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>&#160; <span class="keywordtype">bool</span> HasRegulationsToCheck() <span class="keyword">const override</span>;</div><div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>&#160; <span class="keywordtype">void</span> InitializeCheck()<span class="keyword"> override </span>{</div><div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>&#160; types_with_same_vehicle_requirements_on_route_.clear();</div><div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>&#160; }</div><div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>&#160; <span class="keywordtype">bool</span> CheckTypeRegulations(<span class="keywordtype">int</span> type) <span class="keyword">override</span>;</div><div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>&#160; <span class="keywordtype">bool</span> FinalizeCheck() <span class="keyword">const override</span>;</div><div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>&#160;</div><div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>&#160; absl::flat_hash_set&lt;int&gt; types_with_same_vehicle_requirements_on_route_;</div><div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>&#160;};</div><div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>&#160;</div><div class="line"><a name="l01978"></a><span class="lineno"><a class="line" href="classoperations__research_1_1TypeRegulationsConstraint.html"> 1978</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1TypeRegulationsConstraint.html">TypeRegulationsConstraint</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1Constraint.html">Constraint</a> {</div><div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classoperations__research_1_1TypeRegulationsConstraint.html#ac45256999b51546027c5f81897ee4b46">TypeRegulationsConstraint</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>&amp; model);</div><div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>&#160;</div><div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1TypeRegulationsConstraint.html#a19d94d32f3bde30deeebb883c6f71f84">Post</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1TypeRegulationsConstraint.html#a36d844f2722273b190ed9a069dd25938">InitialPropagate</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>&#160;</div><div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>&#160; <span class="keywordtype">void</span> PropagateNodeRegulations(<span class="keywordtype">int</span> node);</div><div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>&#160; <span class="keywordtype">void</span> CheckRegulationsOnVehicle(<span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>&#160;</div><div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>&amp; model_;</div><div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>&#160; <a class="code" href="classoperations__research_1_1TypeIncompatibilityChecker.html">TypeIncompatibilityChecker</a> incompatibility_checker_;</div><div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>&#160; <a class="code" href="classoperations__research_1_1TypeRequirementChecker.html">TypeRequirementChecker</a> requirement_checker_;</div><div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>&#160; std::vector&lt;Demon*&gt; vehicle_demons_;</div><div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>&#160;};</div><div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>&#160;<span class="preprocessor">#if !defined SWIG</span></div><div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</a> {</div><div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02009"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html"> 2009</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a> {</div><div class="line"><a name="l02010"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html#a204f9b990226e8288e1aaecbb496cbf8"> 2010</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html#a204f9b990226e8288e1aaecbb496cbf8">bound</a>;</div><div class="line"><a name="l02011"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html#a26a8cbbc7bcf4117c2bf65104b4a54b4"> 2011</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html#a26a8cbbc7bcf4117c2bf65104b4a54b4">cost</a>;</div><div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>&#160; };</div><div class="line"><a name="l02013"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SimpleBoundCosts.html#a2d9c0c0c671bb710c0f268fef402b698"> 2013</a></span>&#160; <a class="code" href="classoperations__research_1_1SimpleBoundCosts.html#a2d9c0c0c671bb710c0f268fef402b698">SimpleBoundCosts</a>(<span class="keywordtype">int</span> num_bounds, <a class="code" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a> default_bound_cost)</div><div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>&#160; : bound_costs_(num_bounds, default_bound_cost) {}</div><div class="line"><a name="l02015"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SimpleBoundCosts.html#a19e1b2057c4fd91aab838ee1c159da8b"> 2015</a></span>&#160; <a class="code" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a>&amp; <a class="code" href="classoperations__research_1_1SimpleBoundCosts.html#a19e1b2057c4fd91aab838ee1c159da8b">bound_cost</a>(<span class="keywordtype">int</span> element) { <span class="keywordflow">return</span> bound_costs_[element]; }</div><div class="line"><a name="l02016"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SimpleBoundCosts.html#aaf6c218cbb9459db5d7e9318e5667e66"> 2016</a></span>&#160; <a class="code" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a> <a class="code" href="classoperations__research_1_1SimpleBoundCosts.html#aaf6c218cbb9459db5d7e9318e5667e66">bound_cost</a>(<span class="keywordtype">int</span> element)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> bound_costs_[element]; }</div><div class="line"><a name="l02017"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SimpleBoundCosts.html#af40990b9bd3d70d30e8ce7cdda1ad56f"> 2017</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1SimpleBoundCosts.html#af40990b9bd3d70d30e8ce7cdda1ad56f">Size</a>() { <span class="keywordflow">return</span> bound_costs_.size(); }</div><div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>&#160; <a class="code" href="classoperations__research_1_1SimpleBoundCosts.html#a2d9c0c0c671bb710c0f268fef402b698">SimpleBoundCosts</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>&#160; <a class="code" href="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</a> <a class="code" href="classoperations__research_1_1SimpleBoundCosts.html#af2133502882dec3ada4aa271a92bffe6">operator=</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</a>&amp;) = <span class="keyword">delete</span>;</div><div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>&#160;</div><div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>&#160; std::vector&lt;BoundCost&gt; bound_costs_;</div><div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>&#160;};</div><div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>&#160;<span class="preprocessor">#endif // !defined SWIG</span></div><div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>&#160;</div><div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>&#160;<span class="comment">// TODO(user): Break constraints need to know the service time of nodes</span></div><div class="line"><a name="l02046"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html"> 2046</a></span>&#160;<span class="comment"></span><span class="keyword">class </span><a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> {</div><div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>&#160; <a class="code" href="classoperations__research_1_1RoutingDimension.html#af42a5771d18b334091cc0f786219fe04">~RoutingDimension</a>();</div><div class="line"><a name="l02050"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a35a576bb3ea6814f122593d44a3c391e"> 2050</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingDimension.html#a35a576bb3ea6814f122593d44a3c391e">model</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> model_; }</div><div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#a7ed584226a1930ec8663c3e4efe28a93">GetTransitValue</a>(int64 from_index, int64 to_index, int64 vehicle) <span class="keyword">const</span>;</div><div class="line"><a name="l02057"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a175989a601fa29235dce43255647ab01"> 2057</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#a175989a601fa29235dce43255647ab01">GetTransitValueFromClass</a>(int64 from_index, int64 to_index,</div><div class="line"><a name="l02058"></a><span class="lineno"> 2058</span>&#160; int64 vehicle_class)<span class="keyword"> const </span>{</div><div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>&#160; <span class="keywordflow">return</span> model_-&gt;<a class="code" href="classoperations__research_1_1RoutingModel.html#ad558398f8c75f81d879f74d18ba5e7c3">TransitCallback</a>(class_evaluators_[vehicle_class])(from_index,</div><div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>&#160; to_index);</div><div class="line"><a name="l02061"></a><span class="lineno"> 2061</span>&#160; }</div><div class="line"><a name="l02064"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a4d87db39b37a97bcf6669448a67f0356"> 2064</a></span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1RoutingDimension.html#a4d87db39b37a97bcf6669448a67f0356">CumulVar</a>(int64 index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> cumuls_[index]; }</div><div class="line"><a name="l02065"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#abad8b7edc9f675056db28171da1da655"> 2065</a></span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1RoutingDimension.html#abad8b7edc9f675056db28171da1da655">TransitVar</a>(int64 index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> transits_[index]; }</div><div class="line"><a name="l02066"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a5997ca01d12b18b158ac0232acc731dd"> 2066</a></span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1RoutingDimension.html#a5997ca01d12b18b158ac0232acc731dd">FixedTransitVar</a>(int64 index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fixed_transits_[index]; }</div><div class="line"><a name="l02067"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#ac300c6449a65333961d8abdd7ce40a7a"> 2067</a></span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1RoutingDimension.html#ac300c6449a65333961d8abdd7ce40a7a">SlackVar</a>(int64 index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> slacks_[index]; }</div><div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>&#160;</div><div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>&#160;<span class="preprocessor">#if !defined(SWIGPYTHON)</span></div><div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>&#160; <span class="keyword">const</span> std::vector&lt;IntVar*&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a1b6f521fdc9dff38b7e065c838fa54a3">cumuls</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> cumuls_; }</div><div class="line"><a name="l02073"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a6a4b2eb4cf5999b4e84ef3da78beb42c"> 2073</a></span>&#160; <span class="keyword">const</span> std::vector&lt;IntVar*&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a6a4b2eb4cf5999b4e84ef3da78beb42c">fixed_transits</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fixed_transits_; }</div><div class="line"><a name="l02074"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a6f170c2c3b2a0c5f616aa449a38d84fa"> 2074</a></span>&#160; <span class="keyword">const</span> std::vector&lt;IntVar*&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a6f170c2c3b2a0c5f616aa449a38d84fa">transits</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> transits_; }</div><div class="line"><a name="l02075"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#adeac1b3791fe4e3ba366bbb60c268ae7"> 2075</a></span>&#160; <span class="keyword">const</span> std::vector&lt;IntVar*&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#adeac1b3791fe4e3ba366bbb60c268ae7">slacks</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> slacks_; }</div><div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>&#160;<span class="preprocessor">#if !defined(SWIGCSHARP) &amp;&amp; !defined(SWIGJAVA)</span></div><div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>&#160; <span class="keyword">const</span> std::vector&lt;SortedDisjointIntervalList&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#aff15c149ac7cbb96d340d8c1370d5aea">forbidden_intervals</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>&#160; <span class="keywordflow">return</span> forbidden_intervals_;</div><div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>&#160; }</div><div class="line"><a name="l02082"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a5c95c1b0049cb5dddbd4995ad8cd5b4e"> 2082</a></span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a5c95c1b0049cb5dddbd4995ad8cd5b4e">vehicle_capacities</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>&#160; <span class="keywordflow">return</span> vehicle_capacities_;</div><div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>&#160; }</div><div class="line"><a name="l02087"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#aae1962408e06dbb45f6e5ee67e530880"> 2087</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">RoutingModel::TransitCallback2</a>&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#aae1962408e06dbb45f6e5ee67e530880">transit_evaluator</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>&#160; <span class="keywordflow">return</span> model_-&gt;<a class="code" href="classoperations__research_1_1RoutingModel.html#ad558398f8c75f81d879f74d18ba5e7c3">TransitCallback</a>(</div><div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>&#160; class_evaluators_[vehicle_to_class_[vehicle]]);</div><div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>&#160; }</div><div class="line"><a name="l02094"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a4e440577c58c25c988280a98328e5598"> 2094</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">RoutingModel::TransitCallback1</a>&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a4e440577c58c25c988280a98328e5598">GetUnaryTransitEvaluator</a>(</div><div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>&#160; <span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>&#160; <span class="keywordflow">return</span> model_-&gt;<a class="code" href="classoperations__research_1_1RoutingModel.html#a44afcc03d5cb68c01acefa253de9edcf">UnaryTransitCallbackOrNull</a>(</div><div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>&#160; class_evaluators_[vehicle_to_class_[vehicle]]);</div><div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>&#160; }</div><div class="line"><a name="l02101"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a6873634e63019f7c8af33a0b7e79d397"> 2101</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a6873634e63019f7c8af33a0b7e79d397">AreVehicleTransitsPositive</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a35a576bb3ea6814f122593d44a3c391e">model</a>()-&gt;is_transit_evaluator_positive_</div><div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>&#160; [class_evaluators_[vehicle_to_class_[vehicle]]];</div><div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>&#160; }</div><div class="line"><a name="l02105"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#aa46d01169492b00c999344e8982ddd0f"> 2105</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#aa46d01169492b00c999344e8982ddd0f">vehicle_to_class</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> vehicle_to_class_[vehicle]; }</div><div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>&#160;<span class="preprocessor">#endif </span></div><div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>&#160;<span class="preprocessor">#endif </span></div><div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>&#160;<span class="preprocessor"> void SetSpanUpperBoundForVehicle(int64 upper_bound, int vehicle);</span></div><div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#aa98cc88bb33e9f703167cb030c093930">SetSpanCostCoefficientForVehicle</a>(int64 coefficient, <span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a5d861ad3e93b404872633f359570f234">SetSpanCostCoefficientForAllVehicles</a>(int64 coefficient);</div><div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#ae961a8435c4bc4ac850fa06bff29b625">SetGlobalSpanCostCoefficient</a>(int64 coefficient);</div><div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>&#160;</div><div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a052c958dd77221524f13f06d87960e63">SetCumulVarPiecewiseLinearCost</a>(int64 index,</div><div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>&#160; <span class="keyword">const</span> PiecewiseLinearFunction&amp; cost);</div><div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#ae85d6e3327a52eb2e93195d1ba45884d">HasCumulVarPiecewiseLinearCost</a>(int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>&#160; <span class="keyword">const</span> PiecewiseLinearFunction* <a class="code" href="classoperations__research_1_1RoutingDimension.html#a702dccba87a55da6912acde06f743712">GetCumulVarPiecewiseLinearCost</a>(</div><div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>&#160; int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>&#160;</div><div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#ab4ee0772eb17ffba5e3a2f6f38026546">SetCumulVarSoftUpperBound</a>(int64 index, int64 upper_bound,</div><div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>&#160; int64 coefficient);</div><div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#aea64f6b7cb80887be5478c35609cab1c">HasCumulVarSoftUpperBound</a>(int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#aacc17c3711ac030db624e72c5ae2394f">GetCumulVarSoftUpperBound</a>(int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#af362b70cab1a5a90703808e9575c2f54">GetCumulVarSoftUpperBoundCoefficient</a>(int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>&#160;</div><div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#adc8bb803b3a5f74bd5e1c04d0154b03c">SetCumulVarSoftLowerBound</a>(int64 index, int64 lower_bound,</div><div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>&#160; int64 coefficient);</div><div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a54e75670bdbf7abca93c9e02cfee83fe">HasCumulVarSoftLowerBound</a>(int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#a607df50e6bc0dc54fbe811e96155ee95">GetCumulVarSoftLowerBound</a>(int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#a51eadbd617f6658396e5ba790f6b0c19">GetCumulVarSoftLowerBoundCoefficient</a>(int64 index) <span class="keyword">const</span>;</div><div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>&#160; <span class="comment">// TODO(user): Remove if !defined when routing.i is repaired.</span></div><div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>&#160;<span class="preprocessor">#if !defined(SWIGPYTHON)</span></div><div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#ae34995163df20f89961e907ac3b25532">SetBreakIntervalsOfVehicle</a>(std::vector&lt;IntervalVar*&gt; breaks, <span class="keywordtype">int</span> vehicle,</div><div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>&#160; <span class="keywordtype">int</span> pre_travel_evaluator,</div><div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>&#160; <span class="keywordtype">int</span> post_travel_evaluator);</div><div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>&#160;<span class="preprocessor">#endif // !defined(SWIGPYTHON)</span></div><div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>&#160;</div><div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#ae34995163df20f89961e907ac3b25532">SetBreakIntervalsOfVehicle</a>(std::vector&lt;IntervalVar*&gt; breaks, <span class="keywordtype">int</span> vehicle,</div><div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>&#160; std::vector&lt;int64&gt; node_visit_transits);</div><div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>&#160;</div><div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a68c42bd26c7f0a2f1a0247e51a45aab5">SetBreakDistanceDurationOfVehicle</a>(int64 distance, int64 duration,</div><div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>&#160; <span class="keywordtype">int</span> vehicle);</div><div class="line"><a name="l02225"></a><span class="lineno"> 2225</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a76645042dd00fd9a97a9c4a395927947">InitializeBreaks</a>();</div><div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a6debc638c02bfb2b4afe0afccdd98ca5">HasBreakConstraints</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>&#160;<span class="preprocessor">#if !defined(SWIGPYTHON)</span></div><div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#ae34995163df20f89961e907ac3b25532">SetBreakIntervalsOfVehicle</a>(</div><div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>&#160; std::vector&lt;IntervalVar*&gt; breaks, <span class="keywordtype">int</span> vehicle,</div><div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>&#160; std::vector&lt;int64&gt; node_visit_transits,</div><div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>&#160; std::function&lt;int64(int64, int64)&gt; group_delays);</div><div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>&#160;</div><div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>&#160; <span class="keyword">const</span> std::vector&lt;IntervalVar*&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a1016552c3e687e1a555e1c6cf7525e0e">GetBreakIntervalsOfVehicle</a>(</div><div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>&#160; <span class="keywordtype">int</span> vehicle) <span class="keyword">const</span>;</div><div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>&#160; <span class="keyword">const</span> std::vector&lt;std::pair&lt;int64, int64&gt; &gt;&amp;</div><div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>&#160; <a class="code" href="classoperations__research_1_1RoutingDimension.html#acbe051ae21f1e3a5c66455e4c408cffd">GetBreakDistanceDurationOfVehicle</a>(<span class="keywordtype">int</span> vehicle) <span class="keyword">const</span>;</div><div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l02245"></a><span class="lineno"> 2245</span>&#160;<span class="preprocessor">#endif </span></div><div class="line"><a name="l02246"></a><span class="lineno"> 2246</span>&#160;<span class="preprocessor"> int GetPreTravelEvaluatorOfVehicle(int vehicle) const;</span></div><div class="line"><a name="l02247"></a><span class="lineno"> 2247</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#afb4c32e76561cad95bd8be2777d8f1ac">GetPostTravelEvaluatorOfVehicle</a>(<span class="keywordtype">int</span> vehicle) <span class="keyword">const</span>;</div><div class="line"><a name="l02248"></a><span class="lineno"> 2248</span>&#160;</div><div class="line"><a name="l02250"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a717341229f16012899360656534bba50"> 2250</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* <a class="code" href="classoperations__research_1_1RoutingDimension.html#a717341229f16012899360656534bba50">base_dimension</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> base_dimension_; }</div><div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#ab425ddb1df081fea8f527c63d824fb88">ShortestTransitionSlack</a>(int64 node) <span class="keyword">const</span>;</div><div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>&#160;</div><div class="line"><a name="l02261"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#ad8227ba86a01f26e4f173cd5e219d5d1"> 2261</a></span>&#160; <span class="keyword">const</span> std::string&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#ad8227ba86a01f26e4f173cd5e219d5d1">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> name_; }</div><div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>&#160;</div><div class="line"><a name="l02264"></a><span class="lineno"> 2264</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l02265"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#ad3f93c4522b3a4abd48a8c360b8c1c80"> 2265</a></span>&#160; <span class="keyword">const</span> ReverseArcListGraph&lt;int, int&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#ad3f93c4522b3a4abd48a8c360b8c1c80">GetPathPrecedenceGraph</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>&#160; <span class="keywordflow">return</span> path_precedence_graph_;</div><div class="line"><a name="l02267"></a><span class="lineno"> 2267</span>&#160; }</div><div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>&#160;</div><div class="line"><a name="l02279"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a64f4e1f55b71a9f9a0d7e3ef7033ade7"> 2279</a></span>&#160; <span class="keyword">typedef</span> std::function&lt;int64(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>)&gt; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a64f4e1f55b71a9f9a0d7e3ef7033ade7">PickupToDeliveryLimitFunction</a>;</div><div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>&#160;</div><div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#aa21323f8eeaa9c502d6cfb92109a73d4">SetPickupToDeliveryLimitFunctionForPair</a>(</div><div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>&#160; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a64f4e1f55b71a9f9a0d7e3ef7033ade7">PickupToDeliveryLimitFunction</a> limit_function, <span class="keywordtype">int</span> pair_index);</div><div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>&#160;</div><div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a36f4aa60ff1b8c1dd5fc1180199cad8d">HasPickupToDeliveryLimits</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#aa70f385bdf5fc31eec8a848dea13b357">GetPickupToDeliveryLimitForPair</a>(<span class="keywordtype">int</span> pair_index, <span class="keywordtype">int</span> pickup,</div><div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>&#160; <span class="keywordtype">int</span> delivery) <span class="keyword">const</span>;</div><div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>&#160;</div><div class="line"><a name="l02289"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html"> 2289</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html">NodePrecedence</a> {</div><div class="line"><a name="l02290"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html#a605c2bc25b0b11f43a5652efc7f83db4"> 2290</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html#a605c2bc25b0b11f43a5652efc7f83db4">first_node</a>;</div><div class="line"><a name="l02291"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html#af4b27334a40a64ed4f53cd19b994d89a"> 2291</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html#af4b27334a40a64ed4f53cd19b994d89a">second_node</a>;</div><div class="line"><a name="l02292"></a><span class="lineno"><a class="line" href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html#ae8ffb22e2a632e0a84779dcbc47ae96b"> 2292</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html#ae8ffb22e2a632e0a84779dcbc47ae96b">offset</a>;</div><div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>&#160; };</div><div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>&#160;</div><div class="line"><a name="l02295"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a80ebd60db4ccb3f512288a553f181fe9"> 2295</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a80ebd60db4ccb3f512288a553f181fe9">AddNodePrecedence</a>(<a class="code" href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html">NodePrecedence</a> precedence) {</div><div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>&#160; node_precedences_.push_back(precedence);</div><div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>&#160; }</div><div class="line"><a name="l02298"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#ae4b40d046de51f0ace9138a3692b0090"> 2298</a></span>&#160; <span class="keyword">const</span> std::vector&lt;NodePrecedence&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#ae4b40d046de51f0ace9138a3692b0090">GetNodePrecedences</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>&#160; <span class="keywordflow">return</span> node_precedences_;</div><div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>&#160; }</div><div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>&#160;</div><div class="line"><a name="l02303"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a10fbd239f47aef280b475ae0db9e8f9a"> 2303</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a10fbd239f47aef280b475ae0db9e8f9a">AddNodePrecedence</a>(int64 first_node, int64 second_node, int64 offset) {</div><div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>&#160; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a80ebd60db4ccb3f512288a553f181fe9">AddNodePrecedence</a>({first_node, second_node, offset});</div><div class="line"><a name="l02305"></a><span class="lineno"> 2305</span>&#160; }</div><div class="line"><a name="l02306"></a><span class="lineno"> 2306</span>&#160;</div><div class="line"><a name="l02307"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#affe684b0df382fbf2b5eda869ec0c271"> 2307</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#affe684b0df382fbf2b5eda869ec0c271">GetSpanUpperBoundForVehicle</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l02308"></a><span class="lineno"> 2308</span>&#160; <span class="keywordflow">return</span> vehicle_span_upper_bounds_[vehicle];</div><div class="line"><a name="l02309"></a><span class="lineno"> 2309</span>&#160; }</div><div class="line"><a name="l02310"></a><span class="lineno"> 2310</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l02311"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a88c834076ab8e7237fe49b17a907a847"> 2311</a></span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a88c834076ab8e7237fe49b17a907a847">vehicle_span_upper_bounds</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>&#160; <span class="keywordflow">return</span> vehicle_span_upper_bounds_;</div><div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>&#160; }</div><div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l02315"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a26d28dacdef6a70d512df1a175429558"> 2315</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#a26d28dacdef6a70d512df1a175429558">GetSpanCostCoefficientForVehicle</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>&#160; <span class="keywordflow">return</span> vehicle_span_cost_coefficients_[vehicle];</div><div class="line"><a name="l02317"></a><span class="lineno"> 2317</span>&#160; }</div><div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l02319"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#ac99ab58c828c4e814dd3c3d508ff5233"> 2319</a></span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#ac99ab58c828c4e814dd3c3d508ff5233">vehicle_span_cost_coefficients</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l02320"></a><span class="lineno"> 2320</span>&#160; <span class="keywordflow">return</span> vehicle_span_cost_coefficients_;</div><div class="line"><a name="l02321"></a><span class="lineno"> 2321</span>&#160; }</div><div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>&#160;<span class="preprocessor">#endif // SWIG</span></div><div class="line"><a name="l02323"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a1faf1ea53b992b47f60d0622e42f7a50"> 2323</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#a1faf1ea53b992b47f60d0622e42f7a50">global_span_cost_coefficient</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>&#160; <span class="keywordflow">return</span> global_span_cost_coefficient_;</div><div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>&#160; }</div><div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>&#160;</div><div class="line"><a name="l02327"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a375d5aec667421cb92f6439464420062"> 2327</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#a375d5aec667421cb92f6439464420062">GetGlobalOptimizerOffset</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>&#160; DCHECK_GE(global_optimizer_offset_, 0);</div><div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>&#160; <span class="keywordflow">return</span> global_optimizer_offset_;</div><div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>&#160; }</div><div class="line"><a name="l02331"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a82f14203d850d1ede49849c5020c6f51"> 2331</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1RoutingDimension.html#a82f14203d850d1ede49849c5020c6f51">GetLocalOptimizerOffsetForVehicle</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>&#160; <span class="keywordflow">if</span> (vehicle &gt;= local_optimizer_offset_for_vehicle_.size()) {</div><div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>&#160; }</div><div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>&#160; DCHECK_GE(local_optimizer_offset_for_vehicle_[vehicle], 0);</div><div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>&#160; <span class="keywordflow">return</span> local_optimizer_offset_for_vehicle_[vehicle];</div><div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>&#160; }</div><div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>&#160;<span class="preprocessor">#if !defined SWIG</span></div><div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a29304c6e17a12d06903ef952d685c5b3">SetSoftSpanUpperBoundForVehicle</a>(<a class="code" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">SimpleBoundCosts::BoundCost</a> bound_cost,</div><div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>&#160; <span class="keywordtype">int</span> vehicle) {</div><div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="classoperations__research_1_1RoutingDimension.html#af0185f7c0ea3abf45191db23514604f3">HasSoftSpanUpperBounds</a>()) {</div><div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>&#160; vehicle_soft_span_upper_bound_ = absl::make_unique&lt;SimpleBoundCosts&gt;(</div><div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>&#160; model_-&gt;<a class="code" href="classoperations__research_1_1RoutingModel.html#aa9e7ba89833775f29889744fe9480d29">vehicles</a>(), <a class="code" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">SimpleBoundCosts::BoundCost</a>{kint64max, 0});</div><div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>&#160; }</div><div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>&#160; vehicle_soft_span_upper_bound_-&gt;bound_cost(vehicle) = bound_cost;</div><div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>&#160; }</div><div class="line"><a name="l02349"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#af0185f7c0ea3abf45191db23514604f3"> 2349</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingDimension.html#af0185f7c0ea3abf45191db23514604f3">HasSoftSpanUpperBounds</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>&#160; <span class="keywordflow">return</span> vehicle_soft_span_upper_bound_ != <span class="keyword">nullptr</span>;</div><div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>&#160; }</div><div class="line"><a name="l02352"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a06257e0b9422e5de00bd4eef03777355"> 2352</a></span>&#160; <a class="code" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">SimpleBoundCosts::BoundCost</a> <a class="code" href="classoperations__research_1_1RoutingDimension.html#a06257e0b9422e5de00bd4eef03777355">GetSoftSpanUpperBoundForVehicle</a>(</div><div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>&#160; <span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{</div><div class="line"><a name="l02354"></a><span class="lineno"> 2354</span>&#160; DCHECK(<a class="code" href="classoperations__research_1_1RoutingDimension.html#af0185f7c0ea3abf45191db23514604f3">HasSoftSpanUpperBounds</a>());</div><div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>&#160; <span class="keywordflow">return</span> vehicle_soft_span_upper_bound_-&gt;bound_cost(vehicle);</div><div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>&#160; }</div><div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>&#160;<span class="preprocessor">#endif </span></div><div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>&#160;<span class="preprocessor"></span></div><div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>&#160; <span class="keyword">struct </span>SoftBound {</div><div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* var;</div><div class="line"><a name="l02362"></a><span class="lineno"> 2362</span>&#160; int64 bound;</div><div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>&#160; int64 coefficient;</div><div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>&#160; };</div><div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>&#160;</div><div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>&#160; <span class="keyword">struct </span>PiecewiseLinearCost {</div><div class="line"><a name="l02367"></a><span class="lineno"> 2367</span>&#160; PiecewiseLinearCost() : var(nullptr), cost(nullptr) {}</div><div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>&#160; IntVar* var;</div><div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>&#160; std::unique_ptr&lt;PiecewiseLinearFunction&gt; cost;</div><div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>&#160; };</div><div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>&#160;</div><div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>&#160; <span class="keyword">class </span>SelfBased {};</div><div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>&#160; RoutingDimension(<a class="code" href="classoperations__research_1_1RoutingDimension.html#ab7aef297f0c654af26dc7108c9ee6c69">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingDimension.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, std::vector&lt;int64&gt; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a5c95c1b0049cb5dddbd4995ad8cd5b4e">vehicle_capacities</a>,</div><div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>&#160; <span class="keyword">const</span> std::string&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#ad8227ba86a01f26e4f173cd5e219d5d1">name</a>,</div><div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>&#160; <span class="keyword">const</span> RoutingDimension* <a class="code" href="classoperations__research_1_1RoutingDimension.html#a717341229f16012899360656534bba50">base_dimension</a>);</div><div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>&#160; RoutingDimension(<a class="code" href="classoperations__research_1_1RoutingDimension.html#ab7aef297f0c654af26dc7108c9ee6c69">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingDimension.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, std::vector&lt;int64&gt; <a class="code" href="classoperations__research_1_1RoutingDimension.html#a5c95c1b0049cb5dddbd4995ad8cd5b4e">vehicle_capacities</a>,</div><div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>&#160; <span class="keyword">const</span> std::string&amp; <a class="code" href="classoperations__research_1_1RoutingDimension.html#ad8227ba86a01f26e4f173cd5e219d5d1">name</a>, SelfBased);</div><div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>&#160; <span class="keywordtype">void</span> Initialize(<span class="keyword">const</span> std::vector&lt;int&gt;&amp; transit_evaluators,</div><div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; state_dependent_transit_evaluators,</div><div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>&#160; int64 slack_max);</div><div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>&#160; <span class="keywordtype">void</span> InitializeCumuls();</div><div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>&#160; <span class="keywordtype">void</span> InitializeTransits(</div><div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; transit_evaluators,</div><div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; state_dependent_transit_evaluators,</div><div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>&#160; int64 slack_max);</div><div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>&#160; <span class="keywordtype">void</span> InitializeTransitVariables(int64 slack_max);</div><div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>&#160; <span class="keywordtype">void</span> SetupCumulVarSoftUpperBoundCosts(</div><div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>&#160; std::vector&lt;IntVar*&gt;* cost_elements) <span class="keyword">const</span>;</div><div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>&#160; <span class="keywordtype">void</span> SetupCumulVarSoftLowerBoundCosts(</div><div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>&#160; std::vector&lt;IntVar*&gt;* cost_elements) <span class="keyword">const</span>;</div><div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>&#160; <span class="keywordtype">void</span> SetupCumulVarPiecewiseLinearCosts(</div><div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>&#160; std::vector&lt;IntVar*&gt;* cost_elements) <span class="keyword">const</span>;</div><div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>&#160; <span class="keywordtype">void</span> SetupGlobalSpanCost(std::vector&lt;IntVar*&gt;* cost_elements) <span class="keyword">const</span>;</div><div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>&#160; <span class="keywordtype">void</span> SetupSlackAndDependentTransitCosts() <span class="keyword">const</span>;</div><div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>&#160; <span class="keywordtype">void</span> CloseModel(<span class="keywordtype">bool</span> use_light_propagation);</div><div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>&#160;</div><div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>&#160; <span class="keywordtype">void</span> SetOffsetForGlobalOptimizer(int64 offset) {</div><div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>&#160; global_optimizer_offset_ = std::max(<a class="code" href="namespaceoperations__research.html#a009f247167f32509baf749083e4bc984">Zero</a>(), offset);</div><div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>&#160; }</div><div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>&#160; <span class="keywordtype">void</span> SetVehicleOffsetsForLocalOptimizer(std::vector&lt;int64&gt; offsets) {</div><div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>&#160; std::transform(offsets.begin(), offsets.end(), offsets.begin(),</div><div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>&#160; [](int64 offset) { <span class="keywordflow">return</span> std::max(<a class="code" href="namespaceoperations__research.html#a009f247167f32509baf749083e4bc984">Zero</a>(), offset); });</div><div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>&#160; local_optimizer_offset_for_vehicle_ = std::move(offsets);</div><div class="line"><a name="l02411"></a><span class="lineno"> 2411</span>&#160; }</div><div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>&#160;</div><div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>&#160; std::vector&lt;IntVar*&gt; cumuls_;</div><div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>&#160; std::vector&lt;SortedDisjointIntervalList&gt; forbidden_intervals_;</div><div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>&#160; std::vector&lt;IntVar*&gt; capacity_vars_;</div><div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt; vehicle_capacities_;</div><div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>&#160; std::vector&lt;IntVar*&gt; transits_;</div><div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>&#160; std::vector&lt;IntVar*&gt; fixed_transits_;</div><div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>&#160; std::vector&lt;int&gt; class_evaluators_;</div><div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>&#160; std::vector&lt;int64&gt; vehicle_to_class_;</div><div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>&#160; ReverseArcListGraph&lt;int, int&gt; path_precedence_graph_;</div><div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>&#160; <span class="comment">// For every {first_node, second_node, offset} element in node_precedences_,</span></div><div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>&#160; <span class="comment">// if both first_node and second_node are performed, then</span></div><div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>&#160; <span class="comment">// cumuls_[second_node] must be greater than (or equal to)</span></div><div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>&#160; <span class="comment">// cumuls_[first_node] + offset.</span></div><div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>&#160; std::vector&lt;NodePrecedence&gt; node_precedences_;</div><div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>&#160;</div><div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>&#160; <span class="comment">// The transits of a dimension may depend on its cumuls or the cumuls of</span></div><div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>&#160; <span class="comment">// another dimension. There can be no cycles, except for self loops, a</span></div><div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>&#160; <span class="comment">// typical example for this is a time dimension.</span></div><div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>&#160; <span class="keyword">const</span> RoutingDimension* <span class="keyword">const</span> base_dimension_;</div><div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>&#160;</div><div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>&#160; <span class="comment">// Values in state_dependent_class_evaluators_ correspond to the evaluators</span></div><div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>&#160; <span class="comment">// in RoutingModel::state_dependent_transit_evaluators_ for each vehicle</span></div><div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>&#160; <span class="comment">// class.</span></div><div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>&#160; std::vector&lt;int&gt; state_dependent_class_evaluators_;</div><div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>&#160; std::vector&lt;int64&gt; state_dependent_vehicle_to_class_;</div><div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>&#160;</div><div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>&#160; <span class="comment">// For each pickup/delivery pair_index for which limits have been set,</span></div><div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>&#160; <span class="comment">// pickup_to_delivery_limits_per_pair_index_[pair_index] contains the</span></div><div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>&#160; <span class="comment">// PickupToDeliveryLimitFunction for the pickup and deliveries in this pair.</span></div><div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>&#160; std::vector&lt;PickupToDeliveryLimitFunction&gt;</div><div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>&#160; pickup_to_delivery_limits_per_pair_index_;</div><div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>&#160;</div><div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>&#160; <span class="comment">// Used if some vehicle has breaks in this dimension, typically time.</span></div><div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>&#160; <span class="keywordtype">bool</span> break_constraints_are_initialized_ = <span class="keyword">false</span>;</div><div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>&#160; std::vector&lt;std::vector&lt;IntervalVar*&gt; &gt; vehicle_break_intervals_;</div><div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>&#160; std::vector&lt;std::vector&lt;std::pair&lt;int64, int64&gt; &gt; &gt;</div><div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>&#160; vehicle_break_distance_duration_;</div><div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>&#160; <span class="comment">// For each vehicle, stores the part of travel that is made directly</span></div><div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>&#160; <span class="comment">// after (before) the departure (arrival) node of the travel.</span></div><div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>&#160; <span class="comment">// These parts of the travel are non-interruptible, in particular by a break.</span></div><div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>&#160; std::vector&lt;int&gt; vehicle_pre_travel_evaluators_;</div><div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>&#160; std::vector&lt;int&gt; vehicle_post_travel_evaluators_;</div><div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>&#160;</div><div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>&#160; std::vector&lt;IntVar*&gt; slacks_;</div><div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>&#160; std::vector&lt;IntVar*&gt; dependent_transits_;</div><div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>&#160; std::vector&lt;int64&gt; vehicle_span_upper_bounds_;</div><div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>&#160; int64 global_span_cost_coefficient_;</div><div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>&#160; std::vector&lt;int64&gt; vehicle_span_cost_coefficients_;</div><div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>&#160; std::vector&lt;SoftBound&gt; cumul_var_soft_upper_bound_;</div><div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>&#160; std::vector&lt;SoftBound&gt; cumul_var_soft_lower_bound_;</div><div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>&#160; std::vector&lt;PiecewiseLinearCost&gt; cumul_var_piecewise_linear_cost_;</div><div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>&#160; <a class="code" href="classoperations__research_1_1RoutingDimension.html#ab7aef297f0c654af26dc7108c9ee6c69">RoutingModel</a>* <span class="keyword">const</span> model_;</div><div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>&#160; <span class="keyword">const</span> std::string name_;</div><div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>&#160; int64 global_optimizer_offset_;</div><div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>&#160; std::vector&lt;int64&gt; local_optimizer_offset_for_vehicle_;</div><div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>&#160; std::unique_ptr&lt;SimpleBoundCosts&gt; vehicle_soft_span_upper_bound_;</div><div class="line"><a name="l02476"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#ab7aef297f0c654af26dc7108c9ee6c69"> 2476</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>;</div><div class="line"><a name="l02477"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingDimension.html#a00141bd90e555aea59a9e98cfbcda6eb"> 2477</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1RoutingDimension.html#a00141bd90e555aea59a9e98cfbcda6eb">RoutingModelInspector</a>;</div><div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>&#160;</div><div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>&#160; DISALLOW_COPY_AND_ASSIGN(<a class="code" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>);</div><div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>&#160;};</div><div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>&#160;</div><div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>&#160;<span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1SweepArranger.html">SweepArranger</a> {</div><div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classoperations__research_1_1SweepArranger.html#a3dfcea8a02b5d4ec8576e41859e92b28">SweepArranger</a>(<span class="keyword">const</span> std::vector&lt;std::pair&lt;int64, int64&gt;&gt;&amp; points);</div><div class="line"><a name="l02488"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SweepArranger.html#af531dae235dc7c9501a428a8ddeff432"> 2488</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classoperations__research_1_1SweepArranger.html#af531dae235dc7c9501a428a8ddeff432">~SweepArranger</a>() {}</div><div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1SweepArranger.html#a133670b40a6a45c547654d9107a4a603">ArrangeIndices</a>(std::vector&lt;int64&gt;* indices);</div><div class="line"><a name="l02490"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SweepArranger.html#abdec0f71a4b3263e9ed49e1d2b4726f2"> 2490</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1SweepArranger.html#abdec0f71a4b3263e9ed49e1d2b4726f2">SetSectors</a>(<span class="keywordtype">int</span> sectors) { sectors_ = sectors; }</div><div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>&#160;</div><div class="line"><a name="l02492"></a><span class="lineno"> 2492</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>&#160; std::vector&lt;int&gt; coordinates_;</div><div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>&#160; <span class="keywordtype">int</span> sectors_;</div><div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>&#160;</div><div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>&#160; DISALLOW_COPY_AND_ASSIGN(<a class="code" href="classoperations__research_1_1SweepArranger.html">SweepArranger</a>);</div><div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>&#160;};</div><div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>&#160;</div><div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>&#160;DecisionBuilder* <a class="code" href="namespaceoperations__research.html#a4e907b3668a07c9fa3f62d938f6cb855">MakeSetValuesFromTargets</a>(Solver* solver,</div><div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>&#160; std::vector&lt;IntVar*&gt; variables,</div><div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>&#160; std::vector&lt;int64&gt; targets);</div><div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>&#160;</div><div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>&#160;</div><div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>&#160;<span class="comment">// TODO(user): Eventually move this to the core CP solver library</span></div><div class="line"><a name="l02521"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html"> 2521</a></span>&#160;<span class="comment"></span><span class="keyword">class </span><a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html">IntVarFilteredDecisionBuilder</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1DecisionBuilder.html">DecisionBuilder</a> {</div><div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>&#160; <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a7d881a373c0868a72547acf1a188cd73">IntVarFilteredDecisionBuilder</a>(<a class="code" href="classoperations__research_1_1Solver.html">Solver</a>* solver,</div><div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>&#160; <span class="keyword">const</span> std::vector&lt;IntVar*&gt;&amp; vars,</div><div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters);</div><div class="line"><a name="l02526"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a7108359d8e6c5360f554581971ed253f"> 2526</a></span>&#160; <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a7108359d8e6c5360f554581971ed253f">~IntVarFilteredDecisionBuilder</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>&#160; <a class="code" href="classoperations__research_1_1Decision.html">Decision</a>* <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a1e1ecd6352078a36702fb5b00372ae11">Next</a>(<a class="code" href="classoperations__research_1_1Solver.html">Solver</a>* solver) <span class="keyword">override</span>;</div><div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a473ec32920aa6f5357e511149a960164">BuildSolution</a>() = 0;</div><div class="line"><a name="l02532"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#ab9cbb9e796806062460be9c7a4033e80"> 2532</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#ab9cbb9e796806062460be9c7a4033e80">number_of_decisions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> number_of_decisions_; }</div><div class="line"><a name="l02533"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#ab35b677ad56dbdc2521d9bb28a68f566"> 2533</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#ab35b677ad56dbdc2521d9bb28a68f566">number_of_rejects</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> number_of_rejects_; }</div><div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>&#160;</div><div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l02537"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#aa1103b3a47f7bf316a81ed91ba3e4657"> 2537</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#aa1103b3a47f7bf316a81ed91ba3e4657">InitializeSolution</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a44c78e17dec2b3af95f850baaee2683a">Commit</a>();</div><div class="line"><a name="l02543"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a64b348f1f572b9ea470c453a027e6d25"> 2543</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a64b348f1f572b9ea470c453a027e6d25">StopSearch</a>() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l02546"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#ac20998bdd4fc9d5433c82184b4f56925"> 2546</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#ac20998bdd4fc9d5433c82184b4f56925">SetValue</a>(int64 index, int64 value) {</div><div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>&#160; <span class="keywordflow">if</span> (!is_in_delta_[index]) {</div><div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>&#160; delta_-&gt;<a class="code" href="classoperations__research_1_1Assignment.html#ae7e79ac5cad1bf2d1960f5f3c18bc575">FastAdd</a>(vars_[index])-&gt;<a class="code" href="classoperations__research_1_1IntVarElement.html#ace66161c2f260353b4f03ef33455cd2f">SetValue</a>(value);</div><div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>&#160; delta_indices_.push_back(index);</div><div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>&#160; is_in_delta_[index] = <span class="keyword">true</span>;</div><div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>&#160; } <span class="keywordflow">else</span> {</div><div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>&#160; delta_-&gt;<a class="code" href="classoperations__research_1_1Assignment.html#ac462499a646c751d153e599b22f1d782">SetValue</a>(vars_[index], value);</div><div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>&#160; }</div><div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>&#160; }</div><div class="line"><a name="l02557"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a43cbb017015c746f350a83701d7f8b73"> 2557</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a43cbb017015c746f350a83701d7f8b73">Value</a>(int64 index)<span class="keyword"> const </span>{</div><div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>&#160; <span class="keywordflow">return</span> assignment_-&gt;<a class="code" href="classoperations__research_1_1Assignment.html#a1f16f5a2e5767013b620efd255fb35ea">IntVarContainer</a>().<a class="code" href="classoperations__research_1_1AssignmentContainer.html#a907ce7f41938cc755b6b1f4a55b5cd27">Element</a>(index).<a class="code" href="classoperations__research_1_1IntVarElement.html#aeabf4572ab5bf48ec3e07660c9587385">Value</a>();</div><div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>&#160; }</div><div class="line"><a name="l02561"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a3bf66f3f1119ea5c0f57beb231089c0e"> 2561</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a3bf66f3f1119ea5c0f57beb231089c0e">Contains</a>(int64 index)<span class="keyword"> const </span>{</div><div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>&#160; <span class="keywordflow">return</span> assignment_-&gt;<a class="code" href="classoperations__research_1_1Assignment.html#a1f16f5a2e5767013b620efd255fb35ea">IntVarContainer</a>().<a class="code" href="classoperations__research_1_1AssignmentContainer.html#a907ce7f41938cc755b6b1f4a55b5cd27">Element</a>(index).<a class="code" href="classoperations__research_1_1IntVarElement.html#a8052ccc3aba839f3befd553cc05b85a0">Var</a>() != <span class="keyword">nullptr</span>;</div><div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>&#160; }</div><div class="line"><a name="l02566"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a24926108b770033792d015cb86aeffb3"> 2566</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a24926108b770033792d015cb86aeffb3">Size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> vars_.size(); }</div><div class="line"><a name="l02568"></a><span class="lineno"><a class="line" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a609a96f8163121290267059fc6f27a4a"> 2568</a></span>&#160; <a class="code" href="classoperations__research_1_1IntVar.html">IntVar</a>* <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a609a96f8163121290267059fc6f27a4a">Var</a>(int64 index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> vars_[index]; }</div><div class="line"><a name="l02569"></a><span class="lineno"> 2569</span>&#160;</div><div class="line"><a name="l02570"></a><span class="lineno"> 2570</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02572"></a><span class="lineno"> 2572</span>&#160; <span class="keywordtype">void</span> SynchronizeFilters();</div><div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>&#160; <span class="keywordtype">bool</span> FilterAccept();</div><div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>&#160;</div><div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>&#160; <span class="keyword">const</span> std::vector&lt;IntVar*&gt; vars_;</div><div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <span class="keyword">const</span> assignment_;</div><div class="line"><a name="l02579"></a><span class="lineno"> 2579</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <span class="keyword">const</span> delta_;</div><div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>&#160; std::vector&lt;int&gt; delta_indices_;</div><div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>&#160; std::vector&lt;bool&gt; is_in_delta_;</div><div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <span class="keyword">const</span> empty_;</div><div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>&#160; <a class="code" href="classoperations__research_1_1LocalSearchFilterManager.html">LocalSearchFilterManager</a> filter_manager_;</div><div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>&#160; int64 number_of_decisions_;</div><div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>&#160; int64 number_of_rejects_;</div><div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>&#160;};</div><div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>&#160;</div><div class="line"><a name="l02590"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html"> 2590</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html">RoutingFilteredDecisionBuilder</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html">IntVarFilteredDecisionBuilder</a> {</div><div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>&#160; <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a01f12df188ad5ce3fd3942661683fe7a">RoutingFilteredDecisionBuilder</a>(</div><div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters);</div><div class="line"><a name="l02594"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a89e300dadd957cd6324963ed5ff5c103"> 2594</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a89e300dadd957cd6324963ed5ff5c103">~RoutingFilteredDecisionBuilder</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l02595"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e"> 2595</a></span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> model_; }</div><div class="line"><a name="l02597"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a2ace3be57d4d81121e8ebbd3642052c0"> 2597</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a2ace3be57d4d81121e8ebbd3642052c0">GetStartChainEnd</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> start_chain_ends_[vehicle]; }</div><div class="line"><a name="l02599"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a8a3ae6ba0baf1765da1a2f4a6cecc730"> 2599</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a8a3ae6ba0baf1765da1a2f4a6cecc730">GetEndChainStart</a>(<span class="keywordtype">int</span> vehicle)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> end_chain_starts_[vehicle]; }</div><div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#aa0ae711364aadabc5365babc40a79fed">MakeDisjunctionNodesUnperformed</a>(int64 node);</div><div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a97049801609b8cb68c0428970f916fd4">MakeUnassignedNodesUnperformed</a>();</div><div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>&#160;</div><div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l02607"></a><span class="lineno"><a class="line" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a95f347f8419578337202450136ca78be"> 2607</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a95f347f8419578337202450136ca78be">StopSearch</a>()<span class="keyword"> override </span>{ <span class="keywordflow">return</span> model_-&gt;<a class="code" href="classoperations__research_1_1RoutingModel.html#a3f5d70fe48cb54cbc5d8f6bba55b007d">CheckLimit</a>(); }</div><div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>&#160;</div><div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>&#160; <span class="keywordtype">bool</span> InitializeSolution() <span class="keyword">override</span>;</div><div class="line"><a name="l02612"></a><span class="lineno"> 2612</span>&#160;</div><div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <span class="keyword">const</span> model_;</div><div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>&#160; std::vector&lt;int64&gt; start_chain_ends_;</div><div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>&#160; std::vector&lt;int64&gt; end_chain_starts_;</div><div class="line"><a name="l02616"></a><span class="lineno"> 2616</span>&#160;};</div><div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>&#160;</div><div class="line"><a name="l02618"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html"> 2618</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html">CheapestInsertionFilteredDecisionBuilder</a></div><div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>&#160; : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html">RoutingFilteredDecisionBuilder</a> {</div><div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02622"></a><span class="lineno"> 2622</span>&#160; <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#af78632ced2f48bdc3f377bddee029370">CheapestInsertionFilteredDecisionBuilder</a>(</div><div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, std::function&lt;int64(int64, int64, int64)&gt; evaluator,</div><div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>&#160; std::function&lt;int64(int64)&gt; penalty_evaluator,</div><div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters);</div><div class="line"><a name="l02626"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a301de4b3e9f309a93bd6e42a5f79e5dc"> 2626</a></span>&#160; <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a301de4b3e9f309a93bd6e42a5f79e5dc">~CheapestInsertionFilteredDecisionBuilder</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l02627"></a><span class="lineno"> 2627</span>&#160;</div><div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l02629"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#aa2099867a858f3da90d9e26a1dc88b4d"> 2629</a></span>&#160; <span class="keyword">typedef</span> std::pair&lt;int64, int64&gt; <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#aa2099867a858f3da90d9e26a1dc88b4d">ValuedPosition</a>;</div><div class="line"><a name="l02630"></a><span class="lineno"><a class="line" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html"> 2630</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html">StartEndValue</a> {</div><div class="line"><a name="l02631"></a><span class="lineno"><a class="line" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a3b397c04a34b9ac7392257939f90b1bb"> 2631</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a3b397c04a34b9ac7392257939f90b1bb">distance</a>;</div><div class="line"><a name="l02632"></a><span class="lineno"><a class="line" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a96b8f0fa9ab1e12aed840c7293becbf7"> 2632</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a96b8f0fa9ab1e12aed840c7293becbf7">vehicle</a>;</div><div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>&#160;</div><div class="line"><a name="l02634"></a><span class="lineno"><a class="line" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a7c4b3e8b0b9144aa29c94fc54c74d045"> 2634</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a7c4b3e8b0b9144aa29c94fc54c74d045">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html">StartEndValue</a>&amp; other)<span class="keyword"> const </span>{</div><div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>&#160; <span class="keywordflow">return</span> std::tie(<a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a3b397c04a34b9ac7392257939f90b1bb">distance</a>, <a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a96b8f0fa9ab1e12aed840c7293becbf7">vehicle</a>) &lt;</div><div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>&#160; std::tie(other.<a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a3b397c04a34b9ac7392257939f90b1bb">distance</a>, other.<a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a96b8f0fa9ab1e12aed840c7293becbf7">vehicle</a>);</div><div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>&#160; }</div><div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>&#160; };</div><div class="line"><a name="l02639"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#af10aed726a9b750452a6fdeae3f00feb"> 2639</a></span>&#160; <span class="keyword">typedef</span> std::pair&lt;<a class="code" href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html">StartEndValue</a>, <span class="comment">/*seed_node*/</span> <span class="keywordtype">int</span>&gt; <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#af10aed726a9b750452a6fdeae3f00feb">Seed</a>;</div><div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>&#160;</div><div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>&#160; std::vector&lt;std::vector&lt;StartEndValue&gt; &gt;</div><div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>&#160; <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a171d443549aa9ccd4abfbb4724378b7f">ComputeStartEndDistanceForVehicles</a>(<span class="keyword">const</span> std::vector&lt;int&gt;&amp; vehicles);</div><div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>&#160;</div><div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Queue&gt;</div><div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a69d38e86eb8fc2fa4df0d8839c8dd5a9">InitializePriorityQueue</a>(</div><div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>&#160; std::vector&lt;std::vector&lt;StartEndValue&gt; &gt;* start_end_distances_per_node,</div><div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>&#160; Queue* priority_queue);</div><div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>&#160;</div><div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a40574fa8ec102d52f650a616d7fe6c39">InsertBetween</a>(int64 node, int64 predecessor, int64 successor);</div><div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#aafc4ebf202cabd64f7854c274f425866">AppendEvaluatedPositionsAfter</a>(</div><div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>&#160; int64 node_to_insert, int64 start, int64 next_after_start, int64 vehicle,</div><div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>&#160; std::vector&lt;ValuedPosition&gt;* valued_positions);</div><div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>&#160; int64 <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#ab2b4f136e88ea9aad2921aefb2434bad">GetUnperformedValue</a>(int64 node_to_insert) <span class="keyword">const</span>;</div><div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>&#160;</div><div class="line"><a name="l02676"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a3c4943383b7473a073e387f40cc0fb05"> 2676</a></span>&#160; std::function&lt;int64(int64, int64, int64)&gt; <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a3c4943383b7473a073e387f40cc0fb05">evaluator_</a>;</div><div class="line"><a name="l02677"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a2b48bfb0d3df32b08dbe0aab5a251f8b"> 2677</a></span>&#160; std::function&lt;int64(int64)&gt; <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a2b48bfb0d3df32b08dbe0aab5a251f8b">penalty_evaluator_</a>;</div><div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>&#160;};</div><div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>&#160;</div><div class="line"><a name="l02687"></a><span class="lineno"><a class="line" href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html"> 2687</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html">GlobalCheapestInsertionFilteredDecisionBuilder</a></div><div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>&#160; : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html">CheapestInsertionFilteredDecisionBuilder</a> {</div><div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>&#160; <a class="code" href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#a575867d8d2900effa5d0f749e49e67e5">GlobalCheapestInsertionFilteredDecisionBuilder</a>(</div><div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, std::function&lt;int64(int64, int64, int64)&gt; evaluator,</div><div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>&#160; std::function&lt;int64(int64)&gt; penalty_evaluator,</div><div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters, <span class="keywordtype">bool</span> is_sequential,</div><div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>&#160; <span class="keywordtype">double</span> farthest_seeds_ratio, <span class="keywordtype">double</span> neighbors_ratio);</div><div class="line"><a name="l02696"></a><span class="lineno"><a class="line" href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#ab855e6e0a10d3c8c07191eb33da9e7e8"> 2696</a></span>&#160; <a class="code" href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#ab855e6e0a10d3c8c07191eb33da9e7e8">~GlobalCheapestInsertionFilteredDecisionBuilder</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">BuildSolution</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l02698"></a><span class="lineno"><a class="line" href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91"> 2698</a></span>&#160; std::string <a class="code" href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">DebugString</a>()<span class="keyword"> const override </span>{</div><div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;GlobalCheapestInsertionFilteredDecisionBuilder&quot;</span>;</div><div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>&#160; }</div><div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>&#160;</div><div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>&#160; <span class="keyword">class </span>PairEntry;</div><div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>&#160; <span class="keyword">class </span>NodeEntry;</div><div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>&#160; <span class="keyword">typedef</span> absl::flat_hash_set&lt;PairEntry*&gt; PairEntries;</div><div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>&#160; <span class="keyword">typedef</span> absl::flat_hash_set&lt;NodeEntry*&gt; NodeEntries;</div><div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>&#160;</div><div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>&#160; <span class="keywordtype">void</span> InsertPairs();</div><div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>&#160;</div><div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>&#160; <span class="keywordtype">void</span> InsertNodesOnRoutes(<span class="keyword">const</span> std::vector&lt;int&gt;&amp; nodes,</div><div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; vehicles);</div><div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>&#160;</div><div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>&#160; <span class="keywordtype">void</span> SequentialInsertNodes(<span class="keyword">const</span> std::vector&lt;int&gt;&amp; nodes);</div><div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>&#160;</div><div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>&#160; <span class="keywordtype">void</span> DetectUsedVehicles(std::vector&lt;bool&gt;* is_vehicle_used,</div><div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>&#160; std::vector&lt;int&gt;* used_vehicles,</div><div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>&#160; std::vector&lt;int&gt;* unused_vehicles);</div><div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>&#160;</div><div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>&#160; <span class="keywordtype">void</span> InsertFarthestNodesAsSeeds();</div><div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>&#160;</div><div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Queue&gt;</div><div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>&#160; <span class="keywordtype">int</span> InsertSeedNode(</div><div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>&#160; std::vector&lt;std::vector&lt;StartEndValue&gt;&gt;* start_end_distances_per_node,</div><div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>&#160; Queue* priority_queue, std::vector&lt;bool&gt;* is_vehicle_used);</div><div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>&#160;</div><div class="line"><a name="l02761"></a><span class="lineno"> 2761</span>&#160; <span class="keywordtype">void</span> InitializePairPositions(</div><div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>&#160; AdjustablePriorityQueue&lt;PairEntry&gt;* priority_queue,</div><div class="line"><a name="l02763"></a><span class="lineno"> 2763</span>&#160; std::vector&lt;PairEntries&gt;* pickup_to_entries,</div><div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>&#160; std::vector&lt;PairEntries&gt;* delivery_to_entries);</div><div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>&#160; <span class="keywordtype">void</span> UpdatePairPositions(<span class="keywordtype">int</span> vehicle, int64 insert_after,</div><div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>&#160; AdjustablePriorityQueue&lt;PairEntry&gt;* priority_queue,</div><div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>&#160; std::vector&lt;PairEntries&gt;* pickup_to_entries,</div><div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>&#160; std::vector&lt;PairEntries&gt;* delivery_to_entries) {</div><div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>&#160; UpdatePickupPositions(vehicle, insert_after, priority_queue,</div><div class="line"><a name="l02772"></a><span class="lineno"> 2772</span>&#160; pickup_to_entries, delivery_to_entries);</div><div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>&#160; UpdateDeliveryPositions(vehicle, insert_after, priority_queue,</div><div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>&#160; pickup_to_entries, delivery_to_entries);</div><div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>&#160; }</div><div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>&#160; <span class="keywordtype">void</span> UpdatePickupPositions(<span class="keywordtype">int</span> vehicle, int64 pickup_insert_after,</div><div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>&#160; AdjustablePriorityQueue&lt;PairEntry&gt;* priority_queue,</div><div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>&#160; std::vector&lt;PairEntries&gt;* pickup_to_entries,</div><div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>&#160; std::vector&lt;PairEntries&gt;* delivery_to_entries);</div><div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>&#160; <span class="keywordtype">void</span> UpdateDeliveryPositions(</div><div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>&#160; <span class="keywordtype">int</span> vehicle, int64 delivery_insert_after,</div><div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>&#160; AdjustablePriorityQueue&lt;PairEntry&gt;* priority_queue,</div><div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>&#160; std::vector&lt;PairEntries&gt;* pickup_to_entries,</div><div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>&#160; std::vector&lt;PairEntries&gt;* delivery_to_entries);</div><div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>&#160; <span class="keywordtype">void</span> DeletePairEntry(PairEntry* entry,</div><div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>&#160; AdjustablePriorityQueue&lt;PairEntry&gt;* priority_queue,</div><div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>&#160; std::vector&lt;PairEntries&gt;* pickup_to_entries,</div><div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>&#160; std::vector&lt;PairEntries&gt;* delivery_to_entries);</div><div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>&#160; <span class="keywordtype">void</span> InitializePositions(<span class="keyword">const</span> std::vector&lt;int&gt;&amp; nodes,</div><div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>&#160; AdjustablePriorityQueue&lt;NodeEntry&gt;* priority_queue,</div><div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>&#160; std::vector&lt;NodeEntries&gt;* position_to_node_entries,</div><div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>&#160; <span class="keyword">const</span> std::vector&lt;int&gt;&amp; vehicles);</div><div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>&#160; <span class="keywordtype">void</span> UpdatePositions(<span class="keyword">const</span> std::vector&lt;int&gt;&amp; nodes, <span class="keywordtype">int</span> vehicle,</div><div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>&#160; int64 insert_after,</div><div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>&#160; AdjustablePriorityQueue&lt;NodeEntry&gt;* priority_queue,</div><div class="line"><a name="l02806"></a><span class="lineno"> 2806</span>&#160; std::vector&lt;NodeEntries&gt;* node_entries);</div><div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>&#160; <span class="keywordtype">void</span> DeleteNodeEntry(NodeEntry* entry,</div><div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>&#160; AdjustablePriorityQueue&lt;NodeEntry&gt;* priority_queue,</div><div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>&#160; std::vector&lt;NodeEntries&gt;* node_entries);</div><div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>&#160;</div><div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>&#160; <span class="keywordtype">void</span> AddNeighborForCostClass(<span class="keywordtype">int</span> cost_class, int64 node_index,</div><div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>&#160; int64 neighbor_index, <span class="keywordtype">bool</span> neighbor_is_pickup,</div><div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>&#160; <span class="keywordtype">bool</span> neighbor_is_delivery);</div><div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>&#160;</div><div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>&#160; <span class="keywordtype">bool</span> IsNeighborForCostClass(<span class="keywordtype">int</span> cost_class, int64 node_index,</div><div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>&#160; int64 neighbor_index) <span class="keyword">const</span>;</div><div class="line"><a name="l02825"></a><span class="lineno"> 2825</span>&#160;</div><div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>&#160; <span class="keyword">const</span> absl::flat_hash_set&lt;int64&gt;&amp; GetPickupNeighborsOfNodeForCostClass(</div><div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>&#160; <span class="keywordtype">int</span> cost_class, int64 node_index) {</div><div class="line"><a name="l02829"></a><span class="lineno"> 2829</span>&#160; <span class="keywordflow">if</span> (neighbors_ratio_ == 1) {</div><div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>&#160; <span class="keywordflow">return</span> pickup_nodes_;</div><div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>&#160; }</div><div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>&#160; <span class="keywordflow">return</span> node_index_to_pickup_neighbors_by_cost_class_[node_index]</div><div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>&#160; [cost_class];</div><div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>&#160; }</div><div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>&#160;</div><div class="line"><a name="l02837"></a><span class="lineno"> 2837</span>&#160; <span class="keyword">const</span> absl::flat_hash_set&lt;int64&gt;&amp; GetDeliveryNeighborsOfNodeForCostClass(</div><div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>&#160; <span class="keywordtype">int</span> cost_class, int64 node_index) {</div><div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>&#160; <span class="keywordflow">if</span> (neighbors_ratio_ == 1) {</div><div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>&#160; <span class="keywordflow">return</span> delivery_nodes_;</div><div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>&#160; }</div><div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>&#160; <span class="keywordflow">return</span> node_index_to_delivery_neighbors_by_cost_class_[node_index]</div><div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>&#160; [cost_class];</div><div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>&#160; }</div><div class="line"><a name="l02845"></a><span class="lineno"> 2845</span>&#160;</div><div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>&#160; <span class="keyword">const</span> <span class="keywordtype">bool</span> is_sequential_;</div><div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> farthest_seeds_ratio_;</div><div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> neighbors_ratio_;</div><div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>&#160;</div><div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>&#160; std::vector&lt;std::vector&lt;absl::flat_hash_set&lt;int64&gt; &gt; &gt;</div><div class="line"><a name="l02852"></a><span class="lineno"> 2852</span>&#160; node_index_to_single_neighbors_by_cost_class_;</div><div class="line"><a name="l02853"></a><span class="lineno"> 2853</span>&#160; std::vector&lt;std::vector&lt;absl::flat_hash_set&lt;int64&gt; &gt; &gt;</div><div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>&#160; node_index_to_pickup_neighbors_by_cost_class_;</div><div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>&#160; std::vector&lt;std::vector&lt;absl::flat_hash_set&lt;int64&gt; &gt; &gt;</div><div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>&#160; node_index_to_delivery_neighbors_by_cost_class_;</div><div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>&#160;</div><div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>&#160; absl::flat_hash_set&lt;int64&gt; pickup_nodes_;</div><div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>&#160; absl::flat_hash_set&lt;int64&gt; delivery_nodes_;</div><div class="line"><a name="l02864"></a><span class="lineno"> 2864</span>&#160;};</div><div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>&#160;</div><div class="line"><a name="l02871"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html"> 2871</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html">LocalCheapestInsertionFilteredDecisionBuilder</a></div><div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>&#160; : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html">CheapestInsertionFilteredDecisionBuilder</a> {</div><div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>&#160; <a class="code" href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#a9ca3551a421e9710f6a211d304a696ae">LocalCheapestInsertionFilteredDecisionBuilder</a>(</div><div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, std::function&lt;int64(int64, int64, int64)&gt; evaluator,</div><div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters);</div><div class="line"><a name="l02878"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#a1ed186a6a830772c86d8e0ac47c436b3"> 2878</a></span>&#160; <a class="code" href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#a1ed186a6a830772c86d8e0ac47c436b3">~LocalCheapestInsertionFilteredDecisionBuilder</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">BuildSolution</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l02880"></a><span class="lineno"><a class="line" href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91"> 2880</a></span>&#160; std::string <a class="code" href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">DebugString</a>()<span class="keyword"> const override </span>{</div><div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;LocalCheapestInsertionFilteredDecisionBuilder&quot;</span>;</div><div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>&#160; }</div><div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>&#160;</div><div class="line"><a name="l02884"></a><span class="lineno"> 2884</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>&#160; <span class="keywordtype">void</span> ComputeEvaluatorSortedPositions(int64 node,</div><div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>&#160; std::vector&lt;int64&gt;* sorted_positions);</div><div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>&#160; <span class="keywordtype">void</span> ComputeEvaluatorSortedPositionsOnRouteAfter(</div><div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>&#160; int64 node, int64 start, int64 next_after_start,</div><div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>&#160; std::vector&lt;int64&gt;* sorted_positions);</div><div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>&#160;};</div><div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>&#160;</div><div class="line"><a name="l02903"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html"> 2903</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html">CheapestAdditionFilteredDecisionBuilder</a></div><div class="line"><a name="l02904"></a><span class="lineno"> 2904</span>&#160; : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html">RoutingFilteredDecisionBuilder</a> {</div><div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>&#160; <a class="code" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html#a6f103d0849407ca9db0d863da4fa8163">CheapestAdditionFilteredDecisionBuilder</a>(</div><div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters);</div><div class="line"><a name="l02908"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html#aec1de2c66b697f20f589f87c27a2a7c0"> 2908</a></span>&#160; <a class="code" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html#aec1de2c66b697f20f589f87c27a2a7c0">~CheapestAdditionFilteredDecisionBuilder</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l02909"></a><span class="lineno"> 2909</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">BuildSolution</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>&#160;</div><div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02912"></a><span class="lineno"> 2912</span>&#160; <span class="keyword">class </span>PartialRoutesAndLargeVehicleIndicesFirst {</div><div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>&#160; <span class="keyword">explicit</span> PartialRoutesAndLargeVehicleIndicesFirst(</div><div class="line"><a name="l02915"></a><span class="lineno"> 2915</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html">CheapestAdditionFilteredDecisionBuilder</a>&amp; builder)</div><div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>&#160; : builder_(builder) {}</div><div class="line"><a name="l02917"></a><span class="lineno"> 2917</span>&#160; <span class="keywordtype">bool</span> operator()(<span class="keywordtype">int</span> vehicle1, <span class="keywordtype">int</span> vehicle2) <span class="keyword">const</span>;</div><div class="line"><a name="l02918"></a><span class="lineno"> 2918</span>&#160;</div><div class="line"><a name="l02919"></a><span class="lineno"> 2919</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02920"></a><span class="lineno"> 2920</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html#a6f103d0849407ca9db0d863da4fa8163">CheapestAdditionFilteredDecisionBuilder</a>&amp; builder_;</div><div class="line"><a name="l02921"></a><span class="lineno"> 2921</span>&#160; };</div><div class="line"><a name="l02923"></a><span class="lineno"> 2923</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Iterator&gt;</div><div class="line"><a name="l02924"></a><span class="lineno"> 2924</span>&#160; std::vector&lt;int64&gt; GetPossibleNextsFromIterator(int64 node, Iterator start,</div><div class="line"><a name="l02925"></a><span class="lineno"> 2925</span>&#160; Iterator end)<span class="keyword"> const </span>{</div><div class="line"><a name="l02926"></a><span class="lineno"> 2926</span>&#160; <span class="keyword">const</span> <span class="keywordtype">int</span> size = <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>()-&gt;<a class="code" href="classoperations__research_1_1RoutingModel.html#a354dd8c252cf59b748602b342db6019d">Size</a>();</div><div class="line"><a name="l02927"></a><span class="lineno"> 2927</span>&#160; std::vector&lt;int64&gt; nexts;</div><div class="line"><a name="l02928"></a><span class="lineno"> 2928</span>&#160; <span class="keywordflow">for</span> (Iterator it = start; it != end; ++it) {</div><div class="line"><a name="l02929"></a><span class="lineno"> 2929</span>&#160; <span class="keyword">const</span> int64 next = *it;</div><div class="line"><a name="l02930"></a><span class="lineno"> 2930</span>&#160; <span class="keywordflow">if</span> (next != node &amp;&amp; (next &gt;= size || !<a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a3bf66f3f1119ea5c0f57beb231089c0e">Contains</a>(next))) {</div><div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>&#160; nexts.push_back(next);</div><div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>&#160; }</div><div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>&#160; }</div><div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>&#160; <span class="keywordflow">return</span> nexts;</div><div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>&#160; }</div><div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> SortSuccessors(int64 node, std::vector&lt;int64&gt;* successors) = 0;</div><div class="line"><a name="l02938"></a><span class="lineno"> 2938</span>&#160; <span class="keyword">virtual</span> int64 FindTopSuccessor(int64 node,</div><div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; successors) = 0;</div><div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>&#160;};</div><div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>&#160;</div><div class="line"><a name="l02944"></a><span class="lineno"><a class="line" href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html"> 2944</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html">EvaluatorCheapestAdditionFilteredDecisionBuilder</a></div><div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>&#160; : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html">CheapestAdditionFilteredDecisionBuilder</a> {</div><div class="line"><a name="l02946"></a><span class="lineno"> 2946</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>&#160; <a class="code" href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html#a912e360922fbe255a289467fe4968b95">EvaluatorCheapestAdditionFilteredDecisionBuilder</a>(</div><div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, std::function&lt;int64(int64, int64)&gt; evaluator,</div><div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters);</div><div class="line"><a name="l02951"></a><span class="lineno"><a class="line" href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html#ad76a566a2512acd5ba62f260dd52777b"> 2951</a></span>&#160; <a class="code" href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html#ad76a566a2512acd5ba62f260dd52777b">~EvaluatorCheapestAdditionFilteredDecisionBuilder</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l02952"></a><span class="lineno"><a class="line" href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91"> 2952</a></span>&#160; std::string <a class="code" href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">DebugString</a>()<span class="keyword"> const override </span>{</div><div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;EvaluatorCheapestAdditionFilteredDecisionBuilder&quot;</span>;</div><div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>&#160; }</div><div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>&#160;</div><div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>&#160; <span class="keywordtype">void</span> SortSuccessors(int64 node, std::vector&lt;int64&gt;* successors) <span class="keyword">override</span>;</div><div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>&#160; int64 FindTopSuccessor(int64 node,</div><div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; successors) <span class="keyword">override</span>;</div><div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>&#160;</div><div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>&#160; std::function&lt;int64(int64, int64)&gt; evaluator_;</div><div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>&#160;};</div><div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>&#160;</div><div class="line"><a name="l02967"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html"> 2967</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html">ComparatorCheapestAdditionFilteredDecisionBuilder</a></div><div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>&#160; : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html">CheapestAdditionFilteredDecisionBuilder</a> {</div><div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>&#160; <a class="code" href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html#a075a5559c482ae585677009ee6665fb0">ComparatorCheapestAdditionFilteredDecisionBuilder</a>(</div><div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, <a class="code" href="classoperations__research_1_1Solver.html#a3094f1982f455fd97342c64b7c0b3ccf">Solver::VariableValueComparator</a> comparator,</div><div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters);</div><div class="line"><a name="l02974"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html#a6a9936db2536aeab72d953f88fef6d86"> 2974</a></span>&#160; <a class="code" href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html#a6a9936db2536aeab72d953f88fef6d86">~ComparatorCheapestAdditionFilteredDecisionBuilder</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l02975"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91"> 2975</a></span>&#160; std::string <a class="code" href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">DebugString</a>()<span class="keyword"> const override </span>{</div><div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;ComparatorCheapestAdditionFilteredDecisionBuilder&quot;</span>;</div><div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>&#160; }</div><div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>&#160;</div><div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>&#160; <span class="keywordtype">void</span> SortSuccessors(int64 node, std::vector&lt;int64&gt;* successors) <span class="keyword">override</span>;</div><div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>&#160; int64 FindTopSuccessor(int64 node,</div><div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; successors) <span class="keyword">override</span>;</div><div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>&#160;</div><div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>&#160; <a class="code" href="classoperations__research_1_1Solver.html#a3094f1982f455fd97342c64b7c0b3ccf">Solver::VariableValueComparator</a> comparator_;</div><div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>&#160;};</div><div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>&#160;</div><div class="line"><a name="l02996"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html"> 2996</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html">SavingsFilteredDecisionBuilder</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html">RoutingFilteredDecisionBuilder</a> {</div><div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l02998"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html"> 2998</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html">SavingsParameters</a> {</div><div class="line"><a name="l03001"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a0aa77787d0df1b489476bfc6714ef819"> 3001</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a0aa77787d0df1b489476bfc6714ef819">neighbors_ratio</a> = 1.0;</div><div class="line"><a name="l03004"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a33bd2c84a2be54d10959e5c0d81f86b5"> 3004</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a33bd2c84a2be54d10959e5c0d81f86b5">max_memory_usage_bytes</a> = 6e9;</div><div class="line"><a name="l03007"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a8857f65b46da9e2012c7bd939a978442"> 3007</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a8857f65b46da9e2012c7bd939a978442">add_reverse_arcs</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l03010"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a222a2814083966736ad9aefde1dde290"> 3010</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a222a2814083966736ad9aefde1dde290">arc_coefficient</a> = 1.0;</div><div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>&#160; };</div><div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>&#160;</div><div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>&#160; <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#aece8ba5ed811c6e5a490f4866f53b031">SavingsFilteredDecisionBuilder</a>(</div><div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, <a class="code" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a>* manager,</div><div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>&#160; <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html">SavingsParameters</a> parameters,</div><div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters);</div><div class="line"><a name="l03017"></a><span class="lineno"> 3017</span>&#160; <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a6910883530634398a1b66f84ab33e7be">~SavingsFilteredDecisionBuilder</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">BuildSolution</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>&#160;</div><div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l03021"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a2520cfaec0cd23cd56fd1eec8db79be4"> 3021</a></span>&#160; <span class="keyword">typedef</span> std::pair&lt;<span class="comment">/*saving*/</span> int64, <span class="comment">/*saving index*/</span> int64&gt; <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a2520cfaec0cd23cd56fd1eec8db79be4">Saving</a>;</div><div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>&#160;</div><div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> S&gt;</div><div class="line"><a name="l03024"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsContainer.html"> 3024</a></span>&#160; <span class="keyword">class </span><a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsContainer.html">SavingsContainer</a>;</div><div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>&#160;</div><div class="line"><a name="l03026"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html"> 3026</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html">VehicleClassEntry</a> {</div><div class="line"><a name="l03027"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a1a01a2753d74fedd87264d8bd34a12df"> 3027</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a1a01a2753d74fedd87264d8bd34a12df">vehicle_class</a>;</div><div class="line"><a name="l03028"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a0e6f382c1edda3cf2469aff3f8f5b43d"> 3028</a></span>&#160; int64 <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a0e6f382c1edda3cf2469aff3f8f5b43d">fixed_cost</a>;</div><div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>&#160;</div><div class="line"><a name="l03030"></a><span class="lineno"><a class="line" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a147e45ee21195b528c370a8d4e198767"> 3030</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a147e45ee21195b528c370a8d4e198767">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html">VehicleClassEntry</a>&amp; other)<span class="keyword"> const </span>{</div><div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>&#160; <span class="keywordflow">return</span> std::tie(<a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a0e6f382c1edda3cf2469aff3f8f5b43d">fixed_cost</a>, <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a1a01a2753d74fedd87264d8bd34a12df">vehicle_class</a>) &lt;</div><div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>&#160; std::tie(other.<a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a0e6f382c1edda3cf2469aff3f8f5b43d">fixed_cost</a>, other.<a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a1a01a2753d74fedd87264d8bd34a12df">vehicle_class</a>);</div><div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>&#160; }</div><div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>&#160; };</div><div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>&#160;</div><div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a84b19d1c2e9a93a7e02dc12972c9c969">ExtraSavingsMemoryMultiplicativeFactor</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l03037"></a><span class="lineno"> 3037</span>&#160;</div><div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#aeb4e0e0b0899af694678658062b4f037">BuildRoutesFromSavings</a>() = 0;</div><div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>&#160;</div><div class="line"><a name="l03041"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a3ca37b113e071c2c1aca971b7008d275"> 3041</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a3ca37b113e071c2c1aca971b7008d275">GetVehicleTypeFromSaving</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a2520cfaec0cd23cd56fd1eec8db79be4">Saving</a>&amp; saving)<span class="keyword"> const </span>{</div><div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>&#160; <span class="keywordflow">return</span> saving.second / size_squared_;</div><div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>&#160; }</div><div class="line"><a name="l03045"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#aab2d3476524269df9653877e976028d1"> 3045</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#aab2d3476524269df9653877e976028d1">GetBeforeNodeFromSaving</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a2520cfaec0cd23cd56fd1eec8db79be4">Saving</a>&amp; saving)<span class="keyword"> const </span>{</div><div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>&#160; <span class="keywordflow">return</span> (saving.second % size_squared_) / <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a24926108b770033792d015cb86aeffb3">Size</a>();</div><div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>&#160; }</div><div class="line"><a name="l03049"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#ac0258a794b8bf819b03f3337ff558596"> 3049</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#ac0258a794b8bf819b03f3337ff558596">GetAfterNodeFromSaving</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a2520cfaec0cd23cd56fd1eec8db79be4">Saving</a>&amp; saving)<span class="keyword"> const </span>{</div><div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>&#160; <span class="keywordflow">return</span> (saving.second % size_squared_) % <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a24926108b770033792d015cb86aeffb3">Size</a>();</div><div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>&#160; }</div><div class="line"><a name="l03053"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a7ad6f39413bee55cd55f66ea28d40d38"> 3053</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a7ad6f39413bee55cd55f66ea28d40d38">GetSavingValue</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a2520cfaec0cd23cd56fd1eec8db79be4">Saving</a>&amp; saving)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> saving.first; }</div><div class="line"><a name="l03054"></a><span class="lineno"> 3054</span>&#160;</div><div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a01596b614ecce63ba83d5c16b242507c">StartNewRouteWithBestVehicleOfType</a>(<span class="keywordtype">int</span> type, int64 before_node,</div><div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>&#160; int64 after_node);</div><div class="line"><a name="l03066"></a><span class="lineno"> 3066</span>&#160;</div><div class="line"><a name="l03067"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a835d99e33c635948e02b5cc19a695c0a"> 3067</a></span>&#160; std::vector&lt;int&gt; <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a835d99e33c635948e02b5cc19a695c0a">type_index_of_vehicle_</a>;</div><div class="line"><a name="l03068"></a><span class="lineno"> 3068</span>&#160; <span class="comment">// clang-format off</span></div><div class="line"><a name="l03069"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a7e4e9653f66a7774ff682d4ad6042d70"> 3069</a></span>&#160; std::vector&lt;std::set&lt;VehicleClassEntry&gt; &gt; <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a7e4e9653f66a7774ff682d4ad6042d70">sorted_vehicle_classes_per_type_</a>;</div><div class="line"><a name="l03070"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#adffc9e3a887d2b1b81deef5d62c6e443"> 3070</a></span>&#160; std::vector&lt;std::deque&lt;int&gt; &gt; <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#adffc9e3a887d2b1b81deef5d62c6e443">vehicles_per_vehicle_class_</a>;</div><div class="line"><a name="l03071"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a689974dbdbc3a3247a2f9c1263dc85b4"> 3071</a></span>&#160; std::unique_ptr&lt;SavingsContainer&lt;Saving&gt; &gt; <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a689974dbdbc3a3247a2f9c1263dc85b4">savings_container_</a>;</div><div class="line"><a name="l03072"></a><span class="lineno"> 3072</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l03073"></a><span class="lineno"> 3073</span>&#160;</div><div class="line"><a name="l03074"></a><span class="lineno"> 3074</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l03079"></a><span class="lineno"> 3079</span>&#160; <span class="keywordtype">void</span> AddSymetricArcsToAdjacencyLists(</div><div class="line"><a name="l03080"></a><span class="lineno"> 3080</span>&#160; std::vector&lt;std::vector&lt;int64&gt;&gt;* adjacency_lists);</div><div class="line"><a name="l03081"></a><span class="lineno"> 3081</span>&#160; <span class="comment">// clang-format on</span></div><div class="line"><a name="l03082"></a><span class="lineno"> 3082</span>&#160;</div><div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>&#160; <span class="keywordtype">void</span> ComputeSavings();</div><div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>&#160; <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a2520cfaec0cd23cd56fd1eec8db79be4">Saving</a> BuildSaving(int64 saving, <span class="keywordtype">int</span> vehicle_type, <span class="keywordtype">int</span> before_node,</div><div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>&#160; <span class="keywordtype">int</span> after_node)<span class="keyword"> const </span>{</div><div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>&#160; <span class="keywordflow">return</span> std::make_pair(saving, vehicle_type * size_squared_ +</div><div class="line"><a name="l03094"></a><span class="lineno"> 3094</span>&#160; before_node * <a class="code" href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a24926108b770033792d015cb86aeffb3">Size</a>() + after_node);</div><div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>&#160; }</div><div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>&#160;</div><div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>&#160; <span class="keywordtype">void</span> ComputeVehicleTypes();</div><div class="line"><a name="l03105"></a><span class="lineno"> 3105</span>&#160;</div><div class="line"><a name="l03109"></a><span class="lineno"> 3109</span>&#160; int64 MaxNumNeighborsPerNode(<span class="keywordtype">int</span> num_vehicle_types) <span class="keyword">const</span>;</div><div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>&#160;</div><div class="line"><a name="l03111"></a><span class="lineno"> 3111</span>&#160; <a class="code" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a>* <span class="keyword">const</span> manager_;</div><div class="line"><a name="l03112"></a><span class="lineno"> 3112</span>&#160; <span class="keyword">const</span> SavingsParameters savings_params_;</div><div class="line"><a name="l03113"></a><span class="lineno"> 3113</span>&#160; int64 size_squared_;</div><div class="line"><a name="l03114"></a><span class="lineno"> 3114</span>&#160;</div><div class="line"><a name="l03115"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a416ab434cf84e1360200462a2e66bd84"> 3115</a></span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a416ab434cf84e1360200462a2e66bd84">SavingsFilteredDecisionBuilderTestPeer</a>;</div><div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>&#160;};</div><div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>&#160;</div><div class="line"><a name="l03118"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html"> 3118</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html">SequentialSavingsFilteredDecisionBuilder</a></div><div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>&#160; : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html">SavingsFilteredDecisionBuilder</a> {</div><div class="line"><a name="l03120"></a><span class="lineno"> 3120</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l03121"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html#a2b82d05efa8cd7eb28270333123e591f"> 3121</a></span>&#160; <a class="code" href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html#a2b82d05efa8cd7eb28270333123e591f">SequentialSavingsFilteredDecisionBuilder</a>(</div><div class="line"><a name="l03122"></a><span class="lineno"> 3122</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, <a class="code" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a>* manager,</div><div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>&#160; <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html">SavingsParameters</a> parameters,</div><div class="line"><a name="l03124"></a><span class="lineno"> 3124</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters)</div><div class="line"><a name="l03125"></a><span class="lineno"> 3125</span>&#160; : <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html">SavingsFilteredDecisionBuilder</a>(<a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, manager, parameters, filters) {}</div><div class="line"><a name="l03126"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html#a4a6f036b8d02eab66861223c3ec16e79"> 3126</a></span>&#160; <a class="code" href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html#a4a6f036b8d02eab66861223c3ec16e79">~SequentialSavingsFilteredDecisionBuilder</a>()<span class="keyword"> override</span>{};</div><div class="line"><a name="l03127"></a><span class="lineno"><a class="line" href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91"> 3127</a></span>&#160; std::string <a class="code" href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">DebugString</a>()<span class="keyword"> const override </span>{</div><div class="line"><a name="l03128"></a><span class="lineno"> 3128</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;SequentialSavingsFilteredDecisionBuilder&quot;</span>;</div><div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>&#160; }</div><div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>&#160;</div><div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>&#160; <span class="keywordtype">void</span> BuildRoutesFromSavings() <span class="keyword">override</span>;</div><div class="line"><a name="l03137"></a><span class="lineno"> 3137</span>&#160; <span class="keywordtype">double</span> ExtraSavingsMemoryMultiplicativeFactor()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> 1.0; }</div><div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>&#160;};</div><div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>&#160;</div><div class="line"><a name="l03140"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html"> 3140</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html">ParallelSavingsFilteredDecisionBuilder</a></div><div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>&#160; : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html">SavingsFilteredDecisionBuilder</a> {</div><div class="line"><a name="l03142"></a><span class="lineno"> 3142</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l03143"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html#a52a2cb79fbb6cd15d0879dadd2de93c0"> 3143</a></span>&#160; <a class="code" href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html#a52a2cb79fbb6cd15d0879dadd2de93c0">ParallelSavingsFilteredDecisionBuilder</a>(</div><div class="line"><a name="l03144"></a><span class="lineno"> 3144</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, <a class="code" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a>* manager,</div><div class="line"><a name="l03145"></a><span class="lineno"> 3145</span>&#160; <a class="code" href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html">SavingsParameters</a> parameters,</div><div class="line"><a name="l03146"></a><span class="lineno"> 3146</span>&#160; <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters)</div><div class="line"><a name="l03147"></a><span class="lineno"> 3147</span>&#160; : <a class="code" href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html">SavingsFilteredDecisionBuilder</a>(<a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, manager, parameters, filters) {}</div><div class="line"><a name="l03148"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html#a051ea783802d58387a4d6c2836fb089e"> 3148</a></span>&#160; <a class="code" href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html#a051ea783802d58387a4d6c2836fb089e">~ParallelSavingsFilteredDecisionBuilder</a>()<span class="keyword"> override</span>{};</div><div class="line"><a name="l03149"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91"> 3149</a></span>&#160; std::string <a class="code" href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">DebugString</a>()<span class="keyword"> const override </span>{</div><div class="line"><a name="l03150"></a><span class="lineno"> 3150</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;ParallelSavingsFilteredDecisionBuilder&quot;</span>;</div><div class="line"><a name="l03151"></a><span class="lineno"> 3151</span>&#160; }</div><div class="line"><a name="l03152"></a><span class="lineno"> 3152</span>&#160;</div><div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>&#160; <span class="keywordtype">void</span> BuildRoutesFromSavings() <span class="keyword">override</span>;</div><div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>&#160;</div><div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>&#160; <span class="keywordtype">double</span> ExtraSavingsMemoryMultiplicativeFactor()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> 2.0; }</div><div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>&#160;</div><div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>&#160; <span class="keywordtype">void</span> MergeRoutes(<span class="keywordtype">int</span> first_vehicle, <span class="keywordtype">int</span> second_vehicle, int64 before_node,</div><div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>&#160; int64 after_node);</div><div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>&#160;</div><div class="line"><a name="l03176"></a><span class="lineno"> 3176</span>&#160; std::vector&lt;int64&gt; first_node_on_route_;</div><div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>&#160; std::vector&lt;int64&gt; last_node_on_route_;</div><div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>&#160; std::vector&lt;int&gt; vehicle_of_first_or_last_node_;</div><div class="line"><a name="l03182"></a><span class="lineno"> 3182</span>&#160;};</div><div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>&#160;</div><div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>&#160;</div><div class="line"><a name="l03188"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html"> 3188</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html">ChristofidesFilteredDecisionBuilder</a></div><div class="line"><a name="l03189"></a><span class="lineno"> 3189</span>&#160; : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html">RoutingFilteredDecisionBuilder</a> {</div><div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>&#160; <a class="code" href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#a9e1108787b4b8ed0efa6c07c52d0f734">ChristofidesFilteredDecisionBuilder</a>(</div><div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>&#160; <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <a class="code" href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">model</a>, <span class="keyword">const</span> std::vector&lt;LocalSearchFilter*&gt;&amp; filters);</div><div class="line"><a name="l03193"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#af660f787c9f377b99beaef144e9b228e"> 3193</a></span>&#160; <a class="code" href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#af660f787c9f377b99beaef144e9b228e">~ChristofidesFilteredDecisionBuilder</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">BuildSolution</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l03195"></a><span class="lineno"><a class="line" href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91"> 3195</a></span>&#160; std::string <a class="code" href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">DebugString</a>()<span class="keyword"> const override </span>{</div><div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;ChristofidesFilteredDecisionBuilder&quot;</span>;</div><div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>&#160; }</div><div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>&#160;};</div><div class="line"><a name="l03199"></a><span class="lineno"> 3199</span>&#160;</div><div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="namespaceoperations__research.html#aa17cca151690da44e948d7fbe07abca5">SolveModelWithSat</a>(<span class="keyword">const</span> RoutingModel&amp; model,</div><div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>&#160; <span class="keyword">const</span> RoutingSearchParameters&amp; search_parameters,</div><div class="line"><a name="l03206"></a><span class="lineno"> 3206</span>&#160; <span class="keyword">const</span> Assignment* initial_solution,</div><div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>&#160; Assignment* solution);</div><div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>&#160;</div><div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>&#160;</div><div class="line"><a name="l03211"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html"> 3211</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1BasePathFilter.html">BasePathFilter</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1IntVarLocalSearchFilter.html">IntVarLocalSearchFilter</a> {</div><div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>&#160; <a class="code" href="classoperations__research_1_1BasePathFilter.html#a7c22021d1ebcfa7e3b8bbe36d0dcac7c">BasePathFilter</a>(<span class="keyword">const</span> std::vector&lt;IntVar*&gt;&amp; nexts, <span class="keywordtype">int</span> next_domain_size);</div><div class="line"><a name="l03214"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html#acec7d0ffdb15da1d653839e22edd47fa"> 3214</a></span>&#160; <a class="code" href="classoperations__research_1_1BasePathFilter.html#acec7d0ffdb15da1d653839e22edd47fa">~BasePathFilter</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l03215"></a><span class="lineno"> 3215</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1BasePathFilter.html#a511cf14b54c83cffc0a673985db90643">Accept</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* delta, <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* deltadelta,</div><div class="line"><a name="l03216"></a><span class="lineno"> 3216</span>&#160; int64 objective_min, int64 objective_max) <span class="keyword">override</span>;</div><div class="line"><a name="l03217"></a><span class="lineno"> 3217</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1BasePathFilter.html#af5591ad1889b7e23b8461a1fb68d1d48">OnSynchronize</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* delta) <span class="keyword">override</span>;</div><div class="line"><a name="l03218"></a><span class="lineno"> 3218</span>&#160;</div><div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l03220"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html#a33b6c2ef668063ee2d9f9c30071b1b7e"> 3220</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> int64 <a class="code" href="classoperations__research_1_1BasePathFilter.html#a33b6c2ef668063ee2d9f9c30071b1b7e">kUnassigned</a>;</div><div class="line"><a name="l03221"></a><span class="lineno"> 3221</span>&#160;</div><div class="line"><a name="l03222"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html#ae109ca50bc149b30908669a9224620e2"> 3222</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1BasePathFilter.html#ae109ca50bc149b30908669a9224620e2">GetNext</a>(int64 node)<span class="keyword"> const </span>{</div><div class="line"><a name="l03223"></a><span class="lineno"> 3223</span>&#160; <span class="keywordflow">return</span> (new_nexts_[node] == <a class="code" href="classoperations__research_1_1BasePathFilter.html#a33b6c2ef668063ee2d9f9c30071b1b7e">kUnassigned</a>)</div><div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>&#160; ? (<a class="code" href="classoperations__research_1_1IntVarLocalSearchFilter.html#af295b14439014798b1fd34faffd3b5e7">IsVarSynced</a>(node) ? <a class="code" href="classoperations__research_1_1IntVarLocalSearchFilter.html#acc37407ddda743886d3cb40298914f0d">Value</a>(node) : <a class="code" href="classoperations__research_1_1BasePathFilter.html#a33b6c2ef668063ee2d9f9c30071b1b7e">kUnassigned</a>)</div><div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>&#160; : new_nexts_[node];</div><div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>&#160; }</div><div class="line"><a name="l03227"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html#a0d16eaa2f4cc0dbde0c88126021ec34e"> 3227</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1BasePathFilter.html#a0d16eaa2f4cc0dbde0c88126021ec34e">NumPaths</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> starts_.size(); }</div><div class="line"><a name="l03228"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html#a345e688ef627db8fdda23c4b6b45ac0f"> 3228</a></span>&#160; int64 <a class="code" href="classoperations__research_1_1BasePathFilter.html#a345e688ef627db8fdda23c4b6b45ac0f">Start</a>(<span class="keywordtype">int</span> i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> starts_[i]; }</div><div class="line"><a name="l03229"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html#af0bf98141cfd22ee7d63c411465692b4"> 3229</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1BasePathFilter.html#af0bf98141cfd22ee7d63c411465692b4">GetPath</a>(int64 node)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> paths_[node]; }</div><div class="line"><a name="l03230"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html#ad6f96f2e93457d4cc8ff4bc2ea5a738a"> 3230</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classoperations__research_1_1BasePathFilter.html#ad6f96f2e93457d4cc8ff4bc2ea5a738a">Rank</a>(int64 node)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ranks_[node]; }</div><div class="line"><a name="l03231"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html#a8869de3e40b0eeee56470a8fc0cd4528"> 3231</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1BasePathFilter.html#a8869de3e40b0eeee56470a8fc0cd4528">IsDisabled</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> status_ == DISABLED; }</div><div class="line"><a name="l03232"></a><span class="lineno"><a class="line" href="classoperations__research_1_1BasePathFilter.html#a6a6bc5201839e74cab666fd59bfbb2a2"> 3232</a></span>&#160; <span class="keyword">const</span> std::vector&lt;int64&gt;&amp; <a class="code" href="classoperations__research_1_1BasePathFilter.html#a6a6bc5201839e74cab666fd59bfbb2a2">GetNewSynchronizedUnperformedNodes</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>&#160; <span class="keywordflow">return</span> new_synchronized_unperformed_nodes_.PositionsSetAtLeastOnce();</div><div class="line"><a name="l03234"></a><span class="lineno"> 3234</span>&#160; }</div><div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>&#160;</div><div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l03237"></a><span class="lineno"> 3237</span>&#160; <span class="keyword">enum</span> Status { UNKNOWN, ENABLED, DISABLED };</div><div class="line"><a name="l03238"></a><span class="lineno"> 3238</span>&#160;</div><div class="line"><a name="l03239"></a><span class="lineno"> 3239</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> DisableFiltering()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l03240"></a><span class="lineno"> 3240</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> OnBeforeSynchronizePaths() {}</div><div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> OnAfterSynchronizePaths() {}</div><div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> OnSynchronizePathFromStart(int64 start) {}</div><div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> InitializeAcceptPath() {}</div><div class="line"><a name="l03244"></a><span class="lineno"> 3244</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> AcceptPath(int64 path_start, int64 chain_start,</div><div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>&#160; int64 chain_end) = 0;</div><div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> FinalizeAcceptPath(<span class="keyword">const</span> Assignment* delta, int64 objective_min,</div><div class="line"><a name="l03247"></a><span class="lineno"> 3247</span>&#160; int64 objective_max) {</div><div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>&#160; }</div><div class="line"><a name="l03251"></a><span class="lineno"> 3251</span>&#160; <span class="keywordtype">void</span> ComputePathStarts(std::vector&lt;int64&gt;* path_starts,</div><div class="line"><a name="l03252"></a><span class="lineno"> 3252</span>&#160; std::vector&lt;int&gt;* index_to_path);</div><div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>&#160; <span class="keywordtype">bool</span> HavePathsChanged();</div><div class="line"><a name="l03254"></a><span class="lineno"> 3254</span>&#160; <span class="keywordtype">void</span> SynchronizeFullAssignment();</div><div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>&#160; <span class="keywordtype">void</span> UpdateAllRanks();</div><div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>&#160; <span class="keywordtype">void</span> UpdatePathRanksFromStart(<span class="keywordtype">int</span> start);</div><div class="line"><a name="l03257"></a><span class="lineno"> 3257</span>&#160;</div><div class="line"><a name="l03258"></a><span class="lineno"> 3258</span>&#160; std::vector&lt;int64&gt; node_path_starts_;</div><div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>&#160; std::vector&lt;int64&gt; starts_;</div><div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>&#160; std::vector&lt;int&gt; paths_;</div><div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>&#160; SparseBitset&lt;int64&gt; new_synchronized_unperformed_nodes_;</div><div class="line"><a name="l03262"></a><span class="lineno"> 3262</span>&#160; std::vector&lt;int64&gt; new_nexts_;</div><div class="line"><a name="l03263"></a><span class="lineno"> 3263</span>&#160; std::vector&lt;int&gt; delta_touched_;</div><div class="line"><a name="l03264"></a><span class="lineno"> 3264</span>&#160; SparseBitset&lt;&gt; touched_paths_;</div><div class="line"><a name="l03265"></a><span class="lineno"> 3265</span>&#160; SparseBitset&lt;&gt; touched_path_nodes_;</div><div class="line"><a name="l03266"></a><span class="lineno"> 3266</span>&#160; std::vector&lt;int&gt; ranks_;</div><div class="line"><a name="l03267"></a><span class="lineno"> 3267</span>&#160;</div><div class="line"><a name="l03268"></a><span class="lineno"> 3268</span>&#160; Status status_;</div><div class="line"><a name="l03269"></a><span class="lineno"> 3269</span>&#160;};</div><div class="line"><a name="l03270"></a><span class="lineno"> 3270</span>&#160;</div><div class="line"><a name="l03275"></a><span class="lineno"> 3275</span>&#160;<span class="comment">// TODO(user): Also call the solution finalizer on variables, with the</span></div><div class="line"><a name="l03281"></a><span class="lineno"> 3281</span>&#160;<span class="comment"></span><span class="comment">// TODO(user): Avoid such false negatives.</span></div><div class="line"><a name="l03282"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CPFeasibilityFilter.html"> 3282</a></span>&#160;<span class="keyword">class </span><a class="code" href="classoperations__research_1_1CPFeasibilityFilter.html">CPFeasibilityFilter</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1IntVarLocalSearchFilter.html">IntVarLocalSearchFilter</a> {</div><div class="line"><a name="l03283"></a><span class="lineno"> 3283</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l03284"></a><span class="lineno"> 3284</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classoperations__research_1_1CPFeasibilityFilter.html#a0b2f66f74b2fc754eaa3a42df786caf3">CPFeasibilityFilter</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* routing_model);</div><div class="line"><a name="l03285"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CPFeasibilityFilter.html#afdcee45789dba70a9bf59f21f9d9fd43"> 3285</a></span>&#160; <a class="code" href="classoperations__research_1_1CPFeasibilityFilter.html#afdcee45789dba70a9bf59f21f9d9fd43">~CPFeasibilityFilter</a>()<span class="keyword"> override </span>{}</div><div class="line"><a name="l03286"></a><span class="lineno"><a class="line" href="classoperations__research_1_1CPFeasibilityFilter.html#aed804747c45a7e1caf81461f9e45dd91"> 3286</a></span>&#160; std::string <a class="code" href="classoperations__research_1_1CPFeasibilityFilter.html#aed804747c45a7e1caf81461f9e45dd91">DebugString</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;CPFeasibilityFilter&quot;</span>; }</div><div class="line"><a name="l03287"></a><span class="lineno"> 3287</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classoperations__research_1_1CPFeasibilityFilter.html#a511cf14b54c83cffc0a673985db90643">Accept</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* delta, <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* deltadelta,</div><div class="line"><a name="l03288"></a><span class="lineno"> 3288</span>&#160; int64 objective_min, int64 objective_max) <span class="keyword">override</span>;</div><div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classoperations__research_1_1CPFeasibilityFilter.html#af5591ad1889b7e23b8461a1fb68d1d48">OnSynchronize</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* delta) <span class="keyword">override</span>;</div><div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>&#160;</div><div class="line"><a name="l03291"></a><span class="lineno"> 3291</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l03292"></a><span class="lineno"> 3292</span>&#160; <span class="keywordtype">void</span> AddDeltaToAssignment(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* delta, <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* assignment);</div><div class="line"><a name="l03293"></a><span class="lineno"> 3293</span>&#160;</div><div class="line"><a name="l03294"></a><span class="lineno"> 3294</span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> int64 kUnassigned;</div><div class="line"><a name="l03295"></a><span class="lineno"> 3295</span>&#160; <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>* <span class="keyword">const</span> model_;</div><div class="line"><a name="l03296"></a><span class="lineno"> 3296</span>&#160; <a class="code" href="classoperations__research_1_1Solver.html">Solver</a>* <span class="keyword">const</span> solver_;</div><div class="line"><a name="l03297"></a><span class="lineno"> 3297</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <span class="keyword">const</span> assignment_;</div><div class="line"><a name="l03298"></a><span class="lineno"> 3298</span>&#160; <a class="code" href="classoperations__research_1_1Assignment.html">Assignment</a>* <span class="keyword">const</span> temp_assignment_;</div><div class="line"><a name="l03299"></a><span class="lineno"> 3299</span>&#160; <a class="code" href="classoperations__research_1_1DecisionBuilder.html">DecisionBuilder</a>* <span class="keyword">const</span> restore_;</div><div class="line"><a name="l03300"></a><span class="lineno"> 3300</span>&#160;};</div><div class="line"><a name="l03301"></a><span class="lineno"> 3301</span>&#160;</div><div class="line"><a name="l03302"></a><span class="lineno"> 3302</span>&#160;<span class="preprocessor">#if !defined(SWIG)</span></div><div class="line"><a name="l03303"></a><span class="lineno"> 3303</span>&#160;IntVarLocalSearchFilter* <a class="code" href="namespaceoperations__research.html#ae3012c6b24c5be29fe921cb17f9d1d60">MakeNodeDisjunctionFilter</a>(</div><div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>&#160; <span class="keyword">const</span> RoutingModel&amp; routing_model);</div><div class="line"><a name="l03305"></a><span class="lineno"> 3305</span>&#160;IntVarLocalSearchFilter* <a class="code" href="namespaceoperations__research.html#ab6379327d3431a9fe8f7434651eece59">MakeVehicleAmortizedCostFilter</a>(</div><div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>&#160; <span class="keyword">const</span> RoutingModel&amp; routing_model);</div><div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>&#160;IntVarLocalSearchFilter* <a class="code" href="namespaceoperations__research.html#a3de43a015d4ee3ce53eb030e1d7232de">MakeTypeRegulationsFilter</a>(</div><div class="line"><a name="l03308"></a><span class="lineno"> 3308</span>&#160; <span class="keyword">const</span> RoutingModel&amp; routing_model);</div><div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>&#160;std::vector&lt;IntVarLocalSearchFilter*&gt; <a class="code" href="namespaceoperations__research.html#ae2bc37439c27c9d82f9bb116e61f75f0">MakeCumulFilters</a>(</div><div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>&#160; <span class="keyword">const</span> RoutingDimension&amp; dimension, <span class="keywordtype">bool</span> filter_objective_cost);</div><div class="line"><a name="l03311"></a><span class="lineno"> 3311</span>&#160;IntVarLocalSearchFilter* <a class="code" href="namespaceoperations__research.html#a014a0f7cc1dd527a3a7eb3aa2bc38ada">MakePathCumulFilter</a>(<span class="keyword">const</span> RoutingDimension&amp; dimension,</div><div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>&#160; <span class="keywordtype">bool</span> propagate_own_objective_value,</div><div class="line"><a name="l03313"></a><span class="lineno"> 3313</span>&#160; <span class="keywordtype">bool</span> filter_objective_cost);</div><div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>&#160;IntVarLocalSearchFilter* <a class="code" href="namespaceoperations__research.html#ad96516f011b5faf2c5587c797870ca9d">MakeGlobalLPCumulFilter</a>(</div><div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>&#160; GlobalDimensionCumulOptimizer* optimizer, <span class="keywordtype">bool</span> filter_objective_cost);</div><div class="line"><a name="l03316"></a><span class="lineno"> 3316</span>&#160;IntVarLocalSearchFilter* <a class="code" href="namespaceoperations__research.html#ae3ffb53eac6214b414e926238012a2a0">MakePickupDeliveryFilter</a>(</div><div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>&#160; <span class="keyword">const</span> RoutingModel&amp; routing_model, <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe">RoutingModel::IndexPairs</a>&amp; pairs,</div><div class="line"><a name="l03318"></a><span class="lineno"> 3318</span>&#160; <span class="keyword">const</span> std::vector&lt;RoutingModel::PickupAndDeliveryPolicy&gt;&amp; vehicle_policies);</div><div class="line"><a name="l03319"></a><span class="lineno"> 3319</span>&#160;IntVarLocalSearchFilter* <a class="code" href="namespaceoperations__research.html#a67f4b4b64a6c11717020eaa963b98c51">MakeVehicleVarFilter</a>(</div><div class="line"><a name="l03320"></a><span class="lineno"> 3320</span>&#160; <span class="keyword">const</span> RoutingModel&amp; routing_model);</div><div class="line"><a name="l03321"></a><span class="lineno"> 3321</span>&#160;IntVarLocalSearchFilter* <a class="code" href="namespaceoperations__research.html#ae9a33af72abb5c2332a1f7ca71ab8215">MakeVehicleBreaksFilter</a>(</div><div class="line"><a name="l03322"></a><span class="lineno"> 3322</span>&#160; <span class="keyword">const</span> RoutingModel&amp; routing_model, <span class="keyword">const</span> RoutingDimension&amp; dimension);</div><div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>&#160;IntVarLocalSearchFilter* <a class="code" href="namespaceoperations__research.html#aaa5f7d59af23f5e10fc43a3989fa0b68">MakeCPFeasibilityFilter</a>(</div><div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>&#160; <span class="keyword">const</span> RoutingModel* routing_model);</div><div class="line"><a name="l03325"></a><span class="lineno"> 3325</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>&#160;</div><div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>&#160;} <span class="comment">// namespace operations_research</span></div><div class="line"><a name="l03328"></a><span class="lineno"> 3328</span>&#160;<span class="preprocessor">#endif // OR_TOOLS_CONSTRAINT_SOLVER_ROUTING_H_</span></div><div class="ttc" id="classoperations__research_1_1RoutingModel_html_a43e14716c146e779b818f3451f23af1d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a43e14716c146e779b818f3451f23af1d">operations_research::RoutingModel::GetAllDimensionNames</a></div><div class="ttdeci">std::vector&lt;::std::string &gt; GetAllDimensionNames() const</div><div class="ttdoc">Outputs the names of all dimensions added to the routing engine.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a8b9a513f402e84f4c71436cf430f248a"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a8b9a513f402e84f4c71436cf430f248a">operations_research::RoutingModel::IgnoreDisjunctionsAlreadyForcedToZero</a></div><div class="ttdeci">void IgnoreDisjunctionsAlreadyForcedToZero()</div><div class="ttdoc">SPECIAL: Makes the solver ignore all the disjunctions whose active variables are all trivially zero (...</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a01596b614ecce63ba83d5c16b242507c"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a01596b614ecce63ba83d5c16b242507c">operations_research::SavingsFilteredDecisionBuilder::StartNewRouteWithBestVehicleOfType</a></div><div class="ttdeci">int StartNewRouteWithBestVehicleOfType(int type, int64 before_node, int64 after_node)</div><div class="ttdoc">Finds the best available vehicle of type &quot;type&quot; to start a new route to serve the arc before_node--&gt;a...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_aa98cc88bb33e9f703167cb030c093930"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#aa98cc88bb33e9f703167cb030c093930">operations_research::RoutingDimension::SetSpanCostCoefficientForVehicle</a></div><div class="ttdeci">void SetSpanCostCoefficientForVehicle(int64 coefficient, int vehicle)</div><div class="ttdoc">Sets a cost proportional to the dimension span on a given vehicle, or on all vehicles at once.</div></div>
<div class="ttc" id="namespaceoperations__research_html_a014a0f7cc1dd527a3a7eb3aa2bc38ada"><div class="ttname"><a href="namespaceoperations__research.html#a014a0f7cc1dd527a3a7eb3aa2bc38ada">operations_research::MakePathCumulFilter</a></div><div class="ttdeci">IntVarLocalSearchFilter * MakePathCumulFilter(const RoutingDimension &amp;dimension, bool propagate_own_objective_value, bool filter_objective_cost)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_af4e97be54c31d45d312d168ce1c8ba6f"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#af4e97be54c31d45d312d168ce1c8ba6f">operations_research::RoutingModel::SolveWithParameters</a></div><div class="ttdeci">const Assignment * SolveWithParameters(const RoutingSearchParameters &amp;search_parameters, std::vector&lt; const Assignment * &gt; *solutions=nullptr)</div><div class="ttdoc">Solves the current routing model with the given parameters.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aabdcf3bd412a5a61d811ef85e115e5ff"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aabdcf3bd412a5a61d811ef85e115e5ff">operations_research::RoutingModel::AddVariableMaximizedByFinalizer</a></div><div class="ttdeci">void AddVariableMaximizedByFinalizer(IntVar *var)</div><div class="ttdoc">Adds a variable to maximize in the solution finalizer (see above for information on the solution fina...</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarElement_html_ace66161c2f260353b4f03ef33455cd2f"><div class="ttname"><a href="classoperations__research_1_1IntVarElement.html#ace66161c2f260353b4f03ef33455cd2f">operations_research::IntVarElement::SetValue</a></div><div class="ttdeci">void SetValue(int64 v)</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l04576">constraint_solver.h:4576</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a36f4aa60ff1b8c1dd5fc1180199cad8d"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a36f4aa60ff1b8c1dd5fc1180199cad8d">operations_research::RoutingDimension::HasPickupToDeliveryLimits</a></div><div class="ttdeci">bool HasPickupToDeliveryLimits() const</div></div>
<div class="ttc" id="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder_html_a9ca3551a421e9710f6a211d304a696ae"><div class="ttname"><a href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#a9ca3551a421e9710f6a211d304a696ae">operations_research::LocalCheapestInsertionFilteredDecisionBuilder::LocalCheapestInsertionFilteredDecisionBuilder</a></div><div class="ttdeci">LocalCheapestInsertionFilteredDecisionBuilder(RoutingModel *model, std::function&lt; int64(int64, int64, int64)&gt; evaluator, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div><div class="ttdoc">Takes ownership of evaluator.</div></div>
<div class="ttc" id="classoperations__research_1_1SweepArranger_html_a133670b40a6a45c547654d9107a4a603"><div class="ttname"><a href="classoperations__research_1_1SweepArranger.html#a133670b40a6a45c547654d9107a4a603">operations_research::SweepArranger::ArrangeIndices</a></div><div class="ttdeci">void ArrangeIndices(std::vector&lt; int64 &gt; *indices)</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a7108359d8e6c5360f554581971ed253f"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a7108359d8e6c5360f554581971ed253f">operations_research::IntVarFilteredDecisionBuilder::~IntVarFilteredDecisionBuilder</a></div><div class="ttdeci">~IntVarFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02526">routing.h:2526</a></div></div>
<div class="ttc" id="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder_html_ad4499e465fd3aaa3088e97227eaf653d"><div class="ttname"><a href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">operations_research::LocalCheapestInsertionFilteredDecisionBuilder::BuildSolution</a></div><div class="ttdeci">bool BuildSolution() override</div><div class="ttdoc">Virtual method to redefine to build a solution.</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost_html"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html">operations_research::RoutingModel::CostClass::DimensionCost</a></div><div class="ttdoc">SUBTLE: The vehicle's fixed cost is skipped on purpose here, because we can afford to do so:</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00290">routing.h:290</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a5e3f4c6871f7b2c67fd5b1ad6c94d891"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a5e3f4c6871f7b2c67fd5b1ad6c94d891">operations_research::RoutingModel::HasTemporalTypeRequirements</a></div><div class="ttdeci">bool HasTemporalTypeRequirements() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00775">routing.h:775</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a086605d9650ce3c576d8a9c45ce0b9fc"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a086605d9650ce3c576d8a9c45ce0b9fc">operations_research::RoutingModel::AddAtSolutionCallback</a></div><div class="ttdeci">void AddAtSolutionCallback(std::function&lt; void()&gt; callback)</div><div class="ttdoc">Adds a callback called each time a solution is found during the search.</div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_a6a6bc5201839e74cab666fd59bfbb2a2"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#a6a6bc5201839e74cab666fd59bfbb2a2">operations_research::BasePathFilter::GetNewSynchronizedUnperformedNodes</a></div><div class="ttdeci">const std::vector&lt; int64 &gt; &amp; GetNewSynchronizedUnperformedNodes() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03232">routing.h:3232</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_abdd163e15a00e879fe9fa9fe8e2acd42"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#abdd163e15a00e879fe9fa9fe8e2acd42">operations_research::RoutingModel::VehicleClass::dimension_start_cumuls_max</a></div><div class="ttdeci">gtl::ITIVector&lt; DimensionIndex, int64 &gt; dimension_start_cumuls_max</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00333">routing.h:333</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_acbdbdfc9491ef0586459d38cc5ef4cb8"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#acbdbdfc9491ef0586459d38cc5ef4cb8">operations_research::RoutingModel::Start</a></div><div class="ttdeci">int64 Start(int vehicle) const</div><div class="ttdoc">Model inspection.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01067">routing.h:1067</a></div></div>
<div class="ttc" id="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost_html_a204f9b990226e8288e1aaecbb496cbf8"><div class="ttname"><a href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html#a204f9b990226e8288e1aaecbb496cbf8">operations_research::SimpleBoundCosts::BoundCost::bound</a></div><div class="ttdeci">int64 bound</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02010">routing.h:2010</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_ae2bc37439c27c9d82f9bb116e61f75f0"><div class="ttname"><a href="namespaceoperations__research.html#ae2bc37439c27c9d82f9bb116e61f75f0">operations_research::MakeCumulFilters</a></div><div class="ttdeci">std::vector&lt; IntVarLocalSearchFilter * &gt; MakeCumulFilters(const RoutingDimension &amp;dimension, bool filter_objective_cost)</div></div>
<div class="ttc" id="namespaceoperations__research_html_a4e907b3668a07c9fa3f62d938f6cb855"><div class="ttname"><a href="namespaceoperations__research.html#a4e907b3668a07c9fa3f62d938f6cb855">operations_research::MakeSetValuesFromTargets</a></div><div class="ttdeci">DecisionBuilder * MakeSetValuesFromTargets(Solver *solver, std::vector&lt; IntVar * &gt; variables, std::vector&lt; int64 &gt; targets)</div><div class="ttdoc">A decision builder which tries to assign values to variables as close as possible to target values fi...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a702dccba87a55da6912acde06f743712"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a702dccba87a55da6912acde06f743712">operations_research::RoutingDimension::GetCumulVarPiecewiseLinearCost</a></div><div class="ttdeci">const PiecewiseLinearFunction * GetCumulVarPiecewiseLinearCost(int64 index) const</div><div class="ttdoc">Returns the piecewise linear cost of a cumul variable for a given variable index.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa75928669f7ad3ffa7882538f74dab8b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa75928669f7ad3ffa7882538f74dab8b">operations_research::RoutingModel::AddDisjunction</a></div><div class="ttdeci">DisjunctionIndex AddDisjunction(const std::vector&lt; int64 &gt; &amp;indices, int64 penalty=kNoPenalty, int64 max_cardinality=1)</div><div class="ttdoc">Adds a disjunction constraint on the indices: exactly 'max_cardinality' of the indices are active.</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_aeb246ac61d4eadd6abf6dbdb6ce134f5"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#aeb246ac61d4eadd6abf6dbdb6ce134f5">operations_research::TypeRegulationsChecker::model_</a></div><div class="ttdeci">const RoutingModel &amp; model_</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01918">routing.h:1918</a></div></div>
<div class="ttc" id="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html">operations_research::GlobalCheapestInsertionFilteredDecisionBuilder</a></div><div class="ttdoc">Filter-based decision builder which builds a solution by inserting nodes at their cheapest position o...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02687">routing.h:2687</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a566384949e6395952f6f6b48603fd87f"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a566384949e6395952f6f6b48603fd87f">operations_research::RoutingModel::AddLocalSearchFilter</a></div><div class="ttdeci">void AddLocalSearchFilter(LocalSearchFilter *filter)</div><div class="ttdoc">Adds a custom local search filter to the list of filters used to speed up local search by pruning unf...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01057">routing.h:1057</a></div></div>
<div class="ttc" id="classoperations__research_1_1Solver_html_a3094f1982f455fd97342c64b7c0b3ccf"><div class="ttname"><a href="classoperations__research_1_1Solver.html#a3094f1982f455fd97342c64b7c0b3ccf">operations_research::Solver::VariableValueComparator</a></div><div class="ttdeci">std::function&lt; bool(int64, int64, int64)&gt; VariableValueComparator</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l00734">constraint_solver.h:734</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ab878a81ace850e3ecd26e95966409f61"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ab878a81ace850e3ecd26e95966409f61">operations_research::RoutingModel::AddIntervalToAssignment</a></div><div class="ttdeci">void AddIntervalToAssignment(IntervalVar *const interval)</div></div>
<div class="ttc" id="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters_html_a222a2814083966736ad9aefde1dde290"><div class="ttname"><a href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a222a2814083966736ad9aefde1dde290">operations_research::SavingsFilteredDecisionBuilder::SavingsParameters::arc_coefficient</a></div><div class="ttdeci">double arc_coefficient</div><div class="ttdoc">arc_coefficient is a strictly positive parameter indicating the coefficient of the arc being consider...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03010">routing.h:3010</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa5cff2ee7fbe3a9c5c701bfba7460c83"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">operations_research::RoutingModel::PickupAndDeliveryPolicy</a></div><div class="ttdeci">PickupAndDeliveryPolicy</div><div class="ttdoc">Types of precedence policy applied to pickup and delivery pairs.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00223">routing.h:223</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingFilteredDecisionBuilder_html_a95f347f8419578337202450136ca78be"><div class="ttname"><a href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a95f347f8419578337202450136ca78be">operations_research::RoutingFilteredDecisionBuilder::StopSearch</a></div><div class="ttdeci">bool StopSearch() override</div><div class="ttdoc">Returns true if the search must be stopped.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02607">routing.h:2607</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_aafc4ebf202cabd64f7854c274f425866"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#aafc4ebf202cabd64f7854c274f425866">operations_research::CheapestInsertionFilteredDecisionBuilder::AppendEvaluatedPositionsAfter</a></div><div class="ttdeci">void AppendEvaluatedPositionsAfter(int64 node_to_insert, int64 start, int64 next_after_start, int64 vehicle, std::vector&lt; ValuedPosition &gt; *valued_positions)</div><div class="ttdoc">Helper method to the ComputeEvaluatorSortedPositions* methods.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a51fb0661acf38ed1442819e2cc452311"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a51fb0661acf38ed1442819e2cc452311">operations_research::RoutingModel::GetHardTypeIncompatibilitiesOfType</a></div><div class="ttdeci">const absl::flat_hash_set&lt; int &gt; &amp; GetHardTypeIncompatibilitiesOfType(int type) const</div><div class="ttdoc">Returns visit types incompatible with a given type.</div></div>
<div class="ttc" id="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue_html_a96b8f0fa9ab1e12aed840c7293becbf7"><div class="ttname"><a href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a96b8f0fa9ab1e12aed840c7293becbf7">operations_research::CheapestInsertionFilteredDecisionBuilder::StartEndValue::vehicle</a></div><div class="ttdeci">int vehicle</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02632">routing.h:2632</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingDimension_1_1NodePrecedence_html_a605c2bc25b0b11f43a5652efc7f83db4"><div class="ttname"><a href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html#a605c2bc25b0b11f43a5652efc7f83db4">operations_research::RoutingDimension::NodePrecedence::first_node</a></div><div class="ttdeci">int64 first_node</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02290">routing.h:2290</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a74e3de2ce73322e1860be0713c07c33e"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a74e3de2ce73322e1860be0713c07c33e">operations_research::RoutingModel::ReadAssignment</a></div><div class="ttdeci">Assignment * ReadAssignment(const std::string &amp;file_name)</div><div class="ttdoc">Reads an assignment from a file and returns the current solution.</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRequirementChecker_html_a74c15d3bf7b8a04ef26d5da0237cb3b2"><div class="ttname"><a href="classoperations__research_1_1TypeRequirementChecker.html#a74c15d3bf7b8a04ef26d5da0237cb3b2">operations_research::TypeRequirementChecker::~TypeRequirementChecker</a></div><div class="ttdeci">~TypeRequirementChecker() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01946">routing.h:1946</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aaf71584ad4bffea7a489dc53787fa6f8"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aaf71584ad4bffea7a489dc53787fa6f8">operations_research::RoutingModel::ApplyLocks</a></div><div class="ttdeci">IntVar * ApplyLocks(const std::vector&lt; int64 &gt; &amp;locks)</div><div class="ttdoc">Applies a lock chain to the next search.</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a3bf66f3f1119ea5c0f57beb231089c0e"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a3bf66f3f1119ea5c0f57beb231089c0e">operations_research::IntVarFilteredDecisionBuilder::Contains</a></div><div class="ttdeci">bool Contains(int64 index) const</div><div class="ttdoc">Returns true if the variable of index 'index' is in the current solution.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02561">routing.h:2561</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost_html_a251a1028d938f5eb8605f759e6dc966f"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a251a1028d938f5eb8605f759e6dc966f">operations_research::RoutingModel::CostClass::DimensionCost::transit_evaluator_class</a></div><div class="ttdeci">int64 transit_evaluator_class</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00291">routing.h:291</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a7a8e134df97e40d1fc498f7f985c33ec"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a7a8e134df97e40d1fc498f7f985c33ec">operations_research::RoutingModel::GetVehicleClassIndexOfVehicle</a></div><div class="ttdeci">VehicleClassIndex GetVehicleClassIndexOfVehicle(int64 vehicle) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01152">routing.h:1152</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a6842df436effdf2492362bb89e171af0"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a6842df436effdf2492362bb89e171af0">operations_research::RoutingModel::AddMatrixDimension</a></div><div class="ttdeci">bool AddMatrixDimension(std::vector&lt; std::vector&lt; int64 &gt;&gt; values, int64 capacity, bool fix_start_cumul_to_zero, const std::string &amp;name)</div><div class="ttdoc">Creates a dimension where the transit variable is constrained to be equal to 'values[i][next(i)]' for...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a5d861ad3e93b404872633f359570f234"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a5d861ad3e93b404872633f359570f234">operations_research::RoutingDimension::SetSpanCostCoefficientForAllVehicles</a></div><div class="ttdeci">void SetSpanCostCoefficientForAllVehicles(int64 coefficient)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a3af1158b77552d60afc3f0473de3892d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a3af1158b77552d60afc3f0473de3892d">operations_research::RoutingModel::MutablePreAssignment</a></div><div class="ttdeci">Assignment * MutablePreAssignment()</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00963">routing.h:963</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a1b7f20d14ae5261cb2f250c6e99f4383"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a1b7f20d14ae5261cb2f250c6e99f4383">operations_research::RoutingModel::CompactAssignment</a></div><div class="ttdeci">Assignment * CompactAssignment(const Assignment &amp;assignment) const</div><div class="ttdoc">Returns a compacted version of the given assignment, in which all vehicles with id lower or equal to ...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a26d28dacdef6a70d512df1a175429558"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a26d28dacdef6a70d512df1a175429558">operations_research::RoutingDimension::GetSpanCostCoefficientForVehicle</a></div><div class="ttdeci">int64 GetSpanCostCoefficientForVehicle(int vehicle) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02315">routing.h:2315</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_acbe051ae21f1e3a5c66455e4c408cffd"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#acbe051ae21f1e3a5c66455e4c408cffd">operations_research::RoutingDimension::GetBreakDistanceDurationOfVehicle</a></div><div class="ttdeci">const std::vector&lt; std::pair&lt; int64, int64 &gt; &gt; &amp; GetBreakDistanceDurationOfVehicle(int vehicle) const</div><div class="ttdoc">Returns the pairs (distance, duration) specified by break distance constraints.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a5997ca01d12b18b158ac0232acc731dd"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a5997ca01d12b18b158ac0232acc731dd">operations_research::RoutingDimension::FixedTransitVar</a></div><div class="ttdeci">IntVar * FixedTransitVar(int64 index) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02066">routing.h:2066</a></div></div>
<div class="ttc" id="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry_html_a147e45ee21195b528c370a8d4e198767"><div class="ttname"><a href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a147e45ee21195b528c370a8d4e198767">operations_research::SavingsFilteredDecisionBuilder::VehicleClassEntry::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(const VehicleClassEntry &amp;other) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03030">routing.h:3030</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_a3c4943383b7473a073e387f40cc0fb05"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a3c4943383b7473a073e387f40cc0fb05">operations_research::CheapestInsertionFilteredDecisionBuilder::evaluator_</a></div><div class="ttdeci">std::function&lt; int64(int64, int64, int64)&gt; evaluator_</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02676">routing.h:2676</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a6873634e63019f7c8af33a0b7e79d397"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a6873634e63019f7c8af33a0b7e79d397">operations_research::RoutingDimension::AreVehicleTransitsPositive</a></div><div class="ttdeci">bool AreVehicleTransitsPositive(int vehicle) const</div><div class="ttdoc">Returns true iff the transit evaluator of 'vehicle' is positive for all arcs.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02101">routing.h:2101</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a1016552c3e687e1a555e1c6cf7525e0e"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a1016552c3e687e1a555e1c6cf7525e0e">operations_research::RoutingDimension::GetBreakIntervalsOfVehicle</a></div><div class="ttdeci">const std::vector&lt; IntervalVar * &gt; &amp; GetBreakIntervalsOfVehicle(int vehicle) const</div><div class="ttdoc">Returns the break intervals set by SetBreakIntervalsOfVehicle().</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ad3f93c4522b3a4abd48a8c360b8c1c80"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ad3f93c4522b3a4abd48a8c360b8c1c80">operations_research::RoutingDimension::GetPathPrecedenceGraph</a></div><div class="ttdeci">const ReverseArcListGraph&lt; int, int &gt; &amp; GetPathPrecedenceGraph() const</div><div class="ttdoc">Accessors.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02265">routing.h:2265</a></div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a7d881a373c0868a72547acf1a188cd73"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a7d881a373c0868a72547acf1a188cd73">operations_research::IntVarFilteredDecisionBuilder::IntVarFilteredDecisionBuilder</a></div><div class="ttdeci">IntVarFilteredDecisionBuilder(Solver *solver, const std::vector&lt; IntVar * &gt; &amp;vars, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a7e4e9653f66a7774ff682d4ad6042d70"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a7e4e9653f66a7774ff682d4ad6042d70">operations_research::SavingsFilteredDecisionBuilder::sorted_vehicle_classes_per_type_</a></div><div class="ttdeci">std::vector&lt; std::set&lt; VehicleClassEntry &gt; &gt; sorted_vehicle_classes_per_type_</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03069">routing.h:3069</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a67a0db04d321a74b7e7fcfd3f1a3f70bae78ffdfdfc3eb7331c0ef91bdef8452b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae78ffdfdfc3eb7331c0ef91bdef8452b">operations_research::RoutingModel::ROUTING_INVALID</a></div><div class="ttdoc">Model, model parameters or flags are not valid.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00219">routing.h:219</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a8cded3d3d6746c179a8ec0eddad24342"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a8cded3d3d6746c179a8ec0eddad24342">operations_research::RoutingModel::VehicleVar</a></div><div class="ttdeci">IntVar * VehicleVar(int64 index) const</div><div class="ttdoc">Returns the vehicle variable of the node corresponding to index.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01104">routing.h:1104</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a66b87fec514d648c751ad9d4df09d05b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a66b87fec514d648c751ad9d4df09d05b">operations_research::RoutingModel::AddDimensionWithVehicleTransits</a></div><div class="ttdeci">bool AddDimensionWithVehicleTransits(const std::vector&lt; int &gt; &amp;evaluator_indices, int64 slack_max, int64 capacity, bool fix_start_cumul_to_zero, const std::string &amp;name)</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_html_af2f6e7be2de171fceb7a2de8e62b6fab"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass.html#af2f6e7be2de171fceb7a2de8e62b6fab">operations_research::RoutingModel::CostClass::dimension_transit_evaluator_class_and_cost_coefficient</a></div><div class="ttdeci">std::vector&lt; DimensionCost &gt; dimension_transit_evaluator_class_and_cost_coefficient</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00302">routing.h:302</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ab69145472d51d341f82d3ad29e9c6be2"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ab69145472d51d341f82d3ad29e9c6be2">operations_research::RoutingModel::SetFirstSolutionEvaluator</a></div><div class="ttdeci">void SetFirstSolutionEvaluator(Solver::IndexEvaluator2 evaluator)</div><div class="ttdoc">Takes ownership of evaluator.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00864">routing.h:864</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html">operations_research::RoutingModel</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00206">routing.h:206</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ab1652af55e9d83490d9c59d35d991ce9"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ab1652af55e9d83490d9c59d35d991ce9">operations_research::RoutingModel::GetTemporalRequiredTypeAlternativesOfType</a></div><div class="ttdeci">const std::vector&lt; absl::flat_hash_set&lt; int &gt; &gt; &amp; GetTemporalRequiredTypeAlternativesOfType(int type) const</div></div>
<div class="ttc" id="namespaceoperations__research_html_aef7db0bee0a22d1791d040fd3853f3b7"><div class="ttname"><a href="namespaceoperations__research.html#aef7db0bee0a22d1791d040fd3853f3b7">operations_research::RoutingIndexPairs</a></div><div class="ttdeci">std::vector&lt; RoutingIndexPair &gt; RoutingIndexPairs</div><div class="ttdef"><b>Definition:</b> <a href="routing__types_8h_source.html#l00045">routing_types.h:45</a></div></div>
<div class="ttc" id="constraint__solver_8h_html"><div class="ttname"><a href="constraint__solver_8h.html">constraint_solver.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a0e106a97f0156868f1d1c741b283793e"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e">operations_research::RoutingModel::GetTabuVarsCallback</a></div><div class="ttdeci">std::function&lt; std::vector&lt; operations_research::IntVar * &gt;(RoutingModel *)&gt; GetTabuVarsCallback</div><div class="ttdoc">Sets the callback returning the variable to use for the Tabu Search metaheuristic.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01228">routing.h:1228</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_aa2099867a858f3da90d9e26a1dc88b4d"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#aa2099867a858f3da90d9e26a1dc88b4d">operations_research::CheapestInsertionFilteredDecisionBuilder::ValuedPosition</a></div><div class="ttdeci">std::pair&lt; int64, int64 &gt; ValuedPosition</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02629">routing.h:2629</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ac8347e84488d1b5eb7b5e6972fb32be3"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ac8347e84488d1b5eb7b5e6972fb32be3">operations_research::RoutingModel::IsMatchingModel</a></div><div class="ttdeci">bool IsMatchingModel() const</div><div class="ttdoc">Returns true if a vehicle/node matching problem is detected.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a44afcc03d5cb68c01acefa253de9edcf"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a44afcc03d5cb68c01acefa253de9edcf">operations_research::RoutingModel::UnaryTransitCallbackOrNull</a></div><div class="ttdeci">const TransitCallback1 &amp; UnaryTransitCallbackOrNull(int callback_index) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00377">routing.h:377</a></div></div>
<div class="ttc" id="classoperations__research_1_1GlobalVehicleBreaksConstraint_html_a36d844f2722273b190ed9a069dd25938"><div class="ttname"><a href="classoperations__research_1_1GlobalVehicleBreaksConstraint.html#a36d844f2722273b190ed9a069dd25938">operations_research::GlobalVehicleBreaksConstraint::InitialPropagate</a></div><div class="ttdeci">void InitialPropagate() override</div><div class="ttdoc">This method performs the initial propagation of the constraint.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ac9cd3df1f2e22dc88129e0d21e8b3673"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ac9cd3df1f2e22dc88129e0d21e8b3673">operations_research::RoutingModel::GetMutableDimension</a></div><div class="ttdeci">RoutingDimension * GetMutableDimension(const std::string &amp;dimension_name) const</div><div class="ttdoc">Returns a dimension from its name.</div></div>
<div class="ttc" id="namespaceoperations__research_html_a1a7c1221ae29f298e0879e516d086f8b"><div class="ttname"><a href="namespaceoperations__research.html#a1a7c1221ae29f298e0879e516d086f8b">operations_research::RoutingIndexPair</a></div><div class="ttdeci">std::pair&lt; std::vector&lt; int64 &gt;, std::vector&lt; int64 &gt; &gt; RoutingIndexPair</div><div class="ttdef"><b>Definition:</b> <a href="routing__types_8h_source.html#l00044">routing_types.h:44</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a939aa2ef2afec0337b0f9d4dcb1c2db8"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a939aa2ef2afec0337b0f9d4dcb1c2db8">operations_research::RoutingModel::AddWeightedVariableMinimizedByFinalizer</a></div><div class="ttdeci">void AddWeightedVariableMinimizedByFinalizer(IntVar *var, int64 cost)</div><div class="ttdoc">Adds a variable to minimize in the solution finalizer, with a weighted priority: the higher the more ...</div></div>
<div class="ttc" id="routing__index__manager_8h_html"><div class="ttname"><a href="routing__index__manager_8h.html">routing_index_manager.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder_html_a6a9936db2536aeab72d953f88fef6d86"><div class="ttname"><a href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html#a6a9936db2536aeab72d953f88fef6d86">operations_research::ComparatorCheapestAdditionFilteredDecisionBuilder::~ComparatorCheapestAdditionFilteredDecisionBuilder</a></div><div class="ttdeci">~ComparatorCheapestAdditionFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02974">routing.h:2974</a></div></div>
<div class="ttc" id="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue_html_a7c4b3e8b0b9144aa29c94fc54c74d045"><div class="ttname"><a href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a7c4b3e8b0b9144aa29c94fc54c74d045">operations_research::CheapestInsertionFilteredDecisionBuilder::StartEndValue::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(const StartEndValue &amp;other) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02634">routing.h:2634</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a50ba9dd11704e0be7edaa9e9f24142ff"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a50ba9dd11704e0be7edaa9e9f24142ff">operations_research::RoutingModel::RoutingDimension</a></div><div class="ttdeci">friend class RoutingDimension</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01690">routing.h:1690</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a5f404ec17ed0917a6ac3711ac53e60f1"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a5f404ec17ed0917a6ac3711ac53e60f1">operations_research::RoutingModel::AddPickupAndDeliverySets</a></div><div class="ttdeci">void AddPickupAndDeliverySets(DisjunctionIndex pickup_disjunction, DisjunctionIndex delivery_disjunction)</div><div class="ttdoc">Same as AddPickupAndDelivery but notifying that the performed node from the disjunction of index 'pic...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a0f38add802397fef1f57b7d90ccd5aef"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a0f38add802397fef1f57b7d90ccd5aef">operations_research::RoutingModel::nodes</a></div><div class="ttdeci">int nodes() const</div><div class="ttdoc">Sizes and indices Returns the number of nodes in the model.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01208">routing.h:1208</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleBoundCosts_html_a2d9c0c0c671bb710c0f268fef402b698"><div class="ttname"><a href="classoperations__research_1_1SimpleBoundCosts.html#a2d9c0c0c671bb710c0f268fef402b698">operations_research::SimpleBoundCosts::SimpleBoundCosts</a></div><div class="ttdeci">SimpleBoundCosts(int num_bounds, BoundCost default_bound_cost)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02013">routing.h:2013</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingFilteredDecisionBuilder_html_a35a576bb3ea6814f122593d44a3c391e"><div class="ttname"><a href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a35a576bb3ea6814f122593d44a3c391e">operations_research::RoutingFilteredDecisionBuilder::model</a></div><div class="ttdeci">RoutingModel * model() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02595">routing.h:2595</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a436789d1133bf0155f13d189e556355d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a436789d1133bf0155f13d189e556355d">operations_research::RoutingModel::GetDeliveryIndexPairs</a></div><div class="ttdeci">const std::vector&lt; std::pair&lt; int, int &gt; &gt; &amp; GetDeliveryIndexPairs(int64 node_index) const</div><div class="ttdoc">Same as above for deliveries.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a1090dab71b48b49153d70b9e6c299c25"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a1090dab71b48b49153d70b9e6c299c25">operations_research::RoutingModel::GetDisjunctionMaxCardinality</a></div><div class="ttdeci">int64 GetDisjunctionMaxCardinality(DisjunctionIndex index) const</div><div class="ttdoc">Returns the maximum number of possible active nodes of the node disjunction of index 'index'.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00611">routing.h:611</a></div></div>
<div class="ttc" id="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters_html_a33bd2c84a2be54d10959e5c0d81f86b5"><div class="ttname"><a href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a33bd2c84a2be54d10959e5c0d81f86b5">operations_research::SavingsFilteredDecisionBuilder::SavingsParameters::max_memory_usage_bytes</a></div><div class="ttdeci">double max_memory_usage_bytes</div><div class="ttdoc">The number of neighbors considered for each node is also adapted so that the stored Savings don't use...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03004">routing.h:3004</a></div></div>
<div class="ttc" id="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder_html_a52a2cb79fbb6cd15d0879dadd2de93c0"><div class="ttname"><a href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html#a52a2cb79fbb6cd15d0879dadd2de93c0">operations_research::ParallelSavingsFilteredDecisionBuilder::ParallelSavingsFilteredDecisionBuilder</a></div><div class="ttdeci">ParallelSavingsFilteredDecisionBuilder(RoutingModel *model, RoutingIndexManager *manager, SavingsParameters parameters, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03143">routing.h:3143</a></div></div>
<div class="ttc" id="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue_html"><div class="ttname"><a href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html">operations_research::CheapestInsertionFilteredDecisionBuilder::StartEndValue</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02630">routing.h:2630</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_aa17cca151690da44e948d7fbe07abca5"><div class="ttname"><a href="namespaceoperations__research.html#aa17cca151690da44e948d7fbe07abca5">operations_research::SolveModelWithSat</a></div><div class="ttdeci">bool SolveModelWithSat(const RoutingModel &amp;model, const RoutingSearchParameters &amp;search_parameters, const Assignment *initial_solution, Assignment *solution)</div><div class="ttdoc">Attempts to solve the model using the cp-sat solver.</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarLocalSearchFilter_html"><div class="ttname"><a href="classoperations__research_1_1IntVarLocalSearchFilter.html">operations_research::IntVarLocalSearchFilter</a></div><div class="ttdef"><b>Definition:</b> <a href="constraint__solveri_8h_source.html#l01553">constraint_solveri.h:1553</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa5cff2ee7fbe3a9c5c701bfba7460c83a5c55a9aa52a754be8eb1b9d29af97a8a"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a5c55a9aa52a754be8eb1b9d29af97a8a">operations_research::RoutingModel::PICKUP_AND_DELIVERY_FIFO</a></div><div class="ttdoc">Deliveries must be performed in the same order as pickups.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00229">routing.h:229</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_aacc17c3711ac030db624e72c5ae2394f"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#aacc17c3711ac030db624e72c5ae2394f">operations_research::RoutingDimension::GetCumulVarSoftUpperBound</a></div><div class="ttdeci">int64 GetCumulVarSoftUpperBound(int64 index) const</div><div class="ttdoc">Returns the soft upper bound of a cumul variable for a given variable index.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_af0185f7c0ea3abf45191db23514604f3"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#af0185f7c0ea3abf45191db23514604f3">operations_research::RoutingDimension::HasSoftSpanUpperBounds</a></div><div class="ttdeci">bool HasSoftSpanUpperBounds() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02349">routing.h:2349</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_acca75b5d3bfe2433c5805b049815f533"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#acca75b5d3bfe2433c5805b049815f533">operations_research::RoutingModel::GetDepot</a></div><div class="ttdeci">int64 GetDepot() const</div><div class="ttdoc">Returns the variable index of the first starting or ending node of all routes.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_abcbe77312783c0a5aa4926ace764533b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#abcbe77312783c0a5aa4926ace764533b">operations_research::RoutingModel::CostVar</a></div><div class="ttdeci">IntVar * CostVar() const</div><div class="ttdoc">Returns the global cost variable which is being minimized.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01106">routing.h:1106</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_afb4c32e76561cad95bd8be2777d8f1ac"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#afb4c32e76561cad95bd8be2777d8f1ac">operations_research::RoutingDimension::GetPostTravelEvaluatorOfVehicle</a></div><div class="ttdeci">int GetPostTravelEvaluatorOfVehicle(int vehicle) const</div></div>
<div class="ttc" id="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder_html_aed804747c45a7e1caf81461f9e45dd91"><div class="ttname"><a href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">operations_research::GlobalCheapestInsertionFilteredDecisionBuilder::DebugString</a></div><div class="ttdeci">std::string DebugString() const override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02698">routing.h:2698</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a1dc8d32892f78532c8ee7a7186158e07"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a1dc8d32892f78532c8ee7a7186158e07">operations_research::RoutingModel::End</a></div><div class="ttdeci">int64 End(int vehicle) const</div><div class="ttdoc">Returns the variable index of the ending node of a vehicle route.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01069">routing.h:1069</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a67a0db04d321a74b7e7fcfd3f1a3f70babe45300b724161791a6429b27d7f5009"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70babe45300b724161791a6429b27d7f5009">operations_research::RoutingModel::ROUTING_NOT_SOLVED</a></div><div class="ttdoc">Problem not solved yet (before calling RoutingModel::Solve()).</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00211">routing.h:211</a></div></div>
<div class="ttc" id="classoperations__research_1_1DisjunctivePropagator_html_a13e93a8cd8587377e1b8f88096e0efd0"><div class="ttname"><a href="classoperations__research_1_1DisjunctivePropagator.html#a13e93a8cd8587377e1b8f88096e0efd0">operations_research::DisjunctivePropagator::DistanceDuration</a></div><div class="ttdeci">bool DistanceDuration(Tasks *tasks)</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a44c78e17dec2b3af95f850baaee2683a"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a44c78e17dec2b3af95f850baaee2683a">operations_research::IntVarFilteredDecisionBuilder::Commit</a></div><div class="ttdeci">bool Commit()</div><div class="ttdoc">Commits the modifications to the current solution if these modifications are &quot;filter-feasible&quot;,...</div></div>
<div class="ttc" id="classoperations__research_1_1DisjunctivePropagator_html"><div class="ttname"><a href="classoperations__research_1_1DisjunctivePropagator.html">operations_research::DisjunctivePropagator</a></div><div class="ttdoc">This class acts like a CP propagator: it takes a set of tasks given by their start/duration/end featu...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01708">routing.h:1708</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a009f247167f32509baf749083e4bc984"><div class="ttname"><a href="namespaceoperations__research.html#a009f247167f32509baf749083e4bc984">operations_research::Zero</a></div><div class="ttdeci">int64 Zero()</div><div class="ttdoc">NOLINT.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l03076">constraint_solver.h:3076</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a7a699c6ed63d424d0c3c322eb7161ace"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a7a699c6ed63d424d0c3c322eb7161ace">operations_research::TypeRegulationsChecker::FinalizeCheck</a></div><div class="ttdeci">virtual bool FinalizeCheck() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01916">routing.h:1916</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a9fc965a401f96f12f9101b73ece8d26a"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a9fc965a401f96f12f9101b73ece8d26a">operations_research::RoutingModel::AddConstantDimension</a></div><div class="ttdeci">bool AddConstantDimension(int64 value, int64 capacity, bool fix_start_cumul_to_zero, const std::string &amp;name)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00432">routing.h:432</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html">operations_research::RoutingDimension</a></div><div class="ttdoc">Dimensions represent quantities accumulated at nodes along the routes.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02046">routing.h:2046</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a4f6a1b9fc737ba25fee7bf42d6635182"><div class="ttname"><a href="namespaceoperations__research.html#a4f6a1b9fc737ba25fee7bf42d6635182">operations_research::FillPathEvaluation</a></div><div class="ttdeci">void FillPathEvaluation(const std::vector&lt; int64 &gt; &amp;path, const RoutingModel::TransitCallback2 &amp;evaluator, std::vector&lt; int64 &gt; *values)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_afdd0e9e72af498399358bd22c591ae5c"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#afdd0e9e72af498399358bd22c591ae5c">operations_research::RoutingModel::SetAllowedVehiclesForIndex</a></div><div class="ttdeci">void SetAllowedVehiclesForIndex(const std::vector&lt; int &gt; &amp;vehicles, int64 index)</div><div class="ttdoc">Sets the vehicles which can visit a given node.</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_aeb4e0e0b0899af694678658062b4f037"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#aeb4e0e0b0899af694678658062b4f037">operations_research::SavingsFilteredDecisionBuilder::BuildRoutesFromSavings</a></div><div class="ttdeci">virtual void BuildRoutesFromSavings()=0</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a6a4b2eb4cf5999b4e84ef3da78beb42c"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a6a4b2eb4cf5999b4e84ef3da78beb42c">operations_research::RoutingDimension::fixed_transits</a></div><div class="ttdeci">const std::vector&lt; IntVar * &gt; &amp; fixed_transits() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02073">routing.h:2073</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae1acdfe3dcf892d108d2a2ecab94e936"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae1acdfe3dcf892d108d2a2ecab94e936">operations_research::RoutingModel::SetAmortizedCostFactorsOfVehicle</a></div><div class="ttdeci">void SetAmortizedCostFactorsOfVehicle(int64 linear_cost_factor, int64 quadratic_cost_factor, int vehicle)</div><div class="ttdoc">Sets the linear and quadratic cost factor of the given vehicle.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa1c45751ee316e0948ba32494262f006"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa1c45751ee316e0948ba32494262f006">operations_research::RoutingModel::MakeGreedyDescentLSOperator</a></div><div class="ttdeci">static std::unique_ptr&lt; LocalSearchOperator &gt; MakeGreedyDescentLSOperator(std::vector&lt; IntVar * &gt; variables)</div><div class="ttdoc">Perhaps move it to constraint_solver.h.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae033bc458ffce1ecc4874f3e212896f7"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae033bc458ffce1ecc4874f3e212896f7">operations_research::RoutingModel::PreAssignment</a></div><div class="ttdeci">const Assignment *const PreAssignment() const</div><div class="ttdoc">Returns an assignment used to fix some of the variables of the problem.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00962">routing.h:962</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_a7d97f1723731f1618d519c2089f8f349"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a7d97f1723731f1618d519c2089f8f349">operations_research::RoutingModel::VehicleClass::dimension_capacities</a></div><div class="ttdeci">gtl::ITIVector&lt; DimensionIndex, int64 &gt; dimension_capacities</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00336">routing.h:336</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a07b796e9f91ee5b4c5e99c7f23e2f743"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a07b796e9f91ee5b4c5e99c7f23e2f743">operations_research::RoutingModel::SetFixedCostOfAllVehicles</a></div><div class="ttdeci">void SetFixedCostOfAllVehicles(int64 cost)</div><div class="ttdoc">Sets the fixed cost of all vehicle routes.</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a28ee18c0e0da9de081c81efe393a528dac157bdf0b85a40d2619cbc8bc1ae5fe2"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a28ee18c0e0da9de081c81efe393a528dac157bdf0b85a40d2619cbc8bc1ae5fe2">operations_research::TypeRegulationsChecker::NONE</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01900">routing.h:1900</a></div></div>
<div class="ttc" id="classoperations__research_1_1Solver_html"><div class="ttname"><a href="classoperations__research_1_1Solver.html">operations_research::Solver</a></div><div class="ttdoc">Solver Class.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l00231">constraint_solver.h:231</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1StateDependentTransit_html_aa62eca1f13335c62c6eadad531f06247"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html#aa62eca1f13335c62c6eadad531f06247">operations_research::RoutingModel::StateDependentTransit::transit</a></div><div class="ttdeci">RangeIntToIntFunction * transit</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00258">routing.h:258</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a89db28c1da47c5aef8a0aa380a1800ec"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a89db28c1da47c5aef8a0aa380a1800ec">operations_research::RoutingModel::kNoPenalty</a></div><div class="ttdeci">static const int64 kNoPenalty</div><div class="ttdoc">Constant used to express a hard constraint instead of a soft penalty.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00349">routing.h:349</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a92d7882c311f7d9d0c55c4def34150dd"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a92d7882c311f7d9d0c55c4def34150dd">operations_research::RoutingModel::GetArcCostForClass</a></div><div class="ttdeci">int64 GetArcCostForClass(int64 from_index, int64 to_index, int64 cost_class_index) const</div><div class="ttdoc">Returns the cost of the segment between two nodes for a given cost class.</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html">operations_research::SavingsFilteredDecisionBuilder</a></div><div class="ttdoc">Filter-based decision builder which builds a solution by using Clarke &amp; Wright's Savings heuristic.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02996">routing.h:2996</a></div></div>
<div class="ttc" id="constraint__solveri_8h_html"><div class="ttname"><a href="constraint__solveri_8h.html">constraint_solveri.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1GlobalVehicleBreaksConstraint_html_a19d94d32f3bde30deeebb883c6f71f84"><div class="ttname"><a href="classoperations__research_1_1GlobalVehicleBreaksConstraint.html#a19d94d32f3bde30deeebb883c6f71f84">operations_research::GlobalVehicleBreaksConstraint::Post</a></div><div class="ttdeci">void Post() override</div><div class="ttdoc">This method is called when the constraint is processed by the solver.</div></div>
<div class="ttc" id="classoperations__research_1_1SimpleBoundCosts_html_a19e1b2057c4fd91aab838ee1c159da8b"><div class="ttname"><a href="classoperations__research_1_1SimpleBoundCosts.html#a19e1b2057c4fd91aab838ee1c159da8b">operations_research::SimpleBoundCosts::bound_cost</a></div><div class="ttdeci">BoundCost &amp; bound_cost(int element)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02015">routing.h:2015</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a437ae499bef0aa64f2753166a000f5bd"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a437ae499bef0aa64f2753166a000f5bd">operations_research::RoutingModel::AddToAssignment</a></div><div class="ttdeci">void AddToAssignment(IntVar *const var)</div><div class="ttdoc">Adds an extra variable to the vehicle routing assignment.</div></div>
<div class="ttc" id="classoperations__research_1_1ChristofidesFilteredDecisionBuilder_html_af660f787c9f377b99beaef144e9b228e"><div class="ttname"><a href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#af660f787c9f377b99beaef144e9b228e">operations_research::ChristofidesFilteredDecisionBuilder::~ChristofidesFilteredDecisionBuilder</a></div><div class="ttdeci">~ChristofidesFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03193">routing.h:3193</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a97dca877bb5083a72c147628a8439770"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a97dca877bb5083a72c147628a8439770">operations_research::RoutingModel::ReadAssignmentFromRoutes</a></div><div class="ttdeci">Assignment * ReadAssignmentFromRoutes(const std::vector&lt; std::vector&lt; int64 &gt;&gt; &amp;routes, bool ignore_inactive_indices)</div><div class="ttdoc">Restores the routes as the current solution.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a5c95c1b0049cb5dddbd4995ad8cd5b4e"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a5c95c1b0049cb5dddbd4995ad8cd5b4e">operations_research::RoutingDimension::vehicle_capacities</a></div><div class="ttdeci">const std::vector&lt; int64 &gt; &amp; vehicle_capacities() const</div><div class="ttdoc">Returns the capacities for all vehicles.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02082">routing.h:2082</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_a2e96542c2d18ed442c6dc3367009fe0e"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a2e96542c2d18ed442c6dc3367009fe0e">operations_research::RoutingModel::VehicleClass::dimension_evaluator_classes</a></div><div class="ttdeci">gtl::ITIVector&lt; DimensionIndex, int64 &gt; dimension_evaluator_classes</div><div class="ttdoc">dimension_evaluators[d]-&gt;Run(from, to) is the transit value of arc from-&gt;to for a dimension d.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00339">routing.h:339</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a607df50e6bc0dc54fbe811e96155ee95"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a607df50e6bc0dc54fbe811e96155ee95">operations_research::RoutingDimension::GetCumulVarSoftLowerBound</a></div><div class="ttdeci">int64 GetCumulVarSoftLowerBound(int64 index) const</div><div class="ttdoc">Returns the soft lower bound of a cumul variable for a given variable index.</div></div>
<div class="ttc" id="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder_html_aed804747c45a7e1caf81461f9e45dd91"><div class="ttname"><a href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">operations_research::ComparatorCheapestAdditionFilteredDecisionBuilder::DebugString</a></div><div class="ttdeci">std::string DebugString() const override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02975">routing.h:2975</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a80ebd60db4ccb3f512288a553f181fe9"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a80ebd60db4ccb3f512288a553f181fe9">operations_research::RoutingDimension::AddNodePrecedence</a></div><div class="ttdeci">void AddNodePrecedence(NodePrecedence precedence)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02295">routing.h:2295</a></div></div>
<div class="ttc" id="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder_html_aed804747c45a7e1caf81461f9e45dd91"><div class="ttname"><a href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">operations_research::ParallelSavingsFilteredDecisionBuilder::DebugString</a></div><div class="ttdeci">std::string DebugString() const override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03149">routing.h:3149</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html">operations_research::RoutingModel::VehicleClass</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00317">routing.h:317</a></div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_aab2d3476524269df9653877e976028d1"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#aab2d3476524269df9653877e976028d1">operations_research::SavingsFilteredDecisionBuilder::GetBeforeNodeFromSaving</a></div><div class="ttdeci">int64 GetBeforeNodeFromSaving(const Saving &amp;saving) const</div><div class="ttdoc">Returns the &quot;before node&quot; from a saving.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03045">routing.h:3045</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a635aac580cbeb4bcde72c9464f33ac06"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a635aac580cbeb4bcde72c9464f33ac06">operations_research::RoutingModel::GetDimensions</a></div><div class="ttdeci">const std::vector&lt; RoutingDimension * &gt; &amp; GetDimensions() const</div><div class="ttdoc">Returns all dimensions of the model.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00512">routing.h:512</a></div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_ac20998bdd4fc9d5433c82184b4f56925"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#ac20998bdd4fc9d5433c82184b4f56925">operations_research::IntVarFilteredDecisionBuilder::SetValue</a></div><div class="ttdeci">void SetValue(int64 index, int64 value)</div><div class="ttdoc">Modifies the current solution by setting the variable of index 'index' to value 'value'.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02546">routing.h:2546</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_aa21323f8eeaa9c502d6cfb92109a73d4"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#aa21323f8eeaa9c502d6cfb92109a73d4">operations_research::RoutingDimension::SetPickupToDeliveryLimitFunctionForPair</a></div><div class="ttdeci">void SetPickupToDeliveryLimitFunctionForPair(PickupToDeliveryLimitFunction limit_function, int pair_index)</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarElement_html_aeabf4572ab5bf48ec3e07660c9587385"><div class="ttname"><a href="classoperations__research_1_1IntVarElement.html#aeabf4572ab5bf48ec3e07660c9587385">operations_research::IntVarElement::Value</a></div><div class="ttdeci">int64 Value() const</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l04566">constraint_solver.h:4566</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_afa7cbbd4db2dd5d0bec3393efc9ebac1"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">operations_research::RoutingModel::DisjunctionIndex</a></div><div class="ttdeci">RoutingDisjunctionIndex DisjunctionIndex</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00233">routing.h:233</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html">operations_research::RoutingFilteredDecisionBuilder</a></div><div class="ttdoc">Filter-based decision builder dedicated to routing.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02590">routing.h:2590</a></div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_a450130fc232b9ab24cc44a7c215850b6"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a450130fc232b9ab24cc44a7c215850b6">operations_research::DisjunctivePropagator::Tasks::is_preemptible</a></div><div class="ttdeci">std::vector&lt; bool &gt; is_preemptible</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01723">routing.h:1723</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a00141bd90e555aea59a9e98cfbcda6eb"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a00141bd90e555aea59a9e98cfbcda6eb">operations_research::RoutingModel::RoutingModelInspector</a></div><div class="ttdeci">friend class RoutingModelInspector</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01691">routing.h:1691</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_adeac1b3791fe4e3ba366bbb60c268ae7"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#adeac1b3791fe4e3ba366bbb60c268ae7">operations_research::RoutingDimension::slacks</a></div><div class="ttdeci">const std::vector&lt; IntVar * &gt; &amp; slacks() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02075">routing.h:2075</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_af626487fbe89510613df5f35bdf9a002"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#af626487fbe89510613df5f35bdf9a002">operations_research::RoutingModel::VehicleClass::cost_class_index</a></div><div class="ttdeci">CostClassIndex cost_class_index</div><div class="ttdoc">The cost class of the vehicle.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00319">routing.h:319</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_a69d38e86eb8fc2fa4df0d8839c8dd5a9"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a69d38e86eb8fc2fa4df0d8839c8dd5a9">operations_research::CheapestInsertionFilteredDecisionBuilder::InitializePriorityQueue</a></div><div class="ttdeci">void InitializePriorityQueue(std::vector&lt; std::vector&lt; StartEndValue &gt; &gt; *start_end_distances_per_node, Queue *priority_queue)</div><div class="ttdoc">Initializes the priority_queue by inserting the best entry corresponding to each node,...</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_ad0f12c443e4158fdb27375de6fe0fb95"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#ad0f12c443e4158fdb27375de6fe0fb95">operations_research::RoutingModel::VehicleClass::unvisitable_nodes_fprint</a></div><div class="ttdeci">uint64 unvisitable_nodes_fprint</div><div class="ttdoc">Fingerprint of unvisitable non-start/end nodes.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00341">routing.h:341</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRequirementChecker_html"><div class="ttname"><a href="classoperations__research_1_1TypeRequirementChecker.html">operations_research::TypeRequirementChecker</a></div><div class="ttdoc">Checker for type requirements.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01942">routing.h:1942</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a562e4c0a80f7f4eda9573a482af288d1"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1">operations_research::RoutingModel::Solve</a></div><div class="ttdeci">const Assignment * Solve(const Assignment *assignment=nullptr)</div><div class="ttdoc">Solves the current routing model; closes the current model.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a9c58894df747f5498c335a3a8c5c0c88"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a9c58894df747f5498c335a3a8c5c0c88">operations_research::RoutingModel::HasHardTypeIncompatibilities</a></div><div class="ttdeci">bool HasHardTypeIncompatibilities() const</div><div class="ttdoc">Returns true iff any hard (resp.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00739">routing.h:739</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_abc101a64a3c876dcdf1b7176d59bd2c9"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#abc101a64a3c876dcdf1b7176d59bd2c9">operations_research::RoutingModel::HasSameVehicleTypeRequirements</a></div><div class="ttdeci">bool HasSameVehicleTypeRequirements() const</div><div class="ttdoc">Returns true iff any same-route (resp.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00772">routing.h:772</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a566ddf59563c1b37e8c178b1805aa0f4"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a566ddf59563c1b37e8c178b1805aa0f4">operations_research::RoutingModel::RestoreAssignment</a></div><div class="ttdeci">Assignment * RestoreAssignment(const Assignment &amp;solution)</div><div class="ttdoc">Restores an assignment as a solution in the routing model and returns the new solution.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">operations_research::RoutingModel::Status</a></div><div class="ttdeci">Status</div><div class="ttdoc">Status of the search.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00209">routing.h:209</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a204041e5264282d54dfd198011e776d3"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">operations_research::RoutingModel::TransitCallback1</a></div><div class="ttdeci">RoutingTransitCallback1 TransitCallback1</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00235">routing.h:235</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a3e87a7710617f6ac19dca14adad9c5a6"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a3e87a7710617f6ac19dca14adad9c5a6">operations_research::RoutingModel::CompactAndCheckAssignment</a></div><div class="ttdeci">Assignment * CompactAndCheckAssignment(const Assignment &amp;assignment) const</div><div class="ttdoc">Same as CompactAssignment() but also checks the validity of the final compact solution; if it is not ...</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_aa4ff894026533b3ea426f184387e63b2"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#aa4ff894026533b3ea426f184387e63b2">operations_research::TypeRegulationsChecker::GetNonDeliveryCount</a></div><div class="ttdeci">int GetNonDeliveryCount(int type) const</div><div class="ttdoc">Returns the number of pickups and fixed nodes from counts_of_type_[&quot;type&quot;].</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ae85d6e3327a52eb2e93195d1ba45884d"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ae85d6e3327a52eb2e93195d1ba45884d">operations_research::RoutingDimension::HasCumulVarPiecewiseLinearCost</a></div><div class="ttdeci">bool HasCumulVarPiecewiseLinearCost(int64 index) const</div><div class="ttdoc">Returns true if a piecewise linear cost has been set for a given variable index.</div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_aa71d36872f416feaa853788a7a7a7ef8"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#aa71d36872f416feaa853788a7a7a7ef8">operations_research::DisjunctivePropagator::Tasks::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01727">routing.h:1727</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a1739a41268c21cfc401d870f05b93536"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a1739a41268c21cfc401d870f05b93536">operations_research::RoutingModel::AddVariableTargetToFinalizer</a></div><div class="ttdeci">void AddVariableTargetToFinalizer(IntVar *var, int64 target)</div><div class="ttdoc">Add a variable to set the closest possible to the target value in the solution finalizer.</div></div>
<div class="ttc" id="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder_html_aec1de2c66b697f20f589f87c27a2a7c0"><div class="ttname"><a href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html#aec1de2c66b697f20f589f87c27a2a7c0">operations_research::CheapestAdditionFilteredDecisionBuilder::~CheapestAdditionFilteredDecisionBuilder</a></div><div class="ttdeci">~CheapestAdditionFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02908">routing.h:2908</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_aea64f6b7cb80887be5478c35609cab1c"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#aea64f6b7cb80887be5478c35609cab1c">operations_research::RoutingDimension::HasCumulVarSoftUpperBound</a></div><div class="ttdeci">bool HasCumulVarSoftUpperBound(int64 index) const</div><div class="ttdoc">Returns true if a soft upper bound has been set for a given variable index.</div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_a8869de3e40b0eeee56470a8fc0cd4528"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#a8869de3e40b0eeee56470a8fc0cd4528">operations_research::BasePathFilter::IsDisabled</a></div><div class="ttdeci">bool IsDisabled() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03231">routing.h:3231</a></div></div>
<div class="ttc" id="classoperations__research_1_1SweepArranger_html_a3dfcea8a02b5d4ec8576e41859e92b28"><div class="ttname"><a href="classoperations__research_1_1SweepArranger.html#a3dfcea8a02b5d4ec8576e41859e92b28">operations_research::SweepArranger::SweepArranger</a></div><div class="ttdeci">SweepArranger(const std::vector&lt; std::pair&lt; int64, int64 &gt;&gt; &amp;points)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a43c49fc1660ae71cdb30ae93bcac80d7"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a43c49fc1660ae71cdb30ae93bcac80d7">operations_research::RoutingModel::IsVehicleAllowedForIndex</a></div><div class="ttdeci">bool IsVehicleAllowedForIndex(int vehicle, int64 index)</div><div class="ttdoc">Returns true if a vehicle is allowed to visit a given node.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00642">routing.h:642</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a1048b3f7ef92f0d7747f93c8586ea1cc"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a1048b3f7ef92f0d7747f93c8586ea1cc">operations_research::RoutingModel::ArcIsMoreConstrainedThanArc</a></div><div class="ttdeci">bool ArcIsMoreConstrainedThanArc(int64 from, int64 to1, int64 to2)</div><div class="ttdoc">Returns whether the arc from-&gt;to1 is more constrained than from-&gt;to2, taking into account,...</div></div>
<div class="ttc" id="classoperations__research_1_1CPFeasibilityFilter_html_afdcee45789dba70a9bf59f21f9d9fd43"><div class="ttname"><a href="classoperations__research_1_1CPFeasibilityFilter.html#afdcee45789dba70a9bf59f21f9d9fd43">operations_research::CPFeasibilityFilter::~CPFeasibilityFilter</a></div><div class="ttdeci">~CPFeasibilityFilter() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03285">routing.h:3285</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a67a0db04d321a74b7e7fcfd3f1a3f70baba9b2029e549c14c8a6b9f6201e329fd"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70baba9b2029e549c14c8a6b9f6201e329fd">operations_research::RoutingModel::ROUTING_FAIL</a></div><div class="ttdoc">No solution found to the problem after calling RoutingModel::Solve().</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00215">routing.h:215</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a54e75670bdbf7abca93c9e02cfee83fe"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a54e75670bdbf7abca93c9e02cfee83fe">operations_research::RoutingDimension::HasCumulVarSoftLowerBound</a></div><div class="ttdeci">bool HasCumulVarSoftLowerBound(int64 index) const</div><div class="ttdoc">Returns true if a soft lower bound has been set for a given variable index.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ac041507427102f15800b00ece1f7b2c8"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ac041507427102f15800b00ece1f7b2c8">operations_research::RoutingModel::MakePathSpansAndTotalSlacks</a></div><div class="ttdeci">Constraint * MakePathSpansAndTotalSlacks(const RoutingDimension *dimension, std::vector&lt; IntVar * &gt; spans, std::vector&lt; IntVar * &gt; total_slacks)</div><div class="ttdoc">For every vehicle of the routing model:</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a375d5aec667421cb92f6439464420062"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a375d5aec667421cb92f6439464420062">operations_research::RoutingDimension::GetGlobalOptimizerOffset</a></div><div class="ttdeci">int64 GetGlobalOptimizerOffset() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02327">routing.h:2327</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ab8d61705aa4291d2cd437ba0a7dfccbf"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ab8d61705aa4291d2cd437ba0a7dfccbf">operations_research::RoutingModel::SetArcCostEvaluatorOfAllVehicles</a></div><div class="ttdeci">void SetArcCostEvaluatorOfAllVehicles(int evaluator_index)</div><div class="ttdoc">Sets the cost function of the model such that the cost of a segment of a route between node 'from' an...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae9b2404a26ab1e6acf562b8261eeba38"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae9b2404a26ab1e6acf562b8261eeba38">operations_research::RoutingModel::ComputeLowerBound</a></div><div class="ttdeci">int64 ComputeLowerBound()</div><div class="ttdoc">Computes a lower bound to the routing problem solving a linear assignment problem.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a4e8f5b5f090cf084347eda6eb803813a"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a4e8f5b5f090cf084347eda6eb803813a">operations_research::RoutingModel::SetFixedCostOfVehicle</a></div><div class="ttdeci">void SetFixedCostOfVehicle(int64 cost, int vehicle)</div><div class="ttdoc">Sets the fixed cost of one vehicle route.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a1156fa8214dba09e2a2a94862244aa1f"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a1156fa8214dba09e2a2a94862244aa1f">operations_research::RoutingModel::AddLocalSearchOperator</a></div><div class="ttdeci">void AddLocalSearchOperator(LocalSearchOperator *ls_operator)</div><div class="ttdoc">Adds a local search operator to the set of operators used to solve the vehicle routing problem.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a5cc6e6b421a6dfc8650cc38e116fff03"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a5cc6e6b421a6dfc8650cc38e116fff03">operations_research::RoutingModel::PackCumulsOfOptimizerDimensionsFromAssignment</a></div><div class="ttdeci">const Assignment * PackCumulsOfOptimizerDimensionsFromAssignment(const Assignment *original_assignment, absl::Duration duration_limit)</div><div class="ttdoc">For every dimension in the model with an optimizer in local/global_dimension_optimizers_,...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a3656e594d89a44fb6b35ba8f2d395624"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a3656e594d89a44fb6b35ba8f2d395624">operations_research::RoutingModel::SetPickupAndDeliveryPolicyOfAllVehicles</a></div><div class="ttdeci">void SetPickupAndDeliveryPolicyOfAllVehicles(PickupAndDeliveryPolicy policy)</div><div class="ttdoc">Sets the Pickup and delivery policy of all vehicles.</div></div>
<div class="ttc" id="classoperations__research_1_1ChristofidesFilteredDecisionBuilder_html_ad4499e465fd3aaa3088e97227eaf653d"><div class="ttname"><a href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">operations_research::ChristofidesFilteredDecisionBuilder::BuildSolution</a></div><div class="ttdeci">bool BuildSolution() override</div><div class="ttdoc">Virtual method to redefine to build a solution.</div></div>
<div class="ttc" id="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters_html_a0aa77787d0df1b489476bfc6714ef819"><div class="ttname"><a href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a0aa77787d0df1b489476bfc6714ef819">operations_research::SavingsFilteredDecisionBuilder::SavingsParameters::neighbors_ratio</a></div><div class="ttdeci">double neighbors_ratio</div><div class="ttdoc">If neighbors_ratio &lt; 1 then for each node only this ratio of its neighbors leading to the smallest ar...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03001">routing.h:3001</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_af12674b693b7b7cfe271e5b066e10bff"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#af12674b693b7b7cfe271e5b066e10bff">operations_research::RoutingModel::RoutingModel</a></div><div class="ttdeci">RoutingModel(const RoutingIndexManager &amp;index_manager)</div><div class="ttdoc">Constructor taking an index manager.</div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_a511cf14b54c83cffc0a673985db90643"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#a511cf14b54c83cffc0a673985db90643">operations_research::BasePathFilter::Accept</a></div><div class="ttdeci">bool Accept(const Assignment *delta, const Assignment *deltadelta, int64 objective_min, int64 objective_max) override</div><div class="ttdoc">Accepts a &quot;delta&quot; given the assignment with which the filter has been synchronized; the delta holds t...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae9de37fba84b76353809819903940473"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae9de37fba84b76353809819903940473">operations_research::RoutingModel::GetDimensionOrDie</a></div><div class="ttdeci">const RoutingDimension &amp; GetDimensionOrDie(const std::string &amp;dimension_name) const</div><div class="ttdoc">Returns a dimension from its name. Dies if the dimension does not exist.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_add71470f4175a0859e6e3d69c2a53988"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#add71470f4175a0859e6e3d69c2a53988">operations_research::RoutingModel::CloseModel</a></div><div class="ttdeci">void CloseModel()</div><div class="ttdoc">Closes the current routing model; after this method is called, no modification to the model can be do...</div></div>
<div class="ttc" id="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder_html_a051ea783802d58387a4d6c2836fb089e"><div class="ttname"><a href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html#a051ea783802d58387a4d6c2836fb089e">operations_research::ParallelSavingsFilteredDecisionBuilder::~ParallelSavingsFilteredDecisionBuilder</a></div><div class="ttdeci">~ParallelSavingsFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03148">routing.h:3148</a></div></div>
<div class="ttc" id="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder_html_a4a6f036b8d02eab66861223c3ec16e79"><div class="ttname"><a href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html#a4a6f036b8d02eab66861223c3ec16e79">operations_research::SequentialSavingsFilteredDecisionBuilder::~SequentialSavingsFilteredDecisionBuilder</a></div><div class="ttdeci">~SequentialSavingsFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03126">routing.h:3126</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingFilteredDecisionBuilder_html_aa0ae711364aadabc5365babc40a79fed"><div class="ttname"><a href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#aa0ae711364aadabc5365babc40a79fed">operations_research::RoutingFilteredDecisionBuilder::MakeDisjunctionNodesUnperformed</a></div><div class="ttdeci">void MakeDisjunctionNodesUnperformed(int64 node)</div><div class="ttdoc">Make nodes in the same disjunction as 'node' unperformed.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a1acd42381917a2b8dd956f87657e7bf1"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a1acd42381917a2b8dd956f87657e7bf1">operations_research::RoutingModel::GetMutableGlobalCumulOptimizer</a></div><div class="ttdeci">GlobalDimensionCumulOptimizer * GetMutableGlobalCumulOptimizer(const RoutingDimension &amp;dimension) const</div><div class="ttdoc">Returns the global/local dimension cumul optimizer for a given dimension, or nullptr if there is none...</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_aa1103b3a47f7bf316a81ed91ba3e4657"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#aa1103b3a47f7bf316a81ed91ba3e4657">operations_research::IntVarFilteredDecisionBuilder::InitializeSolution</a></div><div class="ttdeci">virtual bool InitializeSolution()</div><div class="ttdoc">Virtual method to initialize the solution.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02537">routing.h:2537</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a3de43a015d4ee3ce53eb030e1d7232de"><div class="ttname"><a href="namespaceoperations__research.html#a3de43a015d4ee3ce53eb030e1d7232de">operations_research::MakeTypeRegulationsFilter</a></div><div class="ttdeci">IntVarLocalSearchFilter * MakeTypeRegulationsFilter(const RoutingModel &amp;routing_model)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae0c21c6d4e99cb309b8b298d280e4853"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae0c21c6d4e99cb309b8b298d280e4853">operations_research::RoutingModel::CostsAreHomogeneousAcrossVehicles</a></div><div class="ttdeci">bool CostsAreHomogeneousAcrossVehicles() const</div><div class="ttdoc">Whether costs are homogeneous across all vehicles.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01113">routing.h:1113</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingFilteredDecisionBuilder_html_a89e300dadd957cd6324963ed5ff5c103"><div class="ttname"><a href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a89e300dadd957cd6324963ed5ff5c103">operations_research::RoutingFilteredDecisionBuilder::~RoutingFilteredDecisionBuilder</a></div><div class="ttdeci">~RoutingFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02594">routing.h:2594</a></div></div>
<div class="ttc" id="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder_html_aed804747c45a7e1caf81461f9e45dd91"><div class="ttname"><a href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">operations_research::SequentialSavingsFilteredDecisionBuilder::DebugString</a></div><div class="ttdeci">std::string DebugString() const override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03127">routing.h:3127</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ab7aef297f0c654af26dc7108c9ee6c69"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ab7aef297f0c654af26dc7108c9ee6c69">operations_research::RoutingDimension::RoutingModel</a></div><div class="ttdeci">friend class RoutingModel</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02476">routing.h:2476</a></div></div>
<div class="ttc" id="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue_html_a3b397c04a34b9ac7392257939f90b1bb"><div class="ttname"><a href="structoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_1_1StartEndValue.html#a3b397c04a34b9ac7392257939f90b1bb">operations_research::CheapestInsertionFilteredDecisionBuilder::StartEndValue::distance</a></div><div class="ttdeci">int64 distance</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02631">routing.h:2631</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_afadc1348f0318e9bc8cebb75b2fc4234"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#afadc1348f0318e9bc8cebb75b2fc4234">operations_research::RoutingModel::ActiveVar</a></div><div class="ttdeci">IntVar * ActiveVar(int64 index) const</div><div class="ttdoc">Returns the active variable of the node corresponding to index.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01096">routing.h:1096</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_af78632ced2f48bdc3f377bddee029370"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#af78632ced2f48bdc3f377bddee029370">operations_research::CheapestInsertionFilteredDecisionBuilder::CheapestInsertionFilteredDecisionBuilder</a></div><div class="ttdeci">CheapestInsertionFilteredDecisionBuilder(RoutingModel *model, std::function&lt; int64(int64, int64, int64)&gt; evaluator, std::function&lt; int64(int64)&gt; penalty_evaluator, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div><div class="ttdoc">Takes ownership of evaluator.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aedb8dca94b15e5465fef1667d1a81db6"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aedb8dca94b15e5465fef1667d1a81db6">operations_research::RoutingModel::IsVehicleUsed</a></div><div class="ttdeci">bool IsVehicleUsed(const Assignment &amp;assignment, int vehicle) const</div><div class="ttdoc">Returns true if the route of 'vehicle' is non empty in 'assignment'.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa01519be299cb5ddef36111ee6f8a5cc"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa01519be299cb5ddef36111ee6f8a5cc">operations_research::RoutingModel::GetAmortizedLinearCostFactorOfVehicles</a></div><div class="ttdeci">const std::vector&lt; int64 &gt; &amp; GetAmortizedLinearCostFactorOfVehicles() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00839">routing.h:839</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_a9f7fbf98fe796946fe0be2ca5c8b4e50"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a9f7fbf98fe796946fe0be2ca5c8b4e50">operations_research::RoutingModel::VehicleClass::start_equivalence_class</a></div><div class="ttdeci">int start_equivalence_class</div><div class="ttdoc">Vehicle start and end equivalence classes.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00328">routing.h:328</a></div></div>
<div class="ttc" id="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters_html"><div class="ttname"><a href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html">operations_research::SavingsFilteredDecisionBuilder::SavingsParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02998">routing.h:2998</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a717341229f16012899360656534bba50"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a717341229f16012899360656534bba50">operations_research::RoutingDimension::base_dimension</a></div><div class="ttdeci">const RoutingDimension * base_dimension() const</div><div class="ttdoc">Returns the parent in the dependency tree if any or nullptr otherwise.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02250">routing.h:2250</a></div></div>
<div class="ttc" id="classoperations__research_1_1GlobalDimensionCumulOptimizer_html"><div class="ttname"><a href="classoperations__research_1_1GlobalDimensionCumulOptimizer.html">operations_research::GlobalDimensionCumulOptimizer</a></div><div class="ttdef"><b>Definition:</b> <a href="routing__lp__scheduling_8h_source.html#l00271">routing_lp_scheduling.h:271</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ad74e0742282743e9a78680f0565015be"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ad74e0742282743e9a78680f0565015be">operations_research::RoutingModel::GetGlobalDimensionCumulOptimizers</a></div><div class="ttdeci">const std::vector&lt; std::unique_ptr&lt; GlobalDimensionCumulOptimizer &gt; &gt; &amp; GetGlobalDimensionCumulOptimizers() const</div><div class="ttdoc">Returns [global|local]_dimension_optimizers_, which are empty if the model has not been closed.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00521">routing.h:521</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html">operations_research::CheapestInsertionFilteredDecisionBuilder</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02618">routing.h:2618</a></div></div>
<div class="ttc" id="classoperations__research_1_1CPFeasibilityFilter_html_aed804747c45a7e1caf81461f9e45dd91"><div class="ttname"><a href="classoperations__research_1_1CPFeasibilityFilter.html#aed804747c45a7e1caf81461f9e45dd91">operations_research::CPFeasibilityFilter::DebugString</a></div><div class="ttdeci">std::string DebugString() const override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03286">routing.h:3286</a></div></div>
<div class="ttc" id="classoperations__research_1_1CPFeasibilityFilter_html_a0b2f66f74b2fc754eaa3a42df786caf3"><div class="ttname"><a href="classoperations__research_1_1CPFeasibilityFilter.html#a0b2f66f74b2fc754eaa3a42df786caf3">operations_research::CPFeasibilityFilter::CPFeasibilityFilter</a></div><div class="ttdeci">CPFeasibilityFilter(const RoutingModel *routing_model)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingFilteredDecisionBuilder_html_a97049801609b8cb68c0428970f916fd4"><div class="ttname"><a href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a97049801609b8cb68c0428970f916fd4">operations_research::RoutingFilteredDecisionBuilder::MakeUnassignedNodesUnperformed</a></div><div class="ttdeci">void MakeUnassignedNodesUnperformed()</div><div class="ttdoc">Make all unassigned nodes unperformed.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae8364b53d49a5b46e994d41124c4ffd6"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae8364b53d49a5b46e994d41124c4ffd6">operations_research::RoutingModel::UnperformedPenaltyOrValue</a></div><div class="ttdeci">int64 UnperformedPenaltyOrValue(int64 default_value, int64 var_index) const</div><div class="ttdoc">Same as above except that it returns default_value instead of 0 when penalty is not well defined (def...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a88c834076ab8e7237fe49b17a907a847"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a88c834076ab8e7237fe49b17a907a847">operations_research::RoutingDimension::vehicle_span_upper_bounds</a></div><div class="ttdeci">const std::vector&lt; int64 &gt; &amp; vehicle_span_upper_bounds() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02311">routing.h:2311</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ab76cd57b0490eb4253fd1bf792e23f16"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ab76cd57b0490eb4253fd1bf792e23f16">operations_research::RoutingModel::AddDimension</a></div><div class="ttdeci">bool AddDimension(int evaluator_index, int64 slack_max, int64 capacity, bool fix_start_cumul_to_zero, const std::string &amp;name)</div><div class="ttdoc">Model creation.</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a6910883530634398a1b66f84ab33e7be"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a6910883530634398a1b66f84ab33e7be">operations_research::SavingsFilteredDecisionBuilder::~SavingsFilteredDecisionBuilder</a></div><div class="ttdeci">~SavingsFilteredDecisionBuilder() override</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_adc8bb803b3a5f74bd5e1c04d0154b03c"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#adc8bb803b3a5f74bd5e1c04d0154b03c">operations_research::RoutingDimension::SetCumulVarSoftLowerBound</a></div><div class="ttdeci">void SetCumulVarSoftLowerBound(int64 index, int64 lower_bound, int64 coefficient)</div><div class="ttdoc">Sets a soft lower bound to the cumul variable of a given variable index.</div></div>
<div class="ttc" id="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry_html"><div class="ttname"><a href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html">operations_research::SavingsFilteredDecisionBuilder::VehicleClassEntry</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03026">routing.h:3026</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsConstraint_html"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsConstraint.html">operations_research::TypeRegulationsConstraint</a></div><div class="ttdoc">The following constraint ensures that incompatibilities and requirements between types are respected.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01978">routing.h:1978</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a5f32c22c620c811754ba7b6f977db864"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a5f32c22c620c811754ba7b6f977db864">operations_research::RoutingModel::solver</a></div><div class="ttdeci">Solver * solver() const</div><div class="ttdoc">Returns the underlying constraint solver.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01192">routing.h:1192</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a28ee18c0e0da9de081c81efe393a528daa3d86aeb99ea59e36fba09925c54513d"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a28ee18c0e0da9de081c81efe393a528daa3d86aeb99ea59e36fba09925c54513d">operations_research::TypeRegulationsChecker::DELIVERY</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01900">routing.h:1900</a></div></div>
<div class="ttc" id="classoperations__research_1_1GlobalVehicleBreaksConstraint_html_acb1ca5666c8795f29fc71c28d7bb0386"><div class="ttname"><a href="classoperations__research_1_1GlobalVehicleBreaksConstraint.html#acb1ca5666c8795f29fc71c28d7bb0386">operations_research::GlobalVehicleBreaksConstraint::GlobalVehicleBreaksConstraint</a></div><div class="ttdeci">GlobalVehicleBreaksConstraint(const RoutingDimension *dimension)</div></div>
<div class="ttc" id="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html">operations_research::CheapestAdditionFilteredDecisionBuilder</a></div><div class="ttdoc">Filtered-base decision builder based on the addition heuristic, extending a path from its start node ...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02903">routing.h:2903</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_abaa74f74aefe075aedb6b16259a4404e"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#abaa74f74aefe075aedb6b16259a4404e">operations_research::RoutingModel::GetNonZeroCostClassesCount</a></div><div class="ttdeci">int GetNonZeroCostClassesCount() const</div><div class="ttdoc">Ditto, minus the 'always zero', built-in cost class.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01149">routing.h:1149</a></div></div>
<div class="ttc" id="classoperations__research_1_1AssignmentContainer_html_a907ce7f41938cc755b6b1f4a55b5cd27"><div class="ttname"><a href="classoperations__research_1_1AssignmentContainer.html#a907ce7f41938cc755b6b1f4a55b5cd27">operations_research::AssignmentContainer::Element</a></div><div class="ttdeci">const E &amp; Element(const V *const var) const</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l04832">constraint_solver.h:4832</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_html_aecd5ad315b3f45eef0d567ad99008eaf"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass.html#aecd5ad315b3f45eef0d567ad99008eaf">operations_research::RoutingModel::CostClass::LessThan</a></div><div class="ttdeci">static bool LessThan(const CostClass &amp;a, const CostClass &amp;b)</div><div class="ttdoc">Comparator for STL containers and algorithms.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00308">routing.h:308</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModelVisitor_html_a7de4c57f71fba7de7371a25dab168bcd"><div class="ttname"><a href="classoperations__research_1_1RoutingModelVisitor.html#a7de4c57f71fba7de7371a25dab168bcd">operations_research::RoutingModelVisitor::kLightElement</a></div><div class="ttdeci">static const char kLightElement[]</div><div class="ttdoc">Constraint types.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01700">routing.h:1700</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeIncompatibilityChecker_html_aca7631df6a13c47b9978b3ff9421c0e5"><div class="ttname"><a href="classoperations__research_1_1TypeIncompatibilityChecker.html#aca7631df6a13c47b9978b3ff9421c0e5">operations_research::TypeIncompatibilityChecker::~TypeIncompatibilityChecker</a></div><div class="ttdeci">~TypeIncompatibilityChecker() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01930">routing.h:1930</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a56e06d63a6d3792ab5cd64e51724632b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a56e06d63a6d3792ab5cd64e51724632b">operations_research::RoutingModel::SolveFromAssignmentWithParameters</a></div><div class="ttdeci">const Assignment * SolveFromAssignmentWithParameters(const Assignment *assignment, const RoutingSearchParameters &amp;search_parameters, std::vector&lt; const Assignment * &gt; *solutions=nullptr)</div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_ab2b4f136e88ea9aad2921aefb2434bad"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#ab2b4f136e88ea9aad2921aefb2434bad">operations_research::CheapestInsertionFilteredDecisionBuilder::GetUnperformedValue</a></div><div class="ttdeci">int64 GetUnperformedValue(int64 node_to_insert) const</div><div class="ttdoc">Returns the cost of unperforming node 'node_to_insert'.</div></div>
<div class="ttc" id="classoperations__research_1_1DisjunctivePropagator_html_a7b0f3a8550bd73014e2b61899524a2ad"><div class="ttname"><a href="classoperations__research_1_1DisjunctivePropagator.html#a7b0f3a8550bd73014e2b61899524a2ad">operations_research::DisjunctivePropagator::ForbiddenIntervals</a></div><div class="ttdeci">bool ForbiddenIntervals(Tasks *tasks)</div><div class="ttdoc">Tasks might have holes in their domain, this enforces such holes.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa540a1068aef75c041330a2eafccd623"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa540a1068aef75c041330a2eafccd623">operations_research::RoutingModel::RegisterPositiveTransitCallback</a></div><div class="ttdeci">int RegisterPositiveTransitCallback(TransitCallback2 callback)</div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_acec7d0ffdb15da1d653839e22edd47fa"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#acec7d0ffdb15da1d653839e22edd47fa">operations_research::BasePathFilter::~BasePathFilter</a></div><div class="ttdeci">~BasePathFilter() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03214">routing.h:3214</a></div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_a702574cf13b54bc225f06ce3a548d4e3"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a702574cf13b54bc225f06ce3a548d4e3">operations_research::DisjunctivePropagator::Tasks::duration_max</a></div><div class="ttdeci">std::vector&lt; int64 &gt; duration_max</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01720">routing.h:1720</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ad8227ba86a01f26e4f173cd5e219d5d1"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ad8227ba86a01f26e4f173cd5e219d5d1">operations_research::RoutingDimension::name</a></div><div class="ttdeci">const std::string &amp; name() const</div><div class="ttdoc">Returns the name of the dimension.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02261">routing.h:2261</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_adb1490a44086db009cdb51f854a02a65"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#adb1490a44086db009cdb51f854a02a65">operations_research::RoutingModel::status</a></div><div class="ttdeci">Status status() const</div><div class="ttdoc">Returns the current status of the routing model.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00938">routing.h:938</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a95886cce213f51091399427b4728a6b2"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a95886cce213f51091399427b4728a6b2">operations_research::RoutingModel::GetVisitType</a></div><div class="ttdeci">int GetVisitType(int64 index) const</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_html_a15358ef4339f4d195684ff52c132a4dd"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a15358ef4339f4d195684ff52c132a4dd">operations_research::RoutingModel::CostClass::CostClass</a></div><div class="ttdeci">CostClass(int evaluator_index)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00304">routing.h:304</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aefff345740a5db07caea065ec14ec52f"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aefff345740a5db07caea065ec14ec52f">operations_research::RoutingModel::GetNumberOfRejectsInFirstSolution</a></div><div class="ttdeci">int64 GetNumberOfRejectsInFirstSolution(const RoutingSearchParameters &amp;search_parameters) const</div></div>
<div class="ttc" id="classoperations__research_1_1DisjunctivePropagator_html_a0d1ed47f6804807e925b489b24fb8d04"><div class="ttname"><a href="classoperations__research_1_1DisjunctivePropagator.html#a0d1ed47f6804807e925b489b24fb8d04">operations_research::DisjunctivePropagator::Precedences</a></div><div class="ttdeci">bool Precedences(Tasks *tasks)</div><div class="ttdoc">Propagates the deductions from the chain of precedences, if there is one.</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_a49c5021ae307aa7f5d390a54d4c2e103"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a49c5021ae307aa7f5d390a54d4c2e103">operations_research::RoutingModel::VehicleClass::dimension_start_cumuls_min</a></div><div class="ttdeci">gtl::ITIVector&lt; DimensionIndex, int64 &gt; dimension_start_cumuls_min</div><div class="ttdoc">Bounds of cumul variables at start and end vehicle nodes.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00332">routing.h:332</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a24478803a7138d68852093b9c2743892"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a24478803a7138d68852093b9c2743892">operations_research::RoutingModel::GetNumberOfVisitTypes</a></div><div class="ttdeci">int GetNumberOfVisitTypes() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00725">routing.h:725</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a796b4eed03ed53bbbaed642f4ae94952"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a796b4eed03ed53bbbaed642f4ae94952">operations_research::RoutingModel::AddHardTypeIncompatibility</a></div><div class="ttdeci">void AddHardTypeIncompatibility(int type1, int type2)</div><div class="ttdoc">Incompatibilities: Two nodes with &quot;hard&quot; incompatible types cannot share the same route at all,...</div></div>
<div class="ttc" id="classoperations__research_1_1DisjunctivePropagator_html_a29620476a22fde70929c77dc6342be0e"><div class="ttname"><a href="classoperations__research_1_1DisjunctivePropagator.html#a29620476a22fde70929c77dc6342be0e">operations_research::DisjunctivePropagator::MirrorTasks</a></div><div class="ttdeci">bool MirrorTasks(Tasks *tasks)</div><div class="ttdoc">Transforms the problem with a time symmetry centered in 0.</div></div>
<div class="ttc" id="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder_html_a912e360922fbe255a289467fe4968b95"><div class="ttname"><a href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html#a912e360922fbe255a289467fe4968b95">operations_research::EvaluatorCheapestAdditionFilteredDecisionBuilder::EvaluatorCheapestAdditionFilteredDecisionBuilder</a></div><div class="ttdeci">EvaluatorCheapestAdditionFilteredDecisionBuilder(RoutingModel *model, std::function&lt; int64(int64, int64)&gt; evaluator, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div><div class="ttdoc">Takes ownership of evaluator.</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a416ab434cf84e1360200462a2e66bd84"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a416ab434cf84e1360200462a2e66bd84">operations_research::SavingsFilteredDecisionBuilder::SavingsFilteredDecisionBuilderTestPeer</a></div><div class="ttdeci">friend class SavingsFilteredDecisionBuilderTestPeer</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03115">routing.h:3115</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa9e7ba89833775f29889744fe9480d29"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa9e7ba89833775f29889744fe9480d29">operations_research::RoutingModel::vehicles</a></div><div class="ttdeci">int vehicles() const</div><div class="ttdoc">Returns the number of vehicle routes in the model.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01210">routing.h:1210</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_aaa5f7d59af23f5e10fc43a3989fa0b68"><div class="ttname"><a href="namespaceoperations__research.html#aaa5f7d59af23f5e10fc43a3989fa0b68">operations_research::MakeCPFeasibilityFilter</a></div><div class="ttdeci">IntVarLocalSearchFilter * MakeCPFeasibilityFilter(const RoutingModel *routing_model)</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_aece8ba5ed811c6e5a490f4866f53b031"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#aece8ba5ed811c6e5a490f4866f53b031">operations_research::SavingsFilteredDecisionBuilder::SavingsFilteredDecisionBuilder</a></div><div class="ttdeci">SavingsFilteredDecisionBuilder(RoutingModel *model, RoutingIndexManager *manager, SavingsParameters parameters, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aed6760664a6e4f3427832ee3b7ba0602"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aed6760664a6e4f3427832ee3b7ba0602">operations_research::RoutingModel::AreEmptyRouteCostsConsideredForVehicle</a></div><div class="ttdeci">bool AreEmptyRouteCostsConsideredForVehicle(int vehicle) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00851">routing.h:851</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a82f14203d850d1ede49849c5020c6f51"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a82f14203d850d1ede49849c5020c6f51">operations_research::RoutingDimension::GetLocalOptimizerOffsetForVehicle</a></div><div class="ttdeci">int64 GetLocalOptimizerOffsetForVehicle(int vehicle) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02331">routing.h:2331</a></div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_a33b6c2ef668063ee2d9f9c30071b1b7e"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#a33b6c2ef668063ee2d9f9c30071b1b7e">operations_research::BasePathFilter::kUnassigned</a></div><div class="ttdeci">static const int64 kUnassigned</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03220">routing.h:3220</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1StateDependentTransit_html"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html">operations_research::RoutingModel::StateDependentTransit</a></div><div class="ttdoc">What follows is relevant for models with time/state dependent transits.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00257">routing.h:257</a></div></div>
<div class="ttc" id="routing__types_8h_html"><div class="ttname"><a href="routing__types_8h.html">routing_types.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae75d9f49c157b7784fc8baa7d623ee35"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae75d9f49c157b7784fc8baa7d623ee35">operations_research::RoutingModel::SetArcCostEvaluatorOfVehicle</a></div><div class="ttdeci">void SetArcCostEvaluatorOfVehicle(int evaluator_index, int vehicle)</div><div class="ttdoc">Sets the cost function for a given vehicle route.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a78f7f1cb8b08b7ec1d477a14447bd8d4"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a78f7f1cb8b08b7ec1d477a14447bd8d4">operations_research::RoutingModel::RoutesToAssignment</a></div><div class="ttdeci">bool RoutesToAssignment(const std::vector&lt; std::vector&lt; int64 &gt;&gt; &amp;routes, bool ignore_inactive_indices, bool close_routes, Assignment *const assignment) const</div><div class="ttdoc">Fills an assignment from a specification of the routes of the vehicles.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a0f8c7a97b5465ae4ba4cb1a92c39b756"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a0f8c7a97b5465ae4ba4cb1a92c39b756">operations_research::RoutingModel::GetSameVehicleIndicesOfIndex</a></div><div class="ttdeci">const std::vector&lt; int &gt; &amp; GetSameVehicleIndicesOfIndex(int node) const</div><div class="ttdoc">Returns variable indices of nodes constrained to be on the same route.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01159">routing.h:1159</a></div></div>
<div class="ttc" id="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost_html"><div class="ttname"><a href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">operations_research::SimpleBoundCosts::BoundCost</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02009">routing.h:2009</a></div></div>
<div class="ttc" id="classoperations__research_1_1SweepArranger_html"><div class="ttname"><a href="classoperations__research_1_1SweepArranger.html">operations_research::SweepArranger</a></div><div class="ttdoc">Class to arrange indices by by their distance and their angles from the depot.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02485">routing.h:2485</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_ae9a33af72abb5c2332a1f7ca71ab8215"><div class="ttname"><a href="namespaceoperations__research.html#ae9a33af72abb5c2332a1f7ca71ab8215">operations_research::MakeVehicleBreaksFilter</a></div><div class="ttdeci">IntVarLocalSearchFilter * MakeVehicleBreaksFilter(const RoutingModel &amp;routing_model, const RoutingDimension &amp;dimension)</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingDimension_1_1NodePrecedence_html_af4b27334a40a64ed4f53cd19b994d89a"><div class="ttname"><a href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html#af4b27334a40a64ed4f53cd19b994d89a">operations_research::RoutingDimension::NodePrecedence::second_node</a></div><div class="ttdeci">int64 second_node</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02291">routing.h:2291</a></div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html">operations_research::DisjunctivePropagator::Tasks</a></div><div class="ttdoc">A structure to hold tasks described by their features.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01715">routing.h:1715</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a7c2d33eef73401442fd9f2e205056c73"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a7c2d33eef73401442fd9f2e205056c73">operations_research::RoutingModel::VehicleCostsConsideredVar</a></div><div class="ttdeci">IntVar * VehicleCostsConsideredVar(int vehicle) const</div><div class="ttdoc">Returns the variable specifying whether or not costs are considered for vehicle.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01099">routing.h:1099</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_affe684b0df382fbf2b5eda869ec0c271"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#affe684b0df382fbf2b5eda869ec0c271">operations_research::RoutingDimension::GetSpanUpperBoundForVehicle</a></div><div class="ttdeci">int64 GetSpanUpperBoundForVehicle(int vehicle) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02307">routing.h:2307</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a00141bd90e555aea59a9e98cfbcda6eb"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a00141bd90e555aea59a9e98cfbcda6eb">operations_research::RoutingDimension::RoutingModelInspector</a></div><div class="ttdeci">friend class RoutingModelInspector</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02477">routing.h:2477</a></div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_a08530dc2a09c5639d9bffaa8d77ea4cb"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a08530dc2a09c5639d9bffaa8d77ea4cb">operations_research::DisjunctivePropagator::Tasks::start_min</a></div><div class="ttdeci">std::vector&lt; int64 &gt; start_min</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01717">routing.h:1717</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a422ce2898045c53fc90d21d8633d4af7"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a422ce2898045c53fc90d21d8633d4af7">operations_research::RoutingModel::RegisterStateDependentTransitCallback</a></div><div class="ttdeci">int RegisterStateDependentTransitCallback(VariableIndexEvaluator2 callback)</div></div>
<div class="ttc" id="namespaceoperations__research_html_aec575fd72a48b07ceca957691d785d57"><div class="ttname"><a href="namespaceoperations__research.html#aec575fd72a48b07ceca957691d785d57">operations_research::AppendTasksFromIntervals</a></div><div class="ttdeci">void AppendTasksFromIntervals(const std::vector&lt; IntervalVar * &gt; &amp;intervals, DisjunctivePropagator::Tasks *tasks)</div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_ac82dcb03265376c6caeb434de093eb11"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#ac82dcb03265376c6caeb434de093eb11">operations_research::DisjunctivePropagator::Tasks::end_min</a></div><div class="ttdeci">std::vector&lt; int64 &gt; end_min</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01721">routing.h:1721</a></div></div>
<div class="ttc" id="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount_html_aec9eecb2cb3eba0a8378de4588b96f4b"><div class="ttname"><a href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html#aec9eecb2cb3eba0a8378de4588b96f4b">operations_research::TypeRegulationsChecker::NodeCount::pickup</a></div><div class="ttdeci">int pickup</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01903">routing.h:1903</a></div></div>
<div class="ttc" id="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder_html_ab855e6e0a10d3c8c07191eb33da9e7e8"><div class="ttname"><a href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#ab855e6e0a10d3c8c07191eb33da9e7e8">operations_research::GlobalCheapestInsertionFilteredDecisionBuilder::~GlobalCheapestInsertionFilteredDecisionBuilder</a></div><div class="ttdeci">~GlobalCheapestInsertionFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02696">routing.h:2696</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a276086c8aada62b6301aa44e4289347d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a276086c8aada62b6301aa44e4289347d">operations_research::RoutingModel::GetDisjunctionPenalty</a></div><div class="ttdeci">int64 GetDisjunctionPenalty(DisjunctionIndex index) const</div><div class="ttdoc">Returns the penalty of the node disjunction of index 'index'.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00606">routing.h:606</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html">operations_research::TypeRegulationsChecker</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01891">routing.h:1891</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a62632c12610d494b7da27e49183922eb"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a62632c12610d494b7da27e49183922eb">operations_research::RoutingModel::GetPickupIndexPairs</a></div><div class="ttdeci">const std::vector&lt; std::pair&lt; int, int &gt; &gt; &amp; GetPickupIndexPairs(int64 node_index) const</div><div class="ttdoc">Returns pairs for which the node is a pickup; the first element of each pair is the index in the pick...</div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_af0bf98141cfd22ee7d63c411465692b4"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#af0bf98141cfd22ee7d63c411465692b4">operations_research::BasePathFilter::GetPath</a></div><div class="ttdeci">int GetPath(int64 node) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03229">routing.h:3229</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a4d87db39b37a97bcf6669448a67f0356"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a4d87db39b37a97bcf6669448a67f0356">operations_research::RoutingDimension::CumulVar</a></div><div class="ttdeci">IntVar * CumulVar(int64 index) const</div><div class="ttdoc">Get the cumul, transit and slack variables for the given node (given as int64 var index).</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02064">routing.h:2064</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a23c20278f29df4b683b589958ab3a187"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a23c20278f29df4b683b589958ab3a187">operations_research::RoutingModel::AddPickupAndDelivery</a></div><div class="ttdeci">void AddPickupAndDelivery(int64 pickup, int64 delivery)</div><div class="ttdoc">Notifies that index1 and index2 form a pair of nodes which should belong to the same route.</div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_a7c22021d1ebcfa7e3b8bbe36d0dcac7c"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#a7c22021d1ebcfa7e3b8bbe36d0dcac7c">operations_research::BasePathFilter::BasePathFilter</a></div><div class="ttdeci">BasePathFilter(const std::vector&lt; IntVar * &gt; &amp;nexts, int next_domain_size)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a7ed584226a1930ec8663c3e4efe28a93"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a7ed584226a1930ec8663c3e4efe28a93">operations_research::RoutingDimension::GetTransitValue</a></div><div class="ttdeci">int64 GetTransitValue(int64 from_index, int64 to_index, int64 vehicle) const</div><div class="ttdoc">Returns the transition value for a given pair of nodes (as var index); this value is the one taken by...</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsConstraint_html_a36d844f2722273b190ed9a069dd25938"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsConstraint.html#a36d844f2722273b190ed9a069dd25938">operations_research::TypeRegulationsConstraint::InitialPropagate</a></div><div class="ttdeci">void InitialPropagate() override</div><div class="ttdoc">This method performs the initial propagation of the constraint.</div></div>
<div class="ttc" id="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost_html_a26a8cbbc7bcf4117c2bf65104b4a54b4"><div class="ttname"><a href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html#a26a8cbbc7bcf4117c2bf65104b4a54b4">operations_research::SimpleBoundCosts::BoundCost::cost</a></div><div class="ttdeci">int64 cost</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02011">routing.h:2011</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a354dd8c252cf59b748602b342db6019d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a354dd8c252cf59b748602b342db6019d">operations_research::RoutingModel::Size</a></div><div class="ttdeci">int64 Size() const</div><div class="ttdoc">Returns the number of next variables in the model.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01212">routing.h:1212</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a9b09ef1fec581652f66de933154b78e4"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a9b09ef1fec581652f66de933154b78e4">operations_research::RoutingModel::AddSoftSameVehicleConstraint</a></div><div class="ttdeci">void AddSoftSameVehicleConstraint(const std::vector&lt; int64 &gt; &amp;indices, int64 cost)</div><div class="ttdoc">Adds a soft contraint to force a set of variable indices to be on the same vehicle.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_af42a5771d18b334091cc0f786219fe04"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#af42a5771d18b334091cc0f786219fe04">operations_research::RoutingDimension::~RoutingDimension</a></div><div class="ttdeci">~RoutingDimension()</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a06257e0b9422e5de00bd4eef03777355"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a06257e0b9422e5de00bd4eef03777355">operations_research::RoutingDimension::GetSoftSpanUpperBoundForVehicle</a></div><div class="ttdeci">SimpleBoundCosts::BoundCost GetSoftSpanUpperBoundForVehicle(int vehicle) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02352">routing.h:2352</a></div></div>
<div class="ttc" id="classoperations__research_1_1DecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1DecisionBuilder.html">operations_research::DecisionBuilder</a></div><div class="ttdoc">A DecisionBuilder is responsible for creating the search tree.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l03200">constraint_solver.h:3200</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa241abc19460575d250a5788f03afbf6"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa241abc19460575d250a5788f03afbf6">operations_research::RoutingModel::GetHomogeneousCost</a></div><div class="ttdeci">int64 GetHomogeneousCost(int64 from_index, int64 to_index) const</div><div class="ttdoc">Returns the cost of the segment between two nodes supposing all vehicle costs are the same (returns t...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01118">routing.h:1118</a></div></div>
<div class="ttc" id="classoperations__research_1_1CPFeasibilityFilter_html_af5591ad1889b7e23b8461a1fb68d1d48"><div class="ttname"><a href="classoperations__research_1_1CPFeasibilityFilter.html#af5591ad1889b7e23b8461a1fb68d1d48">operations_research::CPFeasibilityFilter::OnSynchronize</a></div><div class="ttdeci">void OnSynchronize(const Assignment *delta) override</div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_a40574fa8ec102d52f650a616d7fe6c39"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a40574fa8ec102d52f650a616d7fe6c39">operations_research::CheapestInsertionFilteredDecisionBuilder::InsertBetween</a></div><div class="ttdeci">void InsertBetween(int64 node, int64 predecessor, int64 successor)</div><div class="ttdoc">Inserts 'node' just after 'predecessor', and just before 'successor', resulting in the following subs...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a2f2eefe908c94f201c23a549797986e4"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a2f2eefe908c94f201c23a549797986e4">operations_research::RoutingModel::GetPerfectBinaryDisjunctions</a></div><div class="ttdeci">std::vector&lt; std::pair&lt; int64, int64 &gt; &gt; GetPerfectBinaryDisjunctions() const</div><div class="ttdoc">Returns the list of all perfect binary disjunctions, as pairs of variable indices: a disjunction is &quot;...</div></div>
<div class="ttc" id="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder_html_a075a5559c482ae585677009ee6665fb0"><div class="ttname"><a href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html#a075a5559c482ae585677009ee6665fb0">operations_research::ComparatorCheapestAdditionFilteredDecisionBuilder::ComparatorCheapestAdditionFilteredDecisionBuilder</a></div><div class="ttdeci">ComparatorCheapestAdditionFilteredDecisionBuilder(RoutingModel *model, Solver::VariableValueComparator comparator, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div><div class="ttdoc">Takes ownership of evaluator.</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a43cbb017015c746f350a83701d7f8b73"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a43cbb017015c746f350a83701d7f8b73">operations_research::IntVarFilteredDecisionBuilder::Value</a></div><div class="ttdeci">int64 Value(int64 index) const</div><div class="ttdoc">Returns the value of the variable of index 'index' in the last committed solution.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02557">routing.h:2557</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a822458cc9a9a6fa02e86af3e3a1e5c89"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a822458cc9a9a6fa02e86af3e3a1e5c89">operations_research::RoutingModel::CloseVisitTypes</a></div><div class="ttdeci">void CloseVisitTypes()</div><div class="ttdoc">This function should be called once all node visit types have been set and prior to adding any incomp...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a76874cd778ea1b9220673e019f9e7abe"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe">operations_research::RoutingModel::IndexPairs</a></div><div class="ttdeci">RoutingIndexPairs IndexPairs</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00241">routing.h:241</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a7745da6edcf25f61956a75b5bb3a7080"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a7745da6edcf25f61956a75b5bb3a7080">operations_research::TypeRegulationsChecker::TypeRegulationsChecker</a></div><div class="ttdeci">TypeRegulationsChecker(const RoutingModel &amp;model)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ab313d84a56c5e9b1b8f28da70b8d4045"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ab313d84a56c5e9b1b8f28da70b8d4045">operations_research::RoutingModel::HasTypeRegulations</a></div><div class="ttdeci">bool HasTypeRegulations() const</div><div class="ttdoc">Returns true iff the model has any incompatibilities or requirements set on node types.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00781">routing.h:781</a></div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a84b19d1c2e9a93a7e02dc12972c9c969"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a84b19d1c2e9a93a7e02dc12972c9c969">operations_research::SavingsFilteredDecisionBuilder::ExtraSavingsMemoryMultiplicativeFactor</a></div><div class="ttdeci">virtual double ExtraSavingsMemoryMultiplicativeFactor() const =0</div></div>
<div class="ttc" id="classoperations__research_1_1DisjunctivePropagator_html_aa9b624e65cb55b3d74ad35a3a675f9ea"><div class="ttname"><a href="classoperations__research_1_1DisjunctivePropagator.html#aa9b624e65cb55b3d74ad35a3a675f9ea">operations_research::DisjunctivePropagator::DetectablePrecedencesWithChain</a></div><div class="ttdeci">bool DetectablePrecedencesWithChain(Tasks *tasks)</div><div class="ttdoc">Does detectable precedences deductions on tasks in the chain precedence, taking the time windows of n...</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a1e1ecd6352078a36702fb5b00372ae11"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a1e1ecd6352078a36702fb5b00372ae11">operations_research::IntVarFilteredDecisionBuilder::Next</a></div><div class="ttdeci">Decision * Next(Solver *solver) override</div><div class="ttdoc">This is the main method of the decision builder class.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a8a1c183bafee7baf41b816776e8e76c8"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a8a1c183bafee7baf41b816776e8e76c8">operations_research::RoutingModel::GetDimensionsWithSoftOrSpanCosts</a></div><div class="ttdeci">std::vector&lt; RoutingDimension * &gt; GetDimensionsWithSoftOrSpanCosts() const</div><div class="ttdoc">Returns dimensions with soft or vehicle span costs.</div></div>
<div class="ttc" id="classoperations__research_1_1Assignment_html_a1f16f5a2e5767013b620efd255fb35ea"><div class="ttname"><a href="classoperations__research_1_1Assignment.html#a1f16f5a2e5767013b620efd255fb35ea">operations_research::Assignment::IntVarContainer</a></div><div class="ttdeci">const IntContainer &amp; IntVarContainer() const</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l05080">constraint_solver.h:5080</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingDimension_1_1NodePrecedence_html_ae8ffb22e2a632e0a84779dcbc47ae96b"><div class="ttname"><a href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html#ae8ffb22e2a632e0a84779dcbc47ae96b">operations_research::RoutingDimension::NodePrecedence::offset</a></div><div class="ttdeci">int64 offset</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02292">routing.h:2292</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1StateDependentTransit_html_ab71e287979b5c9040d1596d12ed3bb5f"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html#ab71e287979b5c9040d1596d12ed3bb5f">operations_research::RoutingModel::StateDependentTransit::transit_plus_identity</a></div><div class="ttdeci">RangeMinMaxIndexFunction * transit_plus_identity</div><div class="ttdoc">f(x)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00259">routing.h:259</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingFilteredDecisionBuilder_html_a8a3ae6ba0baf1765da1a2f4a6cecc730"><div class="ttname"><a href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a8a3ae6ba0baf1765da1a2f4a6cecc730">operations_research::RoutingFilteredDecisionBuilder::GetEndChainStart</a></div><div class="ttdeci">int GetEndChainStart(int vehicle) const</div><div class="ttdoc">Returns the start of the end chain of vehicle,.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02599">routing.h:2599</a></div></div>
<div class="ttc" id="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry_html_a1a01a2753d74fedd87264d8bd34a12df"><div class="ttname"><a href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a1a01a2753d74fedd87264d8bd34a12df">operations_research::SavingsFilteredDecisionBuilder::VehicleClassEntry::vehicle_class</a></div><div class="ttdeci">int vehicle_class</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03027">routing.h:3027</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a700982f228080c6278eb5a2f7f06f31d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a700982f228080c6278eb5a2f7f06f31d">operations_research::RoutingModel::SetSweepArranger</a></div><div class="ttdeci">void SetSweepArranger(SweepArranger *sweep_arranger)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01046">routing.h:1046</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModelVisitor_html_ad4137c90b6df943177de8f580d4adc97"><div class="ttname"><a href="classoperations__research_1_1RoutingModelVisitor.html#ad4137c90b6df943177de8f580d4adc97">operations_research::RoutingModelVisitor::kRemoveValues</a></div><div class="ttdeci">static const char kRemoveValues[]</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01702">routing.h:1702</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a28ee18c0e0da9de081c81efe393a528dabd6c69691b68642f5c619c8be829d3db"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a28ee18c0e0da9de081c81efe393a528dabd6c69691b68642f5c619c8be829d3db">operations_research::TypeRegulationsChecker::PICKUP</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01900">routing.h:1900</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_aec2f68b291a699a015f05b9531149d03"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#aec2f68b291a699a015f05b9531149d03">operations_research::RoutingModel::VehicleClass::dimension_end_cumuls_max</a></div><div class="ttdeci">gtl::ITIVector&lt; DimensionIndex, int64 &gt; dimension_end_cumuls_max</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00335">routing.h:335</a></div></div>
<div class="ttc" id="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html">operations_research::SequentialSavingsFilteredDecisionBuilder</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03118">routing.h:3118</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a052c958dd77221524f13f06d87960e63"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a052c958dd77221524f13f06d87960e63">operations_research::RoutingDimension::SetCumulVarPiecewiseLinearCost</a></div><div class="ttdeci">void SetCumulVarPiecewiseLinearCost(int64 index, const PiecewiseLinearFunction &amp;cost)</div><div class="ttdoc">Sets a piecewise linear cost on the cumul variable of a given variable index.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa9ed1612ddad261cf7e75643534d0aa0"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa9ed1612ddad261cf7e75643534d0aa0">operations_research::RoutingModel::GetNumberOfDisjunctions</a></div><div class="ttdeci">int GetNumberOfDisjunctions() const</div><div class="ttdoc">Returns the number of node disjunctions in the model.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00615">routing.h:615</a></div></div>
<div class="ttc" id="classoperations__research_1_1Assignment_html_ac462499a646c751d153e599b22f1d782"><div class="ttname"><a href="classoperations__research_1_1Assignment.html#ac462499a646c751d153e599b22f1d782">operations_research::Assignment::SetValue</a></div><div class="ttdeci">void SetValue(const IntVar *const var, int64 value)</div></div>
<div class="ttc" id="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html">operations_research::EvaluatorCheapestAdditionFilteredDecisionBuilder</a></div><div class="ttdoc">A CheapestAdditionFilteredDecisionBuilder where the notion of 'cheapest arc' comes from an arc evalua...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02944">routing.h:2944</a></div></div>
<div class="ttc" id="classoperations__research_1_1LocalSearchFilter_html"><div class="ttname"><a href="classoperations__research_1_1LocalSearchFilter.html">operations_research::LocalSearchFilter</a></div><div class="ttdoc">Local Search Filters are used for fast neighbor pruning.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solveri_8h_source.html#l01491">constraint_solveri.h:1491</a></div></div>
<div class="ttc" id="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder_html_a2b82d05efa8cd7eb28270333123e591f"><div class="ttname"><a href="classoperations__research_1_1SequentialSavingsFilteredDecisionBuilder.html#a2b82d05efa8cd7eb28270333123e591f">operations_research::SequentialSavingsFilteredDecisionBuilder::SequentialSavingsFilteredDecisionBuilder</a></div><div class="ttdeci">SequentialSavingsFilteredDecisionBuilder(RoutingModel *model, RoutingIndexManager *manager, SavingsParameters parameters, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03121">routing.h:3121</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a10fbd239f47aef280b475ae0db9e8f9a"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a10fbd239f47aef280b475ae0db9e8f9a">operations_research::RoutingDimension::AddNodePrecedence</a></div><div class="ttdeci">void AddNodePrecedence(int64 first_node, int64 second_node, int64 offset)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02303">routing.h:2303</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ab4ee0772eb17ffba5e3a2f6f38026546"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ab4ee0772eb17ffba5e3a2f6f38026546">operations_research::RoutingDimension::SetCumulVarSoftUpperBound</a></div><div class="ttdeci">void SetCumulVarSoftUpperBound(int64 index, int64 upper_bound, int64 coefficient)</div><div class="ttdoc">Sets a soft upper bound to the cumul variable of a given variable index.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ac300c6449a65333961d8abdd7ce40a7a"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ac300c6449a65333961d8abdd7ce40a7a">operations_research::RoutingDimension::SlackVar</a></div><div class="ttdeci">IntVar * SlackVar(int64 index) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02067">routing.h:2067</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a8c58bbbfc090a581f02d76fabf465b3e"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a8c58bbbfc090a581f02d76fabf465b3e">operations_research::RoutingModel::RegisterTransitCallback</a></div><div class="ttdeci">int RegisterTransitCallback(TransitCallback2 callback)</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarElement_html_a8052ccc3aba839f3befd553cc05b85a0"><div class="ttname"><a href="classoperations__research_1_1IntVarElement.html#a8052ccc3aba839f3befd553cc05b85a0">operations_research::IntVarElement::Var</a></div><div class="ttdeci">IntVar * Var() const</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l04549">constraint_solver.h:4549</a></div></div>
<div class="ttc" id="classoperations__research_1_1Constraint_html"><div class="ttname"><a href="classoperations__research_1_1Constraint.html">operations_research::Constraint</a></div><div class="ttdoc">A constraint is the main modeling object.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l03516">constraint_solver.h:3516</a></div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsContainer_html"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsContainer.html">operations_research::SavingsFilteredDecisionBuilder::SavingsContainer</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03024">routing.h:3024</a></div></div>
<div class="ttc" id="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder_html_ad4499e465fd3aaa3088e97227eaf653d"><div class="ttname"><a href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">operations_research::GlobalCheapestInsertionFilteredDecisionBuilder::BuildSolution</a></div><div class="ttdeci">bool BuildSolution() override</div><div class="ttdoc">Virtual method to redefine to build a solution.</div></div>
<div class="ttc" id="namespaceoperations__research_html_ad96516f011b5faf2c5587c797870ca9d"><div class="ttname"><a href="namespaceoperations__research.html#ad96516f011b5faf2c5587c797870ca9d">operations_research::MakeGlobalLPCumulFilter</a></div><div class="ttdeci">IntVarLocalSearchFilter * MakeGlobalLPCumulFilter(GlobalDimensionCumulOptimizer *optimizer, bool filter_objective_cost)</div></div>
<div class="ttc" id="classoperations__research_1_1Assignment_html_ae7e79ac5cad1bf2d1960f5f3c18bc575"><div class="ttname"><a href="classoperations__research_1_1Assignment.html#ae7e79ac5cad1bf2d1960f5f3c18bc575">operations_research::Assignment::FastAdd</a></div><div class="ttdeci">IntVarElement * FastAdd(IntVar *const var)</div><div class="ttdoc">Adds without checking if variable has been previously added.</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_aac2b6fe6489b8e1ae6867681a5ae83ef"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#aac2b6fe6489b8e1ae6867681a5ae83ef">operations_research::RoutingModel::VehicleClass::LessThan</a></div><div class="ttdeci">static bool LessThan(const VehicleClass &amp;a, const VehicleClass &amp;b)</div><div class="ttdoc">Comparator for STL containers and algorithms.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a67e8d10adbcc563f428069f9b2c04b63"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a67e8d10adbcc563f428069f9b2c04b63">operations_research::RoutingModel::HasVehicleWithCostClassIndex</a></div><div class="ttdeci">bool HasVehicleWithCostClassIndex(CostClassIndex cost_class_index) const</div><div class="ttdoc">Returns true iff the model contains a vehicle with the given cost_class_index.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01139">routing.h:1139</a></div></div>
<div class="ttc" id="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1ParallelSavingsFilteredDecisionBuilder.html">operations_research::ParallelSavingsFilteredDecisionBuilder</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03140">routing.h:3140</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleBoundCosts_html"><div class="ttname"><a href="classoperations__research_1_1SimpleBoundCosts.html">operations_research::SimpleBoundCosts</a></div><div class="ttdoc">A structure meant to store soft bounds and associated violation constants.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02007">routing.h:2007</a></div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html">operations_research::IntVarFilteredDecisionBuilder</a></div><div class="ttdoc">Decision builders building a solution using local search filters to evaluate its feasibility.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02521">routing.h:2521</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a449a82a0294dae7de9310328274462dd"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a449a82a0294dae7de9310328274462dd">operations_research::RoutingModel::GetLocalDimensionCumulOptimizers</a></div><div class="ttdeci">const std::vector&lt; std::unique_ptr&lt; LocalDimensionCumulOptimizer &gt; &gt; &amp; GetLocalDimensionCumulOptimizers() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00525">routing.h:525</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder_html_a6f103d0849407ca9db0d863da4fa8163"><div class="ttname"><a href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html#a6f103d0849407ca9db0d863da4fa8163">operations_research::CheapestAdditionFilteredDecisionBuilder::CheapestAdditionFilteredDecisionBuilder</a></div><div class="ttdeci">CheapestAdditionFilteredDecisionBuilder(RoutingModel *model, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a50f66c7639c3aa15eff6222a53b2bf7e"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a50f66c7639c3aa15eff6222a53b2bf7e">operations_research::RoutingModel::GetMutableLocalCumulOptimizer</a></div><div class="ttdeci">LocalDimensionCumulOptimizer * GetMutableLocalCumulOptimizer(const RoutingDimension &amp;dimension) const</div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_a3a043b5db0f7e2cd5d378229ca05fcbe"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a3a043b5db0f7e2cd5d378229ca05fcbe">operations_research::DisjunctivePropagator::Tasks::start_max</a></div><div class="ttdeci">std::vector&lt; int64 &gt; start_max</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01718">routing.h:1718</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a6f170c2c3b2a0c5f616aa449a38d84fa"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a6f170c2c3b2a0c5f616aa449a38d84fa">operations_research::RoutingDimension::transits</a></div><div class="ttdeci">const std::vector&lt; IntVar * &gt; &amp; transits() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02074">routing.h:2074</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a32bba655accbd7dc8e23d30bf679b880"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a32bba655accbd7dc8e23d30bf679b880">operations_research::RoutingModel::GetCostClassIndexOfVehicle</a></div><div class="ttdeci">CostClassIndex GetCostClassIndexOfVehicle(int64 vehicle) const</div><div class="ttdoc">Get the cost class index of the given vehicle.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01133">routing.h:1133</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a46a69d9769aa92122c7e5e20f49e3da3"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a46a69d9769aa92122c7e5e20f49e3da3">operations_research::RoutingModel::Next</a></div><div class="ttdeci">int64 Next(const Assignment &amp;assignment, int64 index) const</div><div class="ttdoc">Assignment inspection Returns the variable index of the node directly after the node corresponding to...</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRequirementChecker_html_aa61667d3933f65282eaabd3fb06d4416"><div class="ttname"><a href="classoperations__research_1_1TypeRequirementChecker.html#aa61667d3933f65282eaabd3fb06d4416">operations_research::TypeRequirementChecker::TypeRequirementChecker</a></div><div class="ttdeci">TypeRequirementChecker(const RoutingModel &amp;model)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01944">routing.h:1944</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a80572a238b48c2cefe38409e7544f161"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a80572a238b48c2cefe38409e7544f161">operations_research::RoutingModel::VehicleVars</a></div><div class="ttdeci">const std::vector&lt; IntVar * &gt; &amp; VehicleVars() const</div><div class="ttdoc">Returns all vehicle variables of the model, such that VehicleVars(i) is the vehicle variable of the n...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01090">routing.h:1090</a></div></div>
<div class="ttc" id="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount_html_aa317753b50911e38e8649a9e4dd19f83"><div class="ttname"><a href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html#aa317753b50911e38e8649a9e4dd19f83">operations_research::TypeRegulationsChecker::NodeCount::delivery</a></div><div class="ttdeci">int delivery</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01904">routing.h:1904</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_a0e6f382c1edda3cf2469aff3f8f5b43d"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#a0e6f382c1edda3cf2469aff3f8f5b43d">operations_research::RoutingModel::VehicleClass::fixed_cost</a></div><div class="ttdeci">int64 fixed_cost</div><div class="ttdoc">Contrarily to CostClass, here we need strict equivalence.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00321">routing.h:321</a></div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_af5591ad1889b7e23b8461a1fb68d1d48"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#af5591ad1889b7e23b8461a1fb68d1d48">operations_research::BasePathFilter::OnSynchronize</a></div><div class="ttdeci">void OnSynchronize(const Assignment *delta) override</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_aae1962408e06dbb45f6e5ee67e530880"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#aae1962408e06dbb45f6e5ee67e530880">operations_research::RoutingDimension::transit_evaluator</a></div><div class="ttdeci">const RoutingModel::TransitCallback2 &amp; transit_evaluator(int vehicle) const</div><div class="ttdoc">Returns the callback evaluating the transit value between two node indices for a given vehicle.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02087">routing.h:2087</a></div></div>
<div class="ttc" id="classoperations__research_1_1LocalSearchFilterManager_html"><div class="ttname"><a href="classoperations__research_1_1LocalSearchFilterManager.html">operations_research::LocalSearchFilterManager</a></div><div class="ttdoc">Filter manager: when a move is made, filters are executed to decide whether the solution is feasible ...</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solveri_8h_source.html#l01524">constraint_solveri.h:1524</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a3600327c657a0c83430d7bd9566e9ab6"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a3600327c657a0c83430d7bd9566e9ab6">operations_research::RoutingModel::UnperformedPenalty</a></div><div class="ttdeci">int64 UnperformedPenalty(int64 var_index) const</div><div class="ttdoc">Get the &quot;unperformed&quot; penalty of a node.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a075c26c8a078b9c0f1a4f2be00f1f795"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a075c26c8a078b9c0f1a4f2be00f1f795">operations_research::RoutingModel::GetPickupAndDeliveryDisjunctions</a></div><div class="ttdeci">const std::vector&lt; std::pair&lt; DisjunctionIndex, DisjunctionIndex &gt; &gt; &amp; GetPickupAndDeliveryDisjunctions() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00698">routing.h:698</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aedbec46c51bb2d8b0b0f77fc98ac8e9e"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aedbec46c51bb2d8b0b0f77fc98ac8e9e">operations_research::RoutingModel::AddVectorDimension</a></div><div class="ttdeci">bool AddVectorDimension(std::vector&lt; int64 &gt; values, int64 capacity, bool fix_start_cumul_to_zero, const std::string &amp;name)</div><div class="ttdoc">Creates a dimension where the transit variable is constrained to be equal to 'values[i]' for node i; ...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a7ccaa3133378da76d3fd5cdb560038ae"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a7ccaa3133378da76d3fd5cdb560038ae">operations_research::RoutingModel::ConsiderEmptyRouteCostsForVehicle</a></div><div class="ttdeci">void ConsiderEmptyRouteCostsForVehicle(bool consider_costs, int vehicle)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00846">routing.h:846</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae2530e17cabaf267e12929ca0ee1bee0"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae2530e17cabaf267e12929ca0ee1bee0">operations_research::RoutingModel::IsEnd</a></div><div class="ttdeci">bool IsEnd(int64 index) const</div><div class="ttdoc">Returns true if 'index' represents the last node of a route.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01073">routing.h:1073</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ac99ab58c828c4e814dd3c3d508ff5233"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ac99ab58c828c4e814dd3c3d508ff5233">operations_research::RoutingDimension::vehicle_span_cost_coefficients</a></div><div class="ttdeci">const std::vector&lt; int64 &gt; &amp; vehicle_span_cost_coefficients() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02319">routing.h:2319</a></div></div>
<div class="ttc" id="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount_html"><div class="ttname"><a href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html">operations_research::TypeRegulationsChecker::NodeCount</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01901">routing.h:1901</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_a2b48bfb0d3df32b08dbe0aab5a251f8b"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a2b48bfb0d3df32b08dbe0aab5a251f8b">operations_research::CheapestInsertionFilteredDecisionBuilder::penalty_evaluator_</a></div><div class="ttdeci">std::function&lt; int64(int64)&gt; penalty_evaluator_</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02677">routing.h:2677</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_aff15c149ac7cbb96d340d8c1370d5aea"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#aff15c149ac7cbb96d340d8c1370d5aea">operations_research::RoutingDimension::forbidden_intervals</a></div><div class="ttdeci">const std::vector&lt; SortedDisjointIntervalList &gt; &amp; forbidden_intervals() const</div><div class="ttdoc">Returns forbidden intervals for each node.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02078">routing.h:2078</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingFilteredDecisionBuilder_html_a01f12df188ad5ce3fd3942661683fe7a"><div class="ttname"><a href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a01f12df188ad5ce3fd3942661683fe7a">operations_research::RoutingFilteredDecisionBuilder::RoutingFilteredDecisionBuilder</a></div><div class="ttdeci">RoutingFilteredDecisionBuilder(RoutingModel *model, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div></div>
<div class="ttc" id="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder_html_ad4499e465fd3aaa3088e97227eaf653d"><div class="ttname"><a href="classoperations__research_1_1CheapestAdditionFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">operations_research::CheapestAdditionFilteredDecisionBuilder::BuildSolution</a></div><div class="ttdeci">bool BuildSolution() override</div><div class="ttdoc">Virtual method to redefine to build a solution.</div></div>
<div class="ttc" id="classoperations__research_1_1ChristofidesFilteredDecisionBuilder_html_aed804747c45a7e1caf81461f9e45dd91"><div class="ttname"><a href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">operations_research::ChristofidesFilteredDecisionBuilder::DebugString</a></div><div class="ttdeci">std::string DebugString() const override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03195">routing.h:3195</a></div></div>
<div class="ttc" id="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder_html_a575867d8d2900effa5d0f749e49e67e5"><div class="ttname"><a href="classoperations__research_1_1GlobalCheapestInsertionFilteredDecisionBuilder.html#a575867d8d2900effa5d0f749e49e67e5">operations_research::GlobalCheapestInsertionFilteredDecisionBuilder::GlobalCheapestInsertionFilteredDecisionBuilder</a></div><div class="ttdeci">GlobalCheapestInsertionFilteredDecisionBuilder(RoutingModel *model, std::function&lt; int64(int64, int64, int64)&gt; evaluator, std::function&lt; int64(int64)&gt; penalty_evaluator, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters, bool is_sequential, double farthest_seeds_ratio, double neighbors_ratio)</div><div class="ttdoc">Takes ownership of evaluators.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ae961a8435c4bc4ac850fa06bff29b625"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ae961a8435c4bc4ac850fa06bff29b625">operations_research::RoutingDimension::SetGlobalSpanCostCoefficient</a></div><div class="ttdeci">void SetGlobalSpanCostCoefficient(int64 coefficient)</div><div class="ttdoc">Sets a cost proportional to the global dimension span, that is the difference between the largest val...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a4e440577c58c25c988280a98328e5598"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a4e440577c58c25c988280a98328e5598">operations_research::RoutingDimension::GetUnaryTransitEvaluator</a></div><div class="ttdeci">const RoutingModel::TransitCallback1 &amp; GetUnaryTransitEvaluator(int vehicle) const</div><div class="ttdoc">Returns the unary callback evaluating the transit value between two node indices for a given vehicle.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02094">routing.h:2094</a></div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_a345e688ef627db8fdda23c4b6b45ac0f"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#a345e688ef627db8fdda23c4b6b45ac0f">operations_research::BasePathFilter::Start</a></div><div class="ttdeci">int64 Start(int i) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03228">routing.h:3228</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsConstraint_html_a19d94d32f3bde30deeebb883c6f71f84"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsConstraint.html#a19d94d32f3bde30deeebb883c6f71f84">operations_research::TypeRegulationsConstraint::Post</a></div><div class="ttdeci">void Post() override</div><div class="ttdoc">This method is called when the constraint is processed by the solver.</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingDimension_1_1NodePrecedence_html"><div class="ttname"><a href="structoperations__research_1_1RoutingDimension_1_1NodePrecedence.html">operations_research::RoutingDimension::NodePrecedence</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02289">routing.h:2289</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_ab6379327d3431a9fe8f7434651eece59"><div class="ttname"><a href="namespaceoperations__research.html#ab6379327d3431a9fe8f7434651eece59">operations_research::MakeVehicleAmortizedCostFilter</a></div><div class="ttdeci">IntVarLocalSearchFilter * MakeVehicleAmortizedCostFilter(const RoutingModel &amp;routing_model)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ad3b144985c2b4b24cf39b839dbd9c16d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ad3b144985c2b4b24cf39b839dbd9c16d">operations_research::RoutingModel::GetCostClassesCount</a></div><div class="ttdeci">int GetCostClassesCount() const</div><div class="ttdoc">Returns the number of different cost classes in the model.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01147">routing.h:1147</a></div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a835d99e33c635948e02b5cc19a695c0a"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a835d99e33c635948e02b5cc19a695c0a">operations_research::SavingsFilteredDecisionBuilder::type_index_of_vehicle_</a></div><div class="ttdeci">std::vector&lt; int &gt; type_index_of_vehicle_</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03067">routing.h:3067</a></div></div>
<div class="ttc" id="classoperations__research_1_1ChristofidesFilteredDecisionBuilder_html_a9e1108787b4b8ed0efa6c07c52d0f734"><div class="ttname"><a href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html#a9e1108787b4b8ed0efa6c07c52d0f734">operations_research::ChristofidesFilteredDecisionBuilder::ChristofidesFilteredDecisionBuilder</a></div><div class="ttdeci">ChristofidesFilteredDecisionBuilder(RoutingModel *model, const std::vector&lt; LocalSearchFilter * &gt; &amp;filters)</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_ab9cbb9e796806062460be9c7a4033e80"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#ab9cbb9e796806062460be9c7a4033e80">operations_research::IntVarFilteredDecisionBuilder::number_of_decisions</a></div><div class="ttdeci">int64 number_of_decisions() const</div><div class="ttdoc">Returns statistics on search, number of decisions sent to filters, number of decisions rejected by fi...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02532">routing.h:2532</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa5cff2ee7fbe3a9c5c701bfba7460c83a272376ed085de7d28d36fa1013394cc8"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a272376ed085de7d28d36fa1013394cc8">operations_research::RoutingModel::PICKUP_AND_DELIVERY_LIFO</a></div><div class="ttdoc">Deliveries must be performed in reverse order of pickups.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00227">routing.h:227</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a410f7da30cf944b7874eebe57eebe41a"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a410f7da30cf944b7874eebe57eebe41a">operations_research::RoutingModel::ApplyLocksToAllVehicles</a></div><div class="ttdeci">bool ApplyLocksToAllVehicles(const std::vector&lt; std::vector&lt; int64 &gt;&gt; &amp;locks, bool close_routes)</div><div class="ttdoc">Applies lock chains to all vehicles to the next search, such that locks[p] is the lock chain for rout...</div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_ad5e547ae9d4f7380beae49908c7cdc48"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#ad5e547ae9d4f7380beae49908c7cdc48">operations_research::DisjunctivePropagator::Tasks::num_chain_tasks</a></div><div class="ttdeci">int num_chain_tasks</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01716">routing.h:1716</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsConstraint_html_ac45256999b51546027c5f81897ee4b46"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsConstraint.html#ac45256999b51546027c5f81897ee4b46">operations_research::TypeRegulationsConstraint::TypeRegulationsConstraint</a></div><div class="ttdeci">TypeRegulationsConstraint(const RoutingModel &amp;model)</div></div>
<div class="ttc" id="classoperations__research_1_1TypeIncompatibilityChecker_html"><div class="ttname"><a href="classoperations__research_1_1TypeIncompatibilityChecker.html">operations_research::TypeIncompatibilityChecker</a></div><div class="ttdoc">Checker for type incompatibilities.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01926">routing.h:1926</a></div></div>
<div class="ttc" id="classoperations__research_1_1LocalDimensionCumulOptimizer_html"><div class="ttname"><a href="classoperations__research_1_1LocalDimensionCumulOptimizer.html">operations_research::LocalDimensionCumulOptimizer</a></div><div class="ttdef"><b>Definition:</b> <a href="routing__lp__scheduling_8h_source.html#l00228">routing_lp_scheduling.h:228</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a68c42bd26c7f0a2f1a0247e51a45aab5"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a68c42bd26c7f0a2f1a0247e51a45aab5">operations_research::RoutingDimension::SetBreakDistanceDurationOfVehicle</a></div><div class="ttdeci">void SetBreakDistanceDurationOfVehicle(int64 distance, int64 duration, int vehicle)</div><div class="ttdoc">With breaks supposed to be consecutive, this forces the distance between breaks of size at least mini...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a175989a601fa29235dce43255647ab01"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a175989a601fa29235dce43255647ab01">operations_research::RoutingDimension::GetTransitValueFromClass</a></div><div class="ttdeci">int64 GetTransitValueFromClass(int64 from_index, int64 to_index, int64 vehicle_class) const</div><div class="ttdoc">Same as above but taking a vehicle class of the dimension instead of a vehicle (the class of a vehicl...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02057">routing.h:2057</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a51eadbd617f6658396e5ba790f6b0c19"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a51eadbd617f6658396e5ba790f6b0c19">operations_research::RoutingDimension::GetCumulVarSoftLowerBoundCoefficient</a></div><div class="ttdeci">int64 GetCumulVarSoftLowerBoundCoefficient(int64 index) const</div><div class="ttdoc">Returns the cost coefficient of the soft lower bound of a cumul variable for a given variable index.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModelVisitor_html_a6c0546843b8356083c43bdede41b68d2"><div class="ttname"><a href="classoperations__research_1_1RoutingModelVisitor.html#a6c0546843b8356083c43bdede41b68d2">operations_research::RoutingModelVisitor::kLightElement2</a></div><div class="ttdeci">static const char kLightElement2[]</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01701">routing.h:1701</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingIndexManager_html"><div class="ttname"><a href="classoperations__research_1_1RoutingIndexManager.html">operations_research::RoutingIndexManager</a></div><div class="ttdoc">Manager for any NodeIndex &lt;-&gt; variable index conversion.</div><div class="ttdef"><b>Definition:</b> <a href="routing__index__manager_8h_source.html#l00042">routing_index_manager.h:42</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a9e42e15bdb23d63ae78137b97a4882de"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a9e42e15bdb23d63ae78137b97a4882de">operations_research::RoutingModel::GetPickupAndDeliveryPairs</a></div><div class="ttdeci">const IndexPairs &amp; GetPickupAndDeliveryPairs() const</div><div class="ttdoc">Returns pickup and delivery pairs currently in the model.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00694">routing.h:694</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ab6aae3927f3537c446ac33f2c6ecb922"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ab6aae3927f3537c446ac33f2c6ecb922">operations_research::RoutingModel::VehicleClassIndex</a></div><div class="ttdeci">RoutingVehicleClassIndex VehicleClassIndex</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00234">routing.h:234</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a67a0db04d321a74b7e7fcfd3f1a3f70baf6452d79d02ab06bc8d722d25825cae3"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70baf6452d79d02ab06bc8d722d25825cae3">operations_research::RoutingModel::ROUTING_FAIL_TIMEOUT</a></div><div class="ttdoc">Time limit reached before finding a solution with RoutingModel::Solve().</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00217">routing.h:217</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ae4b40d046de51f0ace9138a3692b0090"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ae4b40d046de51f0ace9138a3692b0090">operations_research::RoutingDimension::GetNodePrecedences</a></div><div class="ttdeci">const std::vector&lt; NodePrecedence &gt; &amp; GetNodePrecedences() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02298">routing.h:2298</a></div></div>
<div class="ttc" id="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount_html_ac4ba70647bf570cf26232b50d179f883"><div class="ttname"><a href="structoperations__research_1_1TypeRegulationsChecker_1_1NodeCount.html#ac4ba70647bf570cf26232b50d179f883">operations_research::TypeRegulationsChecker::NodeCount::non_pickup_delivery</a></div><div class="ttdeci">int non_pickup_delivery</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01902">routing.h:1902</a></div></div>
<div class="ttc" id="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder_html_ad76a566a2512acd5ba62f260dd52777b"><div class="ttname"><a href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html#ad76a566a2512acd5ba62f260dd52777b">operations_research::EvaluatorCheapestAdditionFilteredDecisionBuilder::~EvaluatorCheapestAdditionFilteredDecisionBuilder</a></div><div class="ttdeci">~EvaluatorCheapestAdditionFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02951">routing.h:2951</a></div></div>
<div class="ttc" id="classoperations__research_1_1GlobalVehicleBreaksConstraint_html"><div class="ttname"><a href="classoperations__research_1_1GlobalVehicleBreaksConstraint.html">operations_research::GlobalVehicleBreaksConstraint</a></div><div class="ttdoc">GlobalVehicleBreaksConstraint ensures breaks constraints are enforced on all vehicles in the dimensio...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01793">routing.h:1793</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a5b64c3cf1ee14bb918c0577cf7e8ec0e"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a5b64c3cf1ee14bb918c0577cf7e8ec0e">operations_research::TypeRegulationsChecker::CheckTypeRegulations</a></div><div class="ttdeci">virtual bool CheckTypeRegulations(int type)=0</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a4140d4b0c6b75f277f5aefd1768d2fd9"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a4140d4b0c6b75f277f5aefd1768d2fd9">operations_research::RoutingModel::MakeStateDependentTransit</a></div><div class="ttdeci">static RoutingModel::StateDependentTransit MakeStateDependentTransit(const std::function&lt; int64(int64)&gt; &amp;f, int64 domain_start, int64 domain_end)</div><div class="ttdoc">Creates a cached StateDependentTransit from an std::function.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ad558398f8c75f81d879f74d18ba5e7c3"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ad558398f8c75f81d879f74d18ba5e7c3">operations_research::RoutingModel::TransitCallback</a></div><div class="ttdeci">const TransitCallback2 &amp; TransitCallback(int callback_index) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00373">routing.h:373</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ad13ad202092298b43c9099b212c54d3d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">operations_research::RoutingModel::CostClassIndex</a></div><div class="ttdeci">RoutingCostClassIndex CostClassIndex</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00231">routing.h:231</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleBoundCosts_html_aaf6c218cbb9459db5d7e9318e5667e66"><div class="ttname"><a href="classoperations__research_1_1SimpleBoundCosts.html#aaf6c218cbb9459db5d7e9318e5667e66">operations_research::SimpleBoundCosts::bound_cost</a></div><div class="ttdeci">BoundCost bound_cost(int element) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02016">routing.h:2016</a></div></div>
<div class="ttc" id="classoperations__research_1_1CPFeasibilityFilter_html"><div class="ttname"><a href="classoperations__research_1_1CPFeasibilityFilter.html">operations_research::CPFeasibilityFilter</a></div><div class="ttdoc">This filter accepts deltas for which the assignment satisfies the constraints of the Solver.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03282">routing.h:3282</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a04bd106a61d493872cabb0f41f7f118f"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a04bd106a61d493872cabb0f41f7f118f">operations_research::RoutingModel::GetNumberOfDecisionsInFirstSolution</a></div><div class="ttdeci">int64 GetNumberOfDecisionsInFirstSolution(const RoutingSearchParameters &amp;search_parameters) const</div><div class="ttdoc">Returns statistics on first solution search, number of decisions sent to filters, number of decisions...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_adff4a61e79da6a3ea06ab2e9f3d431a8"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#adff4a61e79da6a3ea06ab2e9f3d431a8">operations_research::RoutingModel::kNoDimension</a></div><div class="ttdeci">static const DimensionIndex kNoDimension</div><div class="ttdoc">Constant used to express the &quot;no dimension&quot; index, returned when a dimension name does not correspond...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00357">routing.h:357</a></div></div>
<div class="ttc" id="classoperations__research_1_1RegularLimit_html_a01dd9b59b9a183cb3ba148b08d09b320"><div class="ttname"><a href="classoperations__research_1_1RegularLimit.html#a01dd9b59b9a183cb3ba148b08d09b320">operations_research::RegularLimit::Check</a></div><div class="ttdeci">bool Check() override</div><div class="ttdoc">This method is called to check the status of the limit.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a6debc638c02bfb2b4afe0afccdd98ca5"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a6debc638c02bfb2b4afe0afccdd98ca5">operations_research::RoutingDimension::HasBreakConstraints</a></div><div class="ttdeci">bool HasBreakConstraints() const</div><div class="ttdoc">Returns true if any break interval or break distance was defined.</div></div>
<div class="ttc" id="classoperations__research_1_1RegularLimit_html_a8cc63d9778229883ca7594b3a47d8f5b"><div class="ttname"><a href="classoperations__research_1_1RegularLimit.html#a8cc63d9778229883ca7594b3a47d8f5b">operations_research::RegularLimit::AbsoluteSolverDeadline</a></div><div class="ttdeci">absl::Time AbsoluteSolverDeadline() const</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l04239">constraint_solver.h:4239</a></div></div>
<div class="ttc" id="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder_html_aed804747c45a7e1caf81461f9e45dd91"><div class="ttname"><a href="classoperations__research_1_1EvaluatorCheapestAdditionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">operations_research::EvaluatorCheapestAdditionFilteredDecisionBuilder::DebugString</a></div><div class="ttdeci">std::string DebugString() const override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02952">routing.h:2952</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aea90b377b2cc45917a08d519be784009"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aea90b377b2cc45917a08d519be784009">operations_research::RoutingModel::HasDimension</a></div><div class="ttdeci">bool HasDimension(const std::string &amp;dimension_name) const</div><div class="ttdoc">Returns true if a dimension exists for a given dimension name.</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a689974dbdbc3a3247a2f9c1263dc85b4"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a689974dbdbc3a3247a2f9c1263dc85b4">operations_research::SavingsFilteredDecisionBuilder::savings_container_</a></div><div class="ttdeci">std::unique_ptr&lt; SavingsContainer&lt; Saving &gt; &gt; savings_container_</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03071">routing.h:3071</a></div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_adffc9e3a887d2b1b81deef5d62c6e443"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#adffc9e3a887d2b1b81deef5d62c6e443">operations_research::SavingsFilteredDecisionBuilder::vehicles_per_vehicle_class_</a></div><div class="ttdeci">std::vector&lt; std::deque&lt; int &gt; &gt; vehicles_per_vehicle_class_</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03070">routing.h:3070</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_aa70f385bdf5fc31eec8a848dea13b357"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#aa70f385bdf5fc31eec8a848dea13b357">operations_research::RoutingDimension::GetPickupToDeliveryLimitForPair</a></div><div class="ttdeci">int64 GetPickupToDeliveryLimitForPair(int pair_index, int pickup, int delivery) const</div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_a0d16eaa2f4cc0dbde0c88126021ec34e"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#a0d16eaa2f4cc0dbde0c88126021ec34e">operations_research::BasePathFilter::NumPaths</a></div><div class="ttdeci">int NumPaths() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03227">routing.h:3227</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a0446229ea281bc2be5055b79825b9a9c"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a0446229ea281bc2be5055b79825b9a9c">operations_research::RoutingModel::AddDimensionWithVehicleTransitAndCapacity</a></div><div class="ttdeci">bool AddDimensionWithVehicleTransitAndCapacity(const std::vector&lt; int &gt; &amp;evaluator_indices, int64 slack_max, std::vector&lt; int64 &gt; vehicle_capacities, bool fix_start_cumul_to_zero, const std::string &amp;name)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a7dd3d77b26ddfc5e981637ee8b83c1ed"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a7dd3d77b26ddfc5e981637ee8b83c1ed">operations_research::RoutingModel::RegisterPositiveUnaryTransitCallback</a></div><div class="ttdeci">int RegisterPositiveUnaryTransitCallback(TransitCallback1 callback)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a50dd6fccc1cca84aa10efc8f3ece396c"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a50dd6fccc1cca84aa10efc8f3ece396c">operations_research::RoutingModel::GetArcCostForVehicle</a></div><div class="ttdeci">int64 GetArcCostForVehicle(int64 from_index, int64 to_index, int64 vehicle) const</div><div class="ttdoc">Returns the cost of the transit arc between two nodes for a given vehicle.</div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_ae109ca50bc149b30908669a9224620e2"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#ae109ca50bc149b30908669a9224620e2">operations_research::BasePathFilter::GetNext</a></div><div class="ttdeci">int64 GetNext(int64 node) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03222">routing.h:3222</a></div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a609a96f8163121290267059fc6f27a4a"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a609a96f8163121290267059fc6f27a4a">operations_research::IntVarFilteredDecisionBuilder::Var</a></div><div class="ttdeci">IntVar * Var(int64 index) const</div><div class="ttdoc">Returns the variable of index 'index'.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02568">routing.h:2568</a></div></div>
<div class="ttc" id="classoperations__research_1_1BaseObject_html"><div class="ttname"><a href="classoperations__research_1_1BaseObject.html">operations_research::BaseObject</a></div><div class="ttdoc">A BaseObject is the root of all reversibly allocated objects.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l03084">constraint_solver.h:3084</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_a171d443549aa9ccd4abfbb4724378b7f"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a171d443549aa9ccd4abfbb4724378b7f">operations_research::CheapestInsertionFilteredDecisionBuilder::ComputeStartEndDistanceForVehicles</a></div><div class="ttdeci">std::vector&lt; std::vector&lt; StartEndValue &gt; &gt; ComputeStartEndDistanceForVehicles(const std::vector&lt; int &gt; &amp;vehicles)</div><div class="ttdoc">Computes and returns the distance of each uninserted node to every vehicle in &quot;vehicles&quot; as a std::ve...</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a1698ad93b76ebfc58a0e1a2771e4b75c"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a1698ad93b76ebfc58a0e1a2771e4b75c">operations_research::TypeRegulationsChecker::HasRegulationsToCheck</a></div><div class="ttdeci">virtual bool HasRegulationsToCheck() const =0</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ac22e9cfd1fbf1b4af4f8a9be46ec88a1"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ac22e9cfd1fbf1b4af4f8a9be46ec88a1">operations_research::RoutingModel::AddSameVehicleRequiredTypeAlternatives</a></div><div class="ttdeci">void AddSameVehicleRequiredTypeAlternatives(int dependent_type, absl::flat_hash_set&lt; int &gt; required_type_alternatives)</div><div class="ttdoc">Requirements: NOTE: As of 2019-04, cycles in the requirement graph are not supported,...</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost_html_a84a0cd1c601b30f409f0b7d7d25e453b"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a84a0cd1c601b30f409f0b7d7d25e453b">operations_research::RoutingModel::CostClass::DimensionCost::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(const DimensionCost &amp;cost) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00294">routing.h:294</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a7f84ed07c71e73b7769fb4d18c8f3d1d"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a7f84ed07c71e73b7769fb4d18c8f3d1d">operations_research::TypeRegulationsChecker::GetNonDeliveredCount</a></div><div class="ttdeci">int GetNonDeliveredCount(int type) const</div><div class="ttdoc">Same as above, but substracting the number of deliveries of &quot;type&quot;.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a64f4e1f55b71a9f9a0d7e3ef7033ade7"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a64f4e1f55b71a9f9a0d7e3ef7033ade7">operations_research::RoutingDimension::PickupToDeliveryLimitFunction</a></div><div class="ttdeci">std::function&lt; int64(int, int)&gt; PickupToDeliveryLimitFunction</div><div class="ttdoc">Limits, in terms of maximum difference between the cumul variables, between the pickup and delivery a...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02279">routing.h:2279</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae350d70cb713a6772283e3753f4f2f7a"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae350d70cb713a6772283e3753f4f2f7a">operations_research::RoutingModel::GetSameVehicleRequiredTypeAlternativesOfType</a></div><div class="ttdeci">const std::vector&lt; absl::flat_hash_set&lt; int &gt; &gt; &amp; GetSameVehicleRequiredTypeAlternativesOfType(int type) const</div><div class="ttdoc">Returns the sets of same-vehicle/temporal requirement alternatives for the given type.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ac1a2ab630f6b13644ca6853c7893f413"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ac1a2ab630f6b13644ca6853c7893f413">operations_research::RoutingModel::SetAssignmentFromOtherModelAssignment</a></div><div class="ttdeci">void SetAssignmentFromOtherModelAssignment(Assignment *target_assignment, const RoutingModel *source_model, const Assignment *source_assignment)</div><div class="ttdoc">Given a &quot;source_model&quot; and its &quot;source_assignment&quot;, resets &quot;target_assignment&quot; with the IntVar variab...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ab425ddb1df081fea8f527c63d824fb88"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ab425ddb1df081fea8f527c63d824fb88">operations_research::RoutingDimension::ShortestTransitionSlack</a></div><div class="ttdeci">int64 ShortestTransitionSlack(int64 node) const</div><div class="ttdoc">It makes sense to use the function only for self-dependent dimension.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a92ee209f167d3974329301d784010b63"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a92ee209f167d3974329301d784010b63">operations_research::RoutingModel::AddTemporalRequiredTypeAlternatives</a></div><div class="ttdeci">void AddTemporalRequiredTypeAlternatives(int dependent_type, absl::flat_hash_set&lt; int &gt; required_type_alternatives)</div><div class="ttdoc">If type_D temporally depends on type_R, any non-delivery node_D of type_D requires at least one non-d...</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_ab35b677ad56dbdc2521d9bb28a68f566"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#ab35b677ad56dbdc2521d9bb28a68f566">operations_research::IntVarFilteredDecisionBuilder::number_of_rejects</a></div><div class="ttdeci">int64 number_of_rejects() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02533">routing.h:2533</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a08f0e7114d9118eafc2b3e3f96878014"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a08f0e7114d9118eafc2b3e3f96878014">operations_research::RoutingModel::GetPrimaryConstrainedDimension</a></div><div class="ttdeci">const std::string &amp; GetPrimaryConstrainedDimension() const</div><div class="ttdoc">Get the primary constrained dimension, or an empty std::string if it is unset.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00556">routing.h:556</a></div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a7ad6f39413bee55cd55f66ea28d40d38"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a7ad6f39413bee55cd55f66ea28d40d38">operations_research::SavingsFilteredDecisionBuilder::GetSavingValue</a></div><div class="ttdeci">int64 GetSavingValue(const Saving &amp;saving) const</div><div class="ttdoc">Returns the saving value from a saving.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03053">routing.h:3053</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa5cff2ee7fbe3a9c5c701bfba7460c83a2fecd02405f5ff0769292822ad17a955"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a2fecd02405f5ff0769292822ad17a955">operations_research::RoutingModel::PICKUP_AND_DELIVERY_NO_ORDER</a></div><div class="ttdoc">Any precedence is accepted.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00225">routing.h:225</a></div></div>
<div class="ttc" id="classoperations__research_1_1IntVarLocalSearchFilter_html_af295b14439014798b1fd34faffd3b5e7"><div class="ttname"><a href="classoperations__research_1_1IntVarLocalSearchFilter.html#af295b14439014798b1fd34faffd3b5e7">operations_research::IntVarLocalSearchFilter::IsVarSynced</a></div><div class="ttdeci">bool IsVarSynced(int index) const</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solveri_8h_source.html#l01579">constraint_solveri.h:1579</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_ab35e9f27307e9c5273c9d77fcf30de0e"><div class="ttname"><a href="namespaceoperations__research.html#ab35e9f27307e9c5273c9d77fcf30de0e">operations_research::RoutingTransitCallback2</a></div><div class="ttdeci">std::function&lt; int64(int64, int64)&gt; RoutingTransitCallback2</div><div class="ttdef"><b>Definition:</b> <a href="routing__types_8h_source.html#l00042">routing_types.h:42</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_adca8397d2ad8dfc3bcd2a768bf3e12a2"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#adca8397d2ad8dfc3bcd2a768bf3e12a2">operations_research::RoutingModel::~RoutingModel</a></div><div class="ttdeci">~RoutingModel()</div></div>
<div class="ttc" id="classoperations__research_1_1SimpleBoundCosts_html_af40990b9bd3d70d30e8ce7cdda1ad56f"><div class="ttname"><a href="classoperations__research_1_1SimpleBoundCosts.html#af40990b9bd3d70d30e8ce7cdda1ad56f">operations_research::SimpleBoundCosts::Size</a></div><div class="ttdeci">int Size()</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02017">routing.h:2017</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aaeaf95383c1c03da6f22c522d119775b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aaeaf95383c1c03da6f22c522d119775b">operations_research::RoutingModel::GetAmortizedQuadraticCostFactorOfVehicles</a></div><div class="ttdeci">const std::vector&lt; int64 &gt; &amp; GetAmortizedQuadraticCostFactorOfVehicles() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00842">routing.h:842</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_a9c690acb94faaa03d89930ec84a76bba"><div class="ttname"><a href="namespaceoperations__research.html#a9c690acb94faaa03d89930ec84a76bba">operations_research::AppendTasksFromPath</a></div><div class="ttdeci">void AppendTasksFromPath(const std::vector&lt; int64 &gt; &amp;path, const std::vector&lt; int64 &gt; &amp;min_travels, const std::vector&lt; int64 &gt; &amp;max_travels, const std::vector&lt; int64 &gt; &amp;pre_travels, const std::vector&lt; int64 &gt; &amp;post_travels, const RoutingDimension &amp;dimension, DisjunctivePropagator::Tasks *tasks)</div></div>
<div class="ttc" id="namespaceoperations__research_html_ae3ffb53eac6214b414e926238012a2a0"><div class="ttname"><a href="namespaceoperations__research.html#ae3ffb53eac6214b414e926238012a2a0">operations_research::MakePickupDeliveryFilter</a></div><div class="ttdeci">IntVarLocalSearchFilter * MakePickupDeliveryFilter(const RoutingModel &amp;routing_model, const RoutingModel::IndexPairs &amp;pairs, const std::vector&lt; RoutingModel::PickupAndDeliveryPolicy &gt; &amp;vehicle_policies)</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_ac7c59aaa287baab0ed83f717e84f8b9b"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#ac7c59aaa287baab0ed83f717e84f8b9b">operations_research::TypeRegulationsChecker::InitializeCheck</a></div><div class="ttdeci">virtual void InitializeCheck()</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01914">routing.h:1914</a></div></div>
<div class="ttc" id="classoperations__research_1_1IntVar_html"><div class="ttname"><a href="classoperations__research_1_1IntVar.html">operations_research::IntVar</a></div><div class="ttdoc">The class IntVar is a subset of IntExpr.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l03929">constraint_solver.h:3929</a></div></div>
<div class="ttc" id="classoperations__research_1_1IntVarLocalSearchFilter_html_acc37407ddda743886d3cb40298914f0d"><div class="ttname"><a href="classoperations__research_1_1IntVarLocalSearchFilter.html#acc37407ddda743886d3cb40298914f0d">operations_research::IntVarLocalSearchFilter::Value</a></div><div class="ttdeci">int64 Value(int index) const</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solveri_8h_source.html#l01575">constraint_solveri.h:1575</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_af0a7f9f77f520184e88b73c571be73af"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#af0a7f9f77f520184e88b73c571be73af">operations_research::RoutingModel::kNoDisjunction</a></div><div class="ttdeci">static const DisjunctionIndex kNoDisjunction</div><div class="ttdoc">Constant used to express the &quot;no disjunction&quot; index, returned when a node does not appear in any disj...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00353">routing.h:353</a></div></div>
<div class="ttc" id="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder_html_a1ed186a6a830772c86d8e0ac47c436b3"><div class="ttname"><a href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#a1ed186a6a830772c86d8e0ac47c436b3">operations_research::LocalCheapestInsertionFilteredDecisionBuilder::~LocalCheapestInsertionFilteredDecisionBuilder</a></div><div class="ttdeci">~LocalCheapestInsertionFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02878">routing.h:2878</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a34ab0d5fa45360b5e6a42b9a78cfe5a8"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a34ab0d5fa45360b5e6a42b9a78cfe5a8">operations_research::RoutingModel::GetVehicleClassesCount</a></div><div class="ttdeci">int GetVehicleClassesCount() const</div><div class="ttdoc">Returns the number of different vehicle classes in the model.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01157">routing.h:1157</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingFilteredDecisionBuilder_html_a2ace3be57d4d81121e8ebbd3642052c0"><div class="ttname"><a href="classoperations__research_1_1RoutingFilteredDecisionBuilder.html#a2ace3be57d4d81121e8ebbd3642052c0">operations_research::RoutingFilteredDecisionBuilder::GetStartChainEnd</a></div><div class="ttdeci">int GetStartChainEnd(int vehicle) const</div><div class="ttdoc">Returns the end of the start chain of vehicle,.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02597">routing.h:2597</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_a301de4b3e9f309a93bd6e42a5f79e5dc"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#a301de4b3e9f309a93bd6e42a5f79e5dc">operations_research::CheapestInsertionFilteredDecisionBuilder::~CheapestInsertionFilteredDecisionBuilder</a></div><div class="ttdeci">~CheapestInsertionFilteredDecisionBuilder() override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02626">routing.h:2626</a></div></div>
<div class="ttc" id="namespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l00092">constraint_solver.h:92</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_html"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass.html">operations_research::RoutingModel::CostClass</a></div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00266">routing.h:266</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aa79f8d482de4dd0ef86a1b54999686af"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aa79f8d482de4dd0ef86a1b54999686af">operations_research::RoutingModel::CloseModelWithParameters</a></div><div class="ttdeci">void CloseModelWithParameters(const RoutingSearchParameters &amp;search_parameters)</div><div class="ttdoc">Same as above taking search parameters (as of 10/2015 some the parameters have to be set when closing...</div></div>
<div class="ttc" id="classoperations__research_1_1ChristofidesFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1ChristofidesFilteredDecisionBuilder.html">operations_research::ChristofidesFilteredDecisionBuilder</a></div><div class="ttdoc">Christofides addition heuristic.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03188">routing.h:3188</a></div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a28ee18c0e0da9de081c81efe393a528d"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a28ee18c0e0da9de081c81efe393a528d">operations_research::TypeRegulationsChecker::PickupDeliveryStatus</a></div><div class="ttdeci">PickupDeliveryStatus</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01900">routing.h:1900</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aca85cf6d63540a9ed592a1d7b3236d2d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aca85cf6d63540a9ed592a1d7b3236d2d">operations_research::RoutingModel::AddDimensionWithVehicleCapacity</a></div><div class="ttdeci">bool AddDimensionWithVehicleCapacity(int evaluator_index, int64 slack_max, std::vector&lt; int64 &gt; vehicle_capacities, bool fix_start_cumul_to_zero, const std::string &amp;name)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a7e2d405cde11bc4a08d752d0e669912c"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a7e2d405cde11bc4a08d752d0e669912c">operations_research::RoutingModel::SetTabuVarsCallback</a></div><div class="ttdeci">void SetTabuVarsCallback(GetTabuVarsCallback tabu_var_callback)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_af362b70cab1a5a90703808e9575c2f54"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#af362b70cab1a5a90703808e9575c2f54">operations_research::RoutingDimension::GetCumulVarSoftUpperBoundCoefficient</a></div><div class="ttdeci">int64 GetCumulVarSoftUpperBoundCoefficient(int64 index) const</div><div class="ttdoc">Returns the cost coefficient of the soft upper bound of a cumul variable for a given variable index.</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a68fa0aaa5c8d8dbead32a6b04463722e"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a68fa0aaa5c8d8dbead32a6b04463722e">operations_research::TypeRegulationsChecker::CheckVehicle</a></div><div class="ttdeci">bool CheckVehicle(int vehicle, const std::function&lt; int64(int64)&gt; &amp;next_accessor)</div></div>
<div class="ttc" id="namespaceoperations__research_html_a67f4b4b64a6c11717020eaa963b98c51"><div class="ttname"><a href="namespaceoperations__research.html#a67f4b4b64a6c11717020eaa963b98c51">operations_research::MakeVehicleVarFilter</a></div><div class="ttdeci">IntVarLocalSearchFilter * MakeVehicleVarFilter(const RoutingModel &amp;routing_model)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a1b6f521fdc9dff38b7e065c838fa54a3"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a1b6f521fdc9dff38b7e065c838fa54a3">operations_research::RoutingDimension::cumuls</a></div><div class="ttdeci">const std::vector&lt; IntVar * &gt; &amp; cumuls() const</div><div class="ttdoc">Like CumulVar(), TransitVar(), SlackVar() but return the whole variable vectors instead (indexed by i...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02072">routing.h:2072</a></div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html">operations_research::BasePathFilter</a></div><div class="ttdoc">Generic path-based filter class.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03211">routing.h:3211</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_ae3012c6b24c5be29fe921cb17f9d1d60"><div class="ttname"><a href="namespaceoperations__research.html#ae3012c6b24c5be29fe921cb17f9d1d60">operations_research::MakeNodeDisjunctionFilter</a></div><div class="ttdeci">IntVarLocalSearchFilter * MakeNodeDisjunctionFilter(const RoutingModel &amp;routing_model)</div></div>
<div class="ttc" id="classoperations__research_1_1TypeIncompatibilityChecker_html_a0e62f00f807fac1ac7e9d14e00fb8394"><div class="ttname"><a href="classoperations__research_1_1TypeIncompatibilityChecker.html#a0e62f00f807fac1ac7e9d14e00fb8394">operations_research::TypeIncompatibilityChecker::TypeIncompatibilityChecker</a></div><div class="ttdeci">TypeIncompatibilityChecker(const RoutingModel &amp;model, bool check_hard_incompatibilities)</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ad62f14646fa4da5b6836a2ae505706d2"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ad62f14646fa4da5b6836a2ae505706d2">operations_research::RoutingModel::GetNumOfSingletonNodes</a></div><div class="ttdeci">int GetNumOfSingletonNodes() const</div><div class="ttdoc">Returns the number of non-start/end nodes which do not appear in a pickup/delivery pair.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a572a1aeecbbd82737b62b88a6450a1c5"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a572a1aeecbbd82737b62b88a6450a1c5">operations_research::RoutingModel::SetVisitType</a></div><div class="ttdeci">void SetVisitType(int64 index, int type)</div><div class="ttdoc">Set the node visit types and incompatibilities/requirements between the types (see below).</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_abad8b7edc9f675056db28171da1da655"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#abad8b7edc9f675056db28171da1da655">operations_research::RoutingDimension::TransitVar</a></div><div class="ttdeci">IntVar * TransitVar(int64 index) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02065">routing.h:2065</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a29304c6e17a12d06903ef952d685c5b3"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a29304c6e17a12d06903ef952d685c5b3">operations_research::RoutingDimension::SetSoftSpanUpperBoundForVehicle</a></div><div class="ttdeci">void SetSoftSpanUpperBoundForVehicle(SimpleBoundCosts::BoundCost bound_cost, int vehicle)</div><div class="ttdoc">If the span of vehicle on this dimension is larger than bound, the cost will be increased by cost * (...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02341">routing.h:2341</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_acfcef421e8c8cd243157543f741d6a73"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#acfcef421e8c8cd243157543f741d6a73">operations_research::RoutingModel::WriteAssignment</a></div><div class="ttdeci">bool WriteAssignment(const std::string &amp;file_name) const</div><div class="ttdoc">Writes the current solution to a file containing an AssignmentProto.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a32b850e71c62d48b685e29952e03ba4b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a32b850e71c62d48b685e29952e03ba4b">operations_research::RoutingModel::ForEachNodeInDisjunctionWithMaxCardinalityFromIndex</a></div><div class="ttdeci">void ForEachNodeInDisjunctionWithMaxCardinalityFromIndex(int64 index, int64 max_cardinality, F f) const</div><div class="ttdoc">Calls f for each variable index of indices in the same disjunctions as the node corresponding to the ...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00587">routing.h:587</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a6719229c28ba88ce65968989bb85616b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">operations_research::RoutingModel::VariableIndexEvaluator2</a></div><div class="ttdeci">std::function&lt; StateDependentTransit(int64, int64)&gt; VariableIndexEvaluator2</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00262">routing.h:262</a></div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_a07ca7d21baf239c58ad6bd720a5caadb"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a07ca7d21baf239c58ad6bd720a5caadb">operations_research::DisjunctivePropagator::Tasks::end_max</a></div><div class="ttdeci">std::vector&lt; int64 &gt; end_max</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01722">routing.h:1722</a></div></div>
<div class="ttc" id="classoperations__research_1_1SweepArranger_html_abdec0f71a4b3263e9ed49e1d2b4726f2"><div class="ttname"><a href="classoperations__research_1_1SweepArranger.html#abdec0f71a4b3263e9ed49e1d2b4726f2">operations_research::SweepArranger::SetSectors</a></div><div class="ttdeci">void SetSectors(int sectors)</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02490">routing.h:2490</a></div></div>
<div class="ttc" id="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry_html_a0e6f382c1edda3cf2469aff3f8f5b43d"><div class="ttname"><a href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1VehicleClassEntry.html#a0e6f382c1edda3cf2469aff3f8f5b43d">operations_research::SavingsFilteredDecisionBuilder::VehicleClassEntry::fixed_cost</a></div><div class="ttdeci">int64 fixed_cost</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03028">routing.h:3028</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_ae21ea61bbb486caa9404734373685893"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#ae21ea61bbb486caa9404734373685893">operations_research::RoutingModel::VehicleClass::dimension_end_cumuls_min</a></div><div class="ttdeci">gtl::ITIVector&lt; DimensionIndex, int64 &gt; dimension_end_cumuls_min</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00334">routing.h:334</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_ae34995163df20f89961e907ac3b25532"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#ae34995163df20f89961e907ac3b25532">operations_research::RoutingDimension::SetBreakIntervalsOfVehicle</a></div><div class="ttdeci">void SetBreakIntervalsOfVehicle(std::vector&lt; IntervalVar * &gt; breaks, int vehicle, int pre_travel_evaluator, int post_travel_evaluator)</div><div class="ttdoc">Sets the breaks for a given vehicle.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a0e23be986e4c3b96a50c8798aa5f536d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a0e23be986e4c3b96a50c8798aa5f536d">operations_research::RoutingModel::AddSearchMonitor</a></div><div class="ttdeci">void AddSearchMonitor(SearchMonitor *const monitor)</div><div class="ttdoc">Adds a search monitor to the search used to solve the routing model.</div></div>
<div class="ttc" id="classoperations__research_1_1DisjunctivePropagator_html_a08f43a826695abdbdad1c608cb90b25a"><div class="ttname"><a href="classoperations__research_1_1DisjunctivePropagator.html#a08f43a826695abdbdad1c608cb90b25a">operations_research::DisjunctivePropagator::EdgeFinding</a></div><div class="ttdeci">bool EdgeFinding(Tasks *tasks)</div><div class="ttdoc">Does edge-finding deductions on all tasks.</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1VehicleClass_html_ac4332ba473c0913b24289e3a71522b2c"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html#ac4332ba473c0913b24289e3a71522b2c">operations_research::RoutingModel::VehicleClass::end_equivalence_class</a></div><div class="ttdeci">int end_equivalence_class</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00329">routing.h:329</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost_html_a0c310f28070bbb116acea285b7b891ee"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a0c310f28070bbb116acea285b7b891ee">operations_research::RoutingModel::CostClass::DimensionCost::dimension</a></div><div class="ttdeci">const RoutingDimension * dimension</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00293">routing.h:293</a></div></div>
<div class="ttc" id="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters_html_a8857f65b46da9e2012c7bd939a978442"><div class="ttname"><a href="structoperations__research_1_1SavingsFilteredDecisionBuilder_1_1SavingsParameters.html#a8857f65b46da9e2012c7bd939a978442">operations_research::SavingsFilteredDecisionBuilder::SavingsParameters::add_reverse_arcs</a></div><div class="ttdeci">bool add_reverse_arcs</div><div class="ttdoc">If add_reverse_arcs is true, the neighborhood relationships are considered symmetrically.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03007">routing.h:3007</a></div></div>
<div class="ttc" id="classoperations__research_1_1Decision_html"><div class="ttname"><a href="classoperations__research_1_1Decision.html">operations_research::Decision</a></div><div class="ttdoc">A Decision represents a choice point in the search tree.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l03160">constraint_solver.h:3160</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_adb0524e488894fa8f88764c74abb31f5"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#adb0524e488894fa8f88764c74abb31f5">operations_research::RoutingModel::RemainingTime</a></div><div class="ttdeci">absl::Duration RemainingTime() const</div><div class="ttdoc">Returns the time left in the search limit.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01201">routing.h:1201</a></div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost_html_a348e00acd2dcfd664d889041f317ad31"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass_1_1DimensionCost.html#a348e00acd2dcfd664d889041f317ad31">operations_research::RoutingModel::CostClass::DimensionCost::cost_coefficient</a></div><div class="ttdeci">int64 cost_coefficient</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00292">routing.h:292</a></div></div>
<div class="ttc" id="classoperations__research_1_1IntervalVar_html"><div class="ttname"><a href="classoperations__research_1_1IntervalVar.html">operations_research::IntervalVar</a></div><div class="ttdoc">Interval variables are often used in scheduling.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l04285">constraint_solver.h:4285</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a6569b0ea25fa25c91c2b8b63bedeacc6"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a6569b0ea25fa25c91c2b8b63bedeacc6">operations_research::RoutingModel::GetArcCostForFirstSolution</a></div><div class="ttdeci">int64 GetArcCostForFirstSolution(int64 from_index, int64 to_index) const</div><div class="ttdoc">Returns the cost of the arc in the context of the first solution strategy.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a71815ec83f6605bddb11578ebb835aae"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a71815ec83f6605bddb11578ebb835aae">operations_research::RoutingModel::sweep_arranger</a></div><div class="ttdeci">SweepArranger * sweep_arranger() const</div><div class="ttdoc">Returns the sweep arranger to be used by routing heuristics.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01050">routing.h:1050</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae1adbc353c105572655ae866124c61b6"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae1adbc353c105572655ae866124c61b6">operations_research::RoutingModel::IsStart</a></div><div class="ttdeci">bool IsStart(int64 index) const</div><div class="ttdoc">Returns true if 'index' represents the first node of a route.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a76645042dd00fd9a97a9c4a395927947"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a76645042dd00fd9a97a9c4a395927947">operations_research::RoutingDimension::InitializeBreaks</a></div><div class="ttdeci">void InitializeBreaks()</div><div class="ttdoc">Sets up vehicle_break_intervals_, vehicle_break_distance_duration_, pre_travel_evaluators and post_tr...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a4bab641f5b9bf8de266adad29558b4c2"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a4bab641f5b9bf8de266adad29558b4c2">operations_research::RoutingModel::GetFixedCostOfVehicle</a></div><div class="ttdeci">int64 GetFixedCostOfVehicle(int vehicle) const</div><div class="ttdoc">Returns the route fixed cost taken into account if the route of the vehicle is not empty,...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a660cb5477a6d3fbf146657aa7af73968"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a660cb5477a6d3fbf146657aa7af73968">operations_research::RoutingModel::first_solution_evaluator</a></div><div class="ttdeci">const Solver::IndexEvaluator2 &amp; first_solution_evaluator() const</div><div class="ttdoc">Gets/sets the evaluator used during the search.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00859">routing.h:859</a></div></div>
<div class="ttc" id="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1ComparatorCheapestAdditionFilteredDecisionBuilder.html">operations_research::ComparatorCheapestAdditionFilteredDecisionBuilder</a></div><div class="ttdoc">A CheapestAdditionFilteredDecisionBuilder where the notion of 'cheapest arc' comes from an arc compar...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02967">routing.h:2967</a></div></div>
<div class="ttc" id="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder_html"><div class="ttname"><a href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html">operations_research::LocalCheapestInsertionFilteredDecisionBuilder</a></div><div class="ttdoc">Filter-base decision builder which builds a solution by inserting nodes at their cheapest position.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02871">routing.h:2871</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a7086a908f1890a7e1550c97b774e6384"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a7086a908f1890a7e1550c97b774e6384">operations_research::RoutingModel::AddTemporalTypeIncompatibility</a></div><div class="ttdeci">void AddTemporalTypeIncompatibility(int type1, int type2)</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a473ec32920aa6f5357e511149a960164"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a473ec32920aa6f5357e511149a960164">operations_research::IntVarFilteredDecisionBuilder::BuildSolution</a></div><div class="ttdeci">virtual bool BuildSolution()=0</div><div class="ttdoc">Virtual method to redefine to build a solution.</div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a24926108b770033792d015cb86aeffb3"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a24926108b770033792d015cb86aeffb3">operations_research::IntVarFilteredDecisionBuilder::Size</a></div><div class="ttdeci">int Size() const</div><div class="ttdoc">Returns the number of variables the decision builder is trying to instantiate.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02566">routing.h:2566</a></div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_a7cc44fe8f5261fa7bacc58867dfb3882"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a7cc44fe8f5261fa7bacc58867dfb3882">operations_research::DisjunctivePropagator::Tasks::distance_duration</a></div><div class="ttdeci">std::vector&lt; std::pair&lt; int64, int64 &gt; &gt; distance_duration</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01725">routing.h:1725</a></div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_ad4499e465fd3aaa3088e97227eaf653d"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#ad4499e465fd3aaa3088e97227eaf653d">operations_research::SavingsFilteredDecisionBuilder::BuildSolution</a></div><div class="ttdeci">bool BuildSolution() override</div><div class="ttdoc">Virtual method to redefine to build a solution.</div></div>
<div class="ttc" id="classoperations__research_1_1TypeRegulationsChecker_html_a44b8ed49b96fc411511e28e001da2b49"><div class="ttname"><a href="classoperations__research_1_1TypeRegulationsChecker.html#a44b8ed49b96fc411511e28e001da2b49">operations_research::TypeRegulationsChecker::~TypeRegulationsChecker</a></div><div class="ttdeci">virtual ~TypeRegulationsChecker()</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01894">routing.h:1894</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a496abfcf54eb77d6a82dc03954ee527d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a496abfcf54eb77d6a82dc03954ee527d">operations_research::RoutingModel::AddDimensionDependentDimensionWithVehicleCapacity</a></div><div class="ttdeci">bool AddDimensionDependentDimensionWithVehicleCapacity(const std::vector&lt; int &gt; &amp;pure_transits, const std::vector&lt; int &gt; &amp;dependent_transits, const RoutingDimension *base_dimension, int64 slack_max, std::vector&lt; int64 &gt; vehicle_capacities, bool fix_start_cumul_to_zero, const std::string &amp;name)</div><div class="ttdoc">Creates a dimension with transits depending on the cumuls of another dimension.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00464">routing.h:464</a></div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_a115f81774c290337166f498824bf5b87"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a115f81774c290337166f498824bf5b87">operations_research::DisjunctivePropagator::Tasks::duration_min</a></div><div class="ttdeci">std::vector&lt; int64 &gt; duration_min</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01719">routing.h:1719</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a4768ba91c34c542eddec212a68d79473"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a4768ba91c34c542eddec212a68d79473">operations_research::RoutingModel::AddVariableMinimizedByFinalizer</a></div><div class="ttdeci">void AddVariableMinimizedByFinalizer(IntVar *var)</div><div class="ttdoc">Adds a variable to minimize in the solution finalizer.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a25d079aaf52ffdf6d547384b523ff018"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a25d079aaf52ffdf6d547384b523ff018">operations_research::RoutingModel::DebugOutputAssignment</a></div><div class="ttdeci">std::string DebugOutputAssignment(const Assignment &amp;solution_assignment, const std::string &amp;dimension_to_print) const</div><div class="ttdoc">Print some debugging information about an assignment, including the feasible intervals of the CumulVa...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a35a576bb3ea6814f122593d44a3c391e"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a35a576bb3ea6814f122593d44a3c391e">operations_research::RoutingDimension::model</a></div><div class="ttdeci">RoutingModel * model() const</div><div class="ttdoc">Returns the model on which the dimension was created.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02050">routing.h:2050</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a20d0a3f5cec2e425c86f358e5f06b4a8"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a20d0a3f5cec2e425c86f358e5f06b4a8">operations_research::RoutingModel::MakeGuidedSlackFinalizer</a></div><div class="ttdeci">DecisionBuilder * MakeGuidedSlackFinalizer(const RoutingDimension *dimension, std::function&lt; int64(int64)&gt; initializer)</div><div class="ttdoc">The next few members are in the public section only for testing purposes.</div></div>
<div class="ttc" id="structoperations__research_1_1RoutingModel_1_1CostClass_html_a2b9e2030f3dc0eedf1e94745c2af2cba"><div class="ttname"><a href="structoperations__research_1_1RoutingModel_1_1CostClass.html#a2b9e2030f3dc0eedf1e94745c2af2cba">operations_research::RoutingModel::CostClass::evaluator_index</a></div><div class="ttdeci">int evaluator_index</div><div class="ttdoc">Index of the arc cost evaluator, registered in the RoutingModel class.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00268">routing.h:268</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModelVisitor_html"><div class="ttname"><a href="classoperations__research_1_1RoutingModelVisitor.html">operations_research::RoutingModelVisitor</a></div><div class="ttdoc">Routing model visitor.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01697">routing.h:1697</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aba87f36c7b4e0bdd5e4e8e334b3e27fa"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aba87f36c7b4e0bdd5e4e8e334b3e27fa">operations_research::RoutingModel::SetAmortizedCostFactorsOfAllVehicles</a></div><div class="ttdeci">void SetAmortizedCostFactorsOfAllVehicles(int64 linear_cost_factor, int64 quadratic_cost_factor)</div><div class="ttdoc">The following methods set the linear and quadratic cost factors of vehicles (must be positive values)...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_aad154b31953d2b467bbac3e4ac696cd6"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#aad154b31953d2b467bbac3e4ac696cd6">operations_research::RoutingModel::Nexts</a></div><div class="ttdeci">const std::vector&lt; IntVar * &gt; &amp; Nexts() const</div><div class="ttdoc">Returns all next variables of the model, such that Nexts(i) is the next variable of the node correspo...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01087">routing.h:1087</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a1636c49d2587c3d9df16918345b82378"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a1636c49d2587c3d9df16918345b82378">operations_research::RoutingModel::IndexPair</a></div><div class="ttdeci">RoutingIndexPair IndexPair</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00240">routing.h:240</a></div></div>
<div class="ttc" id="classoperations__research_1_1IntVarFilteredDecisionBuilder_html_a64b348f1f572b9ea470c453a027e6d25"><div class="ttname"><a href="classoperations__research_1_1IntVarFilteredDecisionBuilder.html#a64b348f1f572b9ea470c453a027e6d25">operations_research::IntVarFilteredDecisionBuilder::StopSearch</a></div><div class="ttdeci">virtual bool StopSearch()</div><div class="ttdoc">Returns true if the search must be stopped.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02543">routing.h:2543</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_abd33c037942b971eeefad43c6022c20e"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#abd33c037942b971eeefad43c6022c20e">operations_research::RoutingModel::VehicleIndex</a></div><div class="ttdeci">int VehicleIndex(int index) const</div><div class="ttdoc">Returns the vehicle of the given start/end index, and -1 if the given index is not a vehicle start/en...</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01076">routing.h:1076</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ae0eaa0df826e18882df940962dc4ac27"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ae0eaa0df826e18882df940962dc4ac27">operations_research::RoutingModel::GetPickupAndDeliveryPolicyOfVehicle</a></div><div class="ttdeci">PickupAndDeliveryPolicy GetPickupAndDeliveryPolicyOfVehicle(int vehicle) const</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a3f5d70fe48cb54cbc5d8f6bba55b007d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a3f5d70fe48cb54cbc5d8f6bba55b007d">operations_research::RoutingModel::CheckLimit</a></div><div class="ttdeci">bool CheckLimit()</div><div class="ttdoc">Returns true if the search limit has been crossed.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01195">routing.h:1195</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a67a0db04d321a74b7e7fcfd3f1a3f70ba09515ee36ef4715f09f3aa67f685011e"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba09515ee36ef4715f09f3aa67f685011e">operations_research::RoutingModel::ROUTING_SUCCESS</a></div><div class="ttdoc">Problem solved successfully after calling RoutingModel::Solve().</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00213">routing.h:213</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a89b2c610c22a3223f1cac10233d7992d"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a89b2c610c22a3223f1cac10233d7992d">operations_research::RoutingModel::GetDisjunctionIndices</a></div><div class="ttdeci">const std::vector&lt; DisjunctionIndex &gt; &amp; GetDisjunctionIndices(int64 index) const</div><div class="ttdoc">Returns the indices of the disjunctions to which an index belongs.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00579">routing.h:579</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_a1faf1ea53b992b47f60d0622e42f7a50"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#a1faf1ea53b992b47f60d0622e42f7a50">operations_research::RoutingDimension::global_span_cost_coefficient</a></div><div class="ttdeci">int64 global_span_cost_coefficient() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02323">routing.h:2323</a></div></div>
<div class="ttc" id="classoperations__research_1_1SimpleBoundCosts_html_af2133502882dec3ada4aa271a92bffe6"><div class="ttname"><a href="classoperations__research_1_1SimpleBoundCosts.html#af2133502882dec3ada4aa271a92bffe6">operations_research::SimpleBoundCosts::operator=</a></div><div class="ttdeci">SimpleBoundCosts operator=(const SimpleBoundCosts &amp;)=delete</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingDimension_html_aa46d01169492b00c999344e8982ddd0f"><div class="ttname"><a href="classoperations__research_1_1RoutingDimension.html#aa46d01169492b00c999344e8982ddd0f">operations_research::RoutingDimension::vehicle_to_class</a></div><div class="ttdeci">int vehicle_to_class(int vehicle) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02105">routing.h:2105</a></div></div>
<div class="ttc" id="classoperations__research_1_1DisjunctivePropagator_html_a8a31c563d28e1ebe7c9e140f15fea586"><div class="ttname"><a href="classoperations__research_1_1DisjunctivePropagator.html#a8a31c563d28e1ebe7c9e140f15fea586">operations_research::DisjunctivePropagator::Propagate</a></div><div class="ttdeci">bool Propagate(Tasks *tasks)</div><div class="ttdoc">Computes new bounds for all tasks, returns false if infeasible.</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_ac0258a794b8bf819b03f3337ff558596"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#ac0258a794b8bf819b03f3337ff558596">operations_research::SavingsFilteredDecisionBuilder::GetAfterNodeFromSaving</a></div><div class="ttdeci">int64 GetAfterNodeFromSaving(const Saving &amp;saving) const</div><div class="ttdoc">Returns the &quot;after node&quot; from a saving.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03049">routing.h:3049</a></div></div>
<div class="ttc" id="classoperations__research_1_1Assignment_html"><div class="ttname"><a href="classoperations__research_1_1Assignment.html">operations_research::Assignment</a></div><div class="ttdoc">An Assignment is a variable -&gt; domains mapping, used to report solutions to the user.</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l04929">constraint_solver.h:4929</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_abfa1b833413dee47ab0aa06d8f625fd2"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#abfa1b833413dee47ab0aa06d8f625fd2">operations_research::RoutingModel::SetPrimaryConstrainedDimension</a></div><div class="ttdeci">void SetPrimaryConstrainedDimension(const std::string &amp;dimension_name)</div><div class="ttdoc">Set the given dimension as &quot;primary constrained&quot;.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00550">routing.h:550</a></div></div>
<div class="ttc" id="structoperations__research_1_1DisjunctivePropagator_1_1Tasks_html_a425fd06d315549fdc6e6c482e3cdf774"><div class="ttname"><a href="structoperations__research_1_1DisjunctivePropagator_1_1Tasks.html#a425fd06d315549fdc6e6c482e3cdf774">operations_research::DisjunctivePropagator::Tasks::forbidden_intervals</a></div><div class="ttdeci">std::vector&lt; const SortedDisjointIntervalList * &gt; forbidden_intervals</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l01724">routing.h:1724</a></div></div>
<div class="ttc" id="namespaceoperations__research_html_abec0698c301a7fe57265985e2d30e7c7"><div class="ttname"><a href="namespaceoperations__research.html#abec0698c301a7fe57265985e2d30e7c7">operations_research::RoutingTransitCallback1</a></div><div class="ttdeci">std::function&lt; int64(int64)&gt; RoutingTransitCallback1</div><div class="ttdef"><b>Definition:</b> <a href="routing__types_8h_source.html#l00041">routing_types.h:41</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a966f3010581e2a82e0b1e550667d8bce"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a966f3010581e2a82e0b1e550667d8bce">operations_research::RoutingModel::DimensionIndex</a></div><div class="ttdeci">RoutingDimensionIndex DimensionIndex</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00232">routing.h:232</a></div></div>
<div class="ttc" id="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder_html_aed804747c45a7e1caf81461f9e45dd91"><div class="ttname"><a href="classoperations__research_1_1LocalCheapestInsertionFilteredDecisionBuilder.html#aed804747c45a7e1caf81461f9e45dd91">operations_research::LocalCheapestInsertionFilteredDecisionBuilder::DebugString</a></div><div class="ttdeci">std::string DebugString() const override</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02880">routing.h:2880</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ad19492313b68e5a963af3793aaec8d90"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ad19492313b68e5a963af3793aaec8d90">operations_research::RoutingModel::HasTemporalTypeIncompatibilities</a></div><div class="ttdeci">bool HasTemporalTypeIncompatibilities() const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00742">routing.h:742</a></div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a3ca37b113e071c2c1aca971b7008d275"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a3ca37b113e071c2c1aca971b7008d275">operations_research::SavingsFilteredDecisionBuilder::GetVehicleTypeFromSaving</a></div><div class="ttdeci">int64 GetVehicleTypeFromSaving(const Saving &amp;saving) const</div><div class="ttdoc">Returns the cost class from a saving.</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03041">routing.h:3041</a></div></div>
<div class="ttc" id="classoperations__research_1_1BasePathFilter_html_ad6f96f2e93457d4cc8ff4bc2ea5a738a"><div class="ttname"><a href="classoperations__research_1_1BasePathFilter.html#ad6f96f2e93457d4cc8ff4bc2ea5a738a">operations_research::BasePathFilter::Rank</a></div><div class="ttdeci">int Rank(int64 node) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03230">routing.h:3230</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a9d8ead500db4128d0d27f8066d1f8208"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a9d8ead500db4128d0d27f8066d1f8208">operations_research::RoutingModel::GetTemporalTypeIncompatibilitiesOfType</a></div><div class="ttdeci">const absl::flat_hash_set&lt; int &gt; &amp; GetTemporalTypeIncompatibilitiesOfType(int type) const</div></div>
<div class="ttc" id="classoperations__research_1_1SavingsFilteredDecisionBuilder_html_a2520cfaec0cd23cd56fd1eec8db79be4"><div class="ttname"><a href="classoperations__research_1_1SavingsFilteredDecisionBuilder.html#a2520cfaec0cd23cd56fd1eec8db79be4">operations_research::SavingsFilteredDecisionBuilder::Saving</a></div><div class="ttdeci">std::pair&lt; int64, int64 &gt; Saving</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l03021">routing.h:3021</a></div></div>
<div class="ttc" id="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder_html_af10aed726a9b750452a6fdeae3f00feb"><div class="ttname"><a href="classoperations__research_1_1CheapestInsertionFilteredDecisionBuilder.html#af10aed726a9b750452a6fdeae3f00feb">operations_research::CheapestInsertionFilteredDecisionBuilder::Seed</a></div><div class="ttdeci">std::pair&lt; StartEndValue, int &gt; Seed</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02639">routing.h:2639</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_ac0772bdc4f47e45edccd5a5c25154993"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#ac0772bdc4f47e45edccd5a5c25154993">operations_research::RoutingModel::StateDependentTransitCallback</a></div><div class="ttdeci">const VariableIndexEvaluator2 &amp; StateDependentTransitCallback(int callback_index) const</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00381">routing.h:381</a></div></div>
<div class="ttc" id="classoperations__research_1_1SweepArranger_html_af531dae235dc7c9501a428a8ddeff432"><div class="ttname"><a href="classoperations__research_1_1SweepArranger.html#af531dae235dc7c9501a428a8ddeff432">operations_research::SweepArranger::~SweepArranger</a></div><div class="ttdeci">virtual ~SweepArranger()</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l02488">routing.h:2488</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a8bd5bf6b0d1d0c1c5e2470c5f4882a62"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a8bd5bf6b0d1d0c1c5e2470c5f4882a62">operations_research::RoutingModel::SetPickupAndDeliveryPolicyOfVehicle</a></div><div class="ttdeci">void SetPickupAndDeliveryPolicyOfVehicle(PickupAndDeliveryPolicy policy, int vehicle)</div></div>
<div class="ttc" id="classoperations__research_1_1CPFeasibilityFilter_html_a511cf14b54c83cffc0a673985db90643"><div class="ttname"><a href="classoperations__research_1_1CPFeasibilityFilter.html#a511cf14b54c83cffc0a673985db90643">operations_research::CPFeasibilityFilter::Accept</a></div><div class="ttdeci">bool Accept(const Assignment *delta, const Assignment *deltadelta, int64 objective_min, int64 objective_max) override</div><div class="ttdoc">Accepts a &quot;delta&quot; given the assignment with which the filter has been synchronized; the delta holds t...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a95fe00b0ee96cce90af625f88d931b04"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a95fe00b0ee96cce90af625f88d931b04">operations_research::RoutingModel::AddConstantDimensionWithSlack</a></div><div class="ttdeci">bool AddConstantDimensionWithSlack(int64 value, int64 capacity, int64 slack_max, bool fix_start_cumul_to_zero, const std::string &amp;name)</div><div class="ttdoc">Creates a dimension where the transit variable is constrained to be equal to 'value'; 'capacity' is t...</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_acbab635c68d8a6e0961afae0f606590b"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#acbab635c68d8a6e0961afae0f606590b">operations_research::RoutingModel::RegisterUnaryTransitCallback</a></div><div class="ttdeci">int RegisterUnaryTransitCallback(TransitCallback1 callback)</div><div class="ttdoc">Registers 'callback' and returns its index.</div></div>
<div class="ttc" id="classoperations__research_1_1Solver_html_abb24034fec2804ac3c0172f043087321"><div class="ttname"><a href="classoperations__research_1_1Solver.html#abb24034fec2804ac3c0172f043087321">operations_research::Solver::IndexEvaluator2</a></div><div class="ttdeci">std::function&lt; int64(int64, int64)&gt; IndexEvaluator2</div><div class="ttdef"><b>Definition:</b> <a href="constraint__solver_8h_source.html#l00722">constraint_solver.h:722</a></div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a97d152b7049084186342b719eee6fa15"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a97d152b7049084186342b719eee6fa15">operations_research::RoutingModel::AssignmentToRoutes</a></div><div class="ttdeci">void AssignmentToRoutes(const Assignment &amp;assignment, std::vector&lt; std::vector&lt; int64 &gt;&gt; *const routes) const</div><div class="ttdoc">Converts the solution in the given assignment to routes for all vehicles.</div></div>
<div class="ttc" id="classoperations__research_1_1RoutingModel_html_a5fa8aee5b0c67072dbbb03f1899ec60a"><div class="ttname"><a href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">operations_research::RoutingModel::TransitCallback2</a></div><div class="ttdeci">RoutingTransitCallback2 TransitCallback2</div><div class="ttdef"><b>Definition:</b> <a href="routing_8h_source.html#l00236">routing.h:236</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div>
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>