5714 lines
336 KiB
HTML
5714 lines
336 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.4</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.16 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><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="namespaceoperations__research.html">operations_research</a></li><li class="navelem"><a class="el" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Classes</a> |
|
|
<a href="#pub-types">Public Types</a> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
|
<a href="#pub-static-attribs">Static Public Attributes</a> |
|
|
<a href="classoperations__research_1_1RoutingModel-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">RoutingModel</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock">
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00208">208</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
</div><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
|
Classes</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structoperations__research_1_1RoutingModel_1_1CostClass.html">CostClass</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html">StateDependentTransit</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">What follows is relevant for models with time/state dependent transits. <a href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structoperations__research_1_1RoutingModel_1_1VehicleClass.html">VehicleClass</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
|
Public Types</h2></td></tr>
|
|
<tr class="memitem:a67a0db04d321a74b7e7fcfd3f1a3f70b"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> { <br />
|
|
  <a class="el" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70babe45300b724161791a6429b27d7f5009">ROUTING_NOT_SOLVED</a>,
|
|
<a class="el" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70ba09515ee36ef4715f09f3aa67f685011e">ROUTING_SUCCESS</a>,
|
|
<a class="el" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70baba9b2029e549c14c8a6b9f6201e329fd">ROUTING_FAIL</a>,
|
|
<a class="el" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70baf6452d79d02ab06bc8d722d25825cae3">ROUTING_FAIL_TIMEOUT</a>,
|
|
<br />
|
|
  <a class="el" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae78ffdfdfc3eb7331c0ef91bdef8452b">ROUTING_INVALID</a>
|
|
<br />
|
|
}</td></tr>
|
|
<tr class="memdesc:a67a0db04d321a74b7e7fcfd3f1a3f70b"><td class="mdescLeft"> </td><td class="mdescRight">Status of the search. <a href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">More...</a><br /></td></tr>
|
|
<tr class="separator:a67a0db04d321a74b7e7fcfd3f1a3f70b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa5cff2ee7fbe3a9c5c701bfba7460c83"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> { <a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a2fecd02405f5ff0769292822ad17a955">PICKUP_AND_DELIVERY_NO_ORDER</a>,
|
|
<a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a272376ed085de7d28d36fa1013394cc8">PICKUP_AND_DELIVERY_LIFO</a>,
|
|
<a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83a5c55a9aa52a754be8eb1b9d29af97a8a">PICKUP_AND_DELIVERY_FIFO</a>
|
|
}</td></tr>
|
|
<tr class="memdesc:aa5cff2ee7fbe3a9c5c701bfba7460c83"><td class="mdescLeft"> </td><td class="mdescRight">Types of precedence policy applied to pickup and delivery pairs. <a href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">More...</a><br /></td></tr>
|
|
<tr class="separator:aa5cff2ee7fbe3a9c5c701bfba7460c83"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad13ad202092298b43c9099b212c54d3d"><td class="memItemLeft" align="right" valign="top">typedef RoutingCostClassIndex </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a></td></tr>
|
|
<tr class="separator:ad13ad202092298b43c9099b212c54d3d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a966f3010581e2a82e0b1e550667d8bce"><td class="memItemLeft" align="right" valign="top">typedef RoutingDimensionIndex </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a966f3010581e2a82e0b1e550667d8bce">DimensionIndex</a></td></tr>
|
|
<tr class="separator:a966f3010581e2a82e0b1e550667d8bce"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afa7cbbd4db2dd5d0bec3393efc9ebac1"><td class="memItemLeft" align="right" valign="top">typedef RoutingDisjunctionIndex </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a></td></tr>
|
|
<tr class="separator:afa7cbbd4db2dd5d0bec3393efc9ebac1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab6aae3927f3537c446ac33f2c6ecb922"><td class="memItemLeft" align="right" valign="top">typedef RoutingVehicleClassIndex </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ab6aae3927f3537c446ac33f2c6ecb922">VehicleClassIndex</a></td></tr>
|
|
<tr class="separator:ab6aae3927f3537c446ac33f2c6ecb922"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a204041e5264282d54dfd198011e776d3"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="namespaceoperations__research.html#abec0698c301a7fe57265985e2d30e7c7">RoutingTransitCallback1</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a></td></tr>
|
|
<tr class="separator:a204041e5264282d54dfd198011e776d3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5fa8aee5b0c67072dbbb03f1899ec60a"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="namespaceoperations__research.html#ab35e9f27307e9c5273c9d77fcf30de0e">RoutingTransitCallback2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a></td></tr>
|
|
<tr class="separator:a5fa8aee5b0c67072dbbb03f1899ec60a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1636c49d2587c3d9df16918345b82378"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="namespaceoperations__research.html#a1a7c1221ae29f298e0879e516d086f8b">RoutingIndexPair</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a1636c49d2587c3d9df16918345b82378">IndexPair</a></td></tr>
|
|
<tr class="separator:a1636c49d2587c3d9df16918345b82378"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a76874cd778ea1b9220673e019f9e7abe"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="namespaceoperations__research.html#aef7db0bee0a22d1791d040fd3853f3b7">RoutingIndexPairs</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe">IndexPairs</a></td></tr>
|
|
<tr class="separator:a76874cd778ea1b9220673e019f9e7abe"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6719229c28ba88ce65968989bb85616b"><td class="memItemLeft" align="right" valign="top">typedef std::function< <a class="el" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html">StateDependentTransit</a>(int64, int64)> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">VariableIndexEvaluator2</a></td></tr>
|
|
<tr class="separator:a6719229c28ba88ce65968989bb85616b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0e106a97f0156868f1d1c741b283793e"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e">GetTabuVarsCallback</a> = std::function< std::vector< <a class="el" href="classoperations__research_1_1IntVar.html">operations_research::IntVar</a> * >(<a class="el" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a> *)></td></tr>
|
|
<tr class="memdesc:a0e106a97f0156868f1d1c741b283793e"><td class="mdescLeft"> </td><td class="mdescRight">Sets the callback returning the variable to use for the Tabu Search metaheuristic. <a href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e">More...</a><br /></td></tr>
|
|
<tr class="separator:a0e106a97f0156868f1d1c741b283793e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:af12674b693b7b7cfe271e5b066e10bff"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#af12674b693b7b7cfe271e5b066e10bff">RoutingModel</a> (const <a class="el" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a> &index_manager)</td></tr>
|
|
<tr class="memdesc:af12674b693b7b7cfe271e5b066e10bff"><td class="mdescLeft"> </td><td class="mdescRight">Constructor taking an index manager. <a href="classoperations__research_1_1RoutingModel.html#af12674b693b7b7cfe271e5b066e10bff">More...</a><br /></td></tr>
|
|
<tr class="separator:af12674b693b7b7cfe271e5b066e10bff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a33cbb6c72596f866cb9cd105c5fee8ff"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a33cbb6c72596f866cb9cd105c5fee8ff">RoutingModel</a> (const <a class="el" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a> &index_manager, const RoutingModelParameters &parameters)</td></tr>
|
|
<tr class="separator:a33cbb6c72596f866cb9cd105c5fee8ff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adca8397d2ad8dfc3bcd2a768bf3e12a2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#adca8397d2ad8dfc3bcd2a768bf3e12a2">~RoutingModel</a> ()</td></tr>
|
|
<tr class="separator:adca8397d2ad8dfc3bcd2a768bf3e12a2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acbab635c68d8a6e0961afae0f606590b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#acbab635c68d8a6e0961afae0f606590b">RegisterUnaryTransitCallback</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a> callback)</td></tr>
|
|
<tr class="memdesc:acbab635c68d8a6e0961afae0f606590b"><td class="mdescLeft"> </td><td class="mdescRight">Registers 'callback' and returns its index. <a href="classoperations__research_1_1RoutingModel.html#acbab635c68d8a6e0961afae0f606590b">More...</a><br /></td></tr>
|
|
<tr class="separator:acbab635c68d8a6e0961afae0f606590b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7dd3d77b26ddfc5e981637ee8b83c1ed"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a7dd3d77b26ddfc5e981637ee8b83c1ed">RegisterPositiveUnaryTransitCallback</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a> callback)</td></tr>
|
|
<tr class="separator:a7dd3d77b26ddfc5e981637ee8b83c1ed"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8c58bbbfc090a581f02d76fabf465b3e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a8c58bbbfc090a581f02d76fabf465b3e">RegisterTransitCallback</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a> callback)</td></tr>
|
|
<tr class="separator:a8c58bbbfc090a581f02d76fabf465b3e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa540a1068aef75c041330a2eafccd623"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa540a1068aef75c041330a2eafccd623">RegisterPositiveTransitCallback</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a> callback)</td></tr>
|
|
<tr class="separator:aa540a1068aef75c041330a2eafccd623"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a422ce2898045c53fc90d21d8633d4af7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a422ce2898045c53fc90d21d8633d4af7">RegisterStateDependentTransitCallback</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">VariableIndexEvaluator2</a> callback)</td></tr>
|
|
<tr class="separator:a422ce2898045c53fc90d21d8633d4af7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad558398f8c75f81d879f74d18ba5e7c3"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad558398f8c75f81d879f74d18ba5e7c3">TransitCallback</a> (int callback_index) const</td></tr>
|
|
<tr class="separator:ad558398f8c75f81d879f74d18ba5e7c3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a44afcc03d5cb68c01acefa253de9edcf"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a44afcc03d5cb68c01acefa253de9edcf">UnaryTransitCallbackOrNull</a> (int callback_index) const</td></tr>
|
|
<tr class="separator:a44afcc03d5cb68c01acefa253de9edcf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac0772bdc4f47e45edccd5a5c25154993"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">VariableIndexEvaluator2</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ac0772bdc4f47e45edccd5a5c25154993">StateDependentTransitCallback</a> (int callback_index) const</td></tr>
|
|
<tr class="separator:ac0772bdc4f47e45edccd5a5c25154993"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab76cd57b0490eb4253fd1bf792e23f16"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ab76cd57b0490eb4253fd1bf792e23f16">AddDimension</a> (int evaluator_index, int64 slack_max, int64 capacity, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="memdesc:ab76cd57b0490eb4253fd1bf792e23f16"><td class="mdescLeft"> </td><td class="mdescRight">Model creation. <a href="classoperations__research_1_1RoutingModel.html#ab76cd57b0490eb4253fd1bf792e23f16">More...</a><br /></td></tr>
|
|
<tr class="separator:ab76cd57b0490eb4253fd1bf792e23f16"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a66b87fec514d648c751ad9d4df09d05b"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a66b87fec514d648c751ad9d4df09d05b">AddDimensionWithVehicleTransits</a> (const std::vector< int > &evaluator_indices, int64 slack_max, int64 capacity, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="separator:a66b87fec514d648c751ad9d4df09d05b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aca85cf6d63540a9ed592a1d7b3236d2d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aca85cf6d63540a9ed592a1d7b3236d2d">AddDimensionWithVehicleCapacity</a> (int evaluator_index, int64 slack_max, std::vector< int64 > vehicle_capacities, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="separator:aca85cf6d63540a9ed592a1d7b3236d2d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0446229ea281bc2be5055b79825b9a9c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a0446229ea281bc2be5055b79825b9a9c">AddDimensionWithVehicleTransitAndCapacity</a> (const std::vector< int > &evaluator_indices, int64 slack_max, std::vector< int64 > vehicle_capacities, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="separator:a0446229ea281bc2be5055b79825b9a9c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a95fe00b0ee96cce90af625f88d931b04"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a95fe00b0ee96cce90af625f88d931b04">AddConstantDimensionWithSlack</a> (int64 value, int64 capacity, int64 slack_max, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="memdesc:a95fe00b0ee96cce90af625f88d931b04"><td class="mdescLeft"> </td><td class="mdescRight">Creates a dimension where the transit variable is constrained to be equal to 'value'; 'capacity' is the upper bound of the cumul variables. <a href="classoperations__research_1_1RoutingModel.html#a95fe00b0ee96cce90af625f88d931b04">More...</a><br /></td></tr>
|
|
<tr class="separator:a95fe00b0ee96cce90af625f88d931b04"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9fc965a401f96f12f9101b73ece8d26a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a9fc965a401f96f12f9101b73ece8d26a">AddConstantDimension</a> (int64 value, int64 capacity, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="separator:a9fc965a401f96f12f9101b73ece8d26a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aedbec46c51bb2d8b0b0f77fc98ac8e9e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aedbec46c51bb2d8b0b0f77fc98ac8e9e">AddVectorDimension</a> (std::vector< int64 > values, int64 capacity, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="memdesc:aedbec46c51bb2d8b0b0f77fc98ac8e9e"><td class="mdescLeft"> </td><td class="mdescRight">Creates a dimension where the transit variable is constrained to be equal to 'values[i]' for node i; 'capacity' is the upper bound of the cumul variables. <a href="classoperations__research_1_1RoutingModel.html#aedbec46c51bb2d8b0b0f77fc98ac8e9e">More...</a><br /></td></tr>
|
|
<tr class="separator:aedbec46c51bb2d8b0b0f77fc98ac8e9e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6842df436effdf2492362bb89e171af0"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a6842df436effdf2492362bb89e171af0">AddMatrixDimension</a> (std::vector< std::vector< int64 >> values, int64 capacity, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="memdesc:a6842df436effdf2492362bb89e171af0"><td class="mdescLeft"> </td><td class="mdescRight">Creates a dimension where the transit variable is constrained to be equal to 'values[i][next(i)]' for node i; 'capacity' is the upper bound of the cumul variables. <a href="classoperations__research_1_1RoutingModel.html#a6842df436effdf2492362bb89e171af0">More...</a><br /></td></tr>
|
|
<tr class="separator:a6842df436effdf2492362bb89e171af0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a496abfcf54eb77d6a82dc03954ee527d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a496abfcf54eb77d6a82dc03954ee527d">AddDimensionDependentDimensionWithVehicleCapacity</a> (const std::vector< int > &pure_transits, const std::vector< int > &dependent_transits, const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> *base_dimension, int64 slack_max, std::vector< int64 > vehicle_capacities, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="memdesc:a496abfcf54eb77d6a82dc03954ee527d"><td class="mdescLeft"> </td><td class="mdescRight">Creates a dimension with transits depending on the cumuls of another dimension. <a href="classoperations__research_1_1RoutingModel.html#a496abfcf54eb77d6a82dc03954ee527d">More...</a><br /></td></tr>
|
|
<tr class="separator:a496abfcf54eb77d6a82dc03954ee527d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa3570966e8c66b444e02256805094be4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa3570966e8c66b444e02256805094be4">AddDimensionDependentDimensionWithVehicleCapacity</a> (const std::vector< int > &transits, const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> *base_dimension, int64 slack_max, std::vector< int64 > vehicle_capacities, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="memdesc:aa3570966e8c66b444e02256805094be4"><td class="mdescLeft"> </td><td class="mdescRight">As above, but pure_transits are taken to be zero evaluators. <a href="classoperations__research_1_1RoutingModel.html#aa3570966e8c66b444e02256805094be4">More...</a><br /></td></tr>
|
|
<tr class="separator:aa3570966e8c66b444e02256805094be4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9681fce3b255669812d0eb7fd7e372b2"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a9681fce3b255669812d0eb7fd7e372b2">AddDimensionDependentDimensionWithVehicleCapacity</a> (int transit, const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> *base_dimension, int64 slack_max, int64 vehicle_capacity, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="memdesc:a9681fce3b255669812d0eb7fd7e372b2"><td class="mdescLeft"> </td><td class="mdescRight">Homogeneous versions of the functions above. <a href="classoperations__research_1_1RoutingModel.html#a9681fce3b255669812d0eb7fd7e372b2">More...</a><br /></td></tr>
|
|
<tr class="separator:a9681fce3b255669812d0eb7fd7e372b2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae374acc8df39a05017649aa0533b66fd"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae374acc8df39a05017649aa0533b66fd">AddDimensionDependentDimensionWithVehicleCapacity</a> (int pure_transit, int dependent_transit, const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> *base_dimension, int64 slack_max, int64 vehicle_capacity, bool fix_start_cumul_to_zero, const std::string &name)</td></tr>
|
|
<tr class="separator:ae374acc8df39a05017649aa0533b66fd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac041507427102f15800b00ece1f7b2c8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1Constraint.html">Constraint</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ac041507427102f15800b00ece1f7b2c8">MakePathSpansAndTotalSlacks</a> (const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> *dimension, std::vector< <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * > spans, std::vector< <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * > total_slacks)</td></tr>
|
|
<tr class="memdesc:ac041507427102f15800b00ece1f7b2c8"><td class="mdescLeft"> </td><td class="mdescRight">For every vehicle of the routing model: <a href="classoperations__research_1_1RoutingModel.html#ac041507427102f15800b00ece1f7b2c8">More...</a><br /></td></tr>
|
|
<tr class="separator:ac041507427102f15800b00ece1f7b2c8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a43e14716c146e779b818f3451f23af1d"><td class="memItemLeft" align="right" valign="top">std::vector<::std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a43e14716c146e779b818f3451f23af1d">GetAllDimensionNames</a> () const</td></tr>
|
|
<tr class="memdesc:a43e14716c146e779b818f3451f23af1d"><td class="mdescLeft"> </td><td class="mdescRight">Outputs the names of all dimensions added to the routing engine. <a href="classoperations__research_1_1RoutingModel.html#a43e14716c146e779b818f3451f23af1d">More...</a><br /></td></tr>
|
|
<tr class="separator:a43e14716c146e779b818f3451f23af1d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a635aac580cbeb4bcde72c9464f33ac06"><td class="memItemLeft" align="right" valign="top">const std::vector< <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a635aac580cbeb4bcde72c9464f33ac06">GetDimensions</a> () const</td></tr>
|
|
<tr class="memdesc:a635aac580cbeb4bcde72c9464f33ac06"><td class="mdescLeft"> </td><td class="mdescRight">Returns all dimensions of the model. <a href="classoperations__research_1_1RoutingModel.html#a635aac580cbeb4bcde72c9464f33ac06">More...</a><br /></td></tr>
|
|
<tr class="separator:a635aac580cbeb4bcde72c9464f33ac06"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8a1c183bafee7baf41b816776e8e76c8"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a8a1c183bafee7baf41b816776e8e76c8">GetDimensionsWithSoftOrSpanCosts</a> () const</td></tr>
|
|
<tr class="memdesc:a8a1c183bafee7baf41b816776e8e76c8"><td class="mdescLeft"> </td><td class="mdescRight">Returns dimensions with soft or vehicle span costs. <a href="classoperations__research_1_1RoutingModel.html#a8a1c183bafee7baf41b816776e8e76c8">More...</a><br /></td></tr>
|
|
<tr class="separator:a8a1c183bafee7baf41b816776e8e76c8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad74e0742282743e9a78680f0565015be"><td class="memItemLeft" align="right" valign="top">const std::vector< std::unique_ptr< <a class="el" href="classoperations__research_1_1GlobalDimensionCumulOptimizer.html">GlobalDimensionCumulOptimizer</a> > > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad74e0742282743e9a78680f0565015be">GetGlobalDimensionCumulOptimizers</a> () const</td></tr>
|
|
<tr class="memdesc:ad74e0742282743e9a78680f0565015be"><td class="mdescLeft"> </td><td class="mdescRight">Returns [global|local]_dimension_optimizers_, which are empty if the model has not been closed. <a href="classoperations__research_1_1RoutingModel.html#ad74e0742282743e9a78680f0565015be">More...</a><br /></td></tr>
|
|
<tr class="separator:ad74e0742282743e9a78680f0565015be"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a449a82a0294dae7de9310328274462dd"><td class="memItemLeft" align="right" valign="top">const std::vector< std::unique_ptr< <a class="el" href="classoperations__research_1_1LocalDimensionCumulOptimizer.html">LocalDimensionCumulOptimizer</a> > > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a449a82a0294dae7de9310328274462dd">GetLocalDimensionCumulOptimizers</a> () const</td></tr>
|
|
<tr class="separator:a449a82a0294dae7de9310328274462dd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1acd42381917a2b8dd956f87657e7bf1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1GlobalDimensionCumulOptimizer.html">GlobalDimensionCumulOptimizer</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a1acd42381917a2b8dd956f87657e7bf1">GetMutableGlobalCumulOptimizer</a> (const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> &dimension) const</td></tr>
|
|
<tr class="memdesc:a1acd42381917a2b8dd956f87657e7bf1"><td class="mdescLeft"> </td><td class="mdescRight">Returns the global/local dimension cumul optimizer for a given dimension, or nullptr if there is none. <a href="classoperations__research_1_1RoutingModel.html#a1acd42381917a2b8dd956f87657e7bf1">More...</a><br /></td></tr>
|
|
<tr class="separator:a1acd42381917a2b8dd956f87657e7bf1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a50f66c7639c3aa15eff6222a53b2bf7e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1LocalDimensionCumulOptimizer.html">LocalDimensionCumulOptimizer</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a50f66c7639c3aa15eff6222a53b2bf7e">GetMutableLocalCumulOptimizer</a> (const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> &dimension) const</td></tr>
|
|
<tr class="separator:a50f66c7639c3aa15eff6222a53b2bf7e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aea90b377b2cc45917a08d519be784009"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aea90b377b2cc45917a08d519be784009">HasDimension</a> (const std::string &dimension_name) const</td></tr>
|
|
<tr class="memdesc:aea90b377b2cc45917a08d519be784009"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if a dimension exists for a given dimension name. <a href="classoperations__research_1_1RoutingModel.html#aea90b377b2cc45917a08d519be784009">More...</a><br /></td></tr>
|
|
<tr class="separator:aea90b377b2cc45917a08d519be784009"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae9de37fba84b76353809819903940473"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae9de37fba84b76353809819903940473">GetDimensionOrDie</a> (const std::string &dimension_name) const</td></tr>
|
|
<tr class="memdesc:ae9de37fba84b76353809819903940473"><td class="mdescLeft"> </td><td class="mdescRight">Returns a dimension from its name. Dies if the dimension does not exist. <a href="classoperations__research_1_1RoutingModel.html#ae9de37fba84b76353809819903940473">More...</a><br /></td></tr>
|
|
<tr class="separator:ae9de37fba84b76353809819903940473"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac9cd3df1f2e22dc88129e0d21e8b3673"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ac9cd3df1f2e22dc88129e0d21e8b3673">GetMutableDimension</a> (const std::string &dimension_name) const</td></tr>
|
|
<tr class="memdesc:ac9cd3df1f2e22dc88129e0d21e8b3673"><td class="mdescLeft"> </td><td class="mdescRight">Returns a dimension from its name. <a href="classoperations__research_1_1RoutingModel.html#ac9cd3df1f2e22dc88129e0d21e8b3673">More...</a><br /></td></tr>
|
|
<tr class="separator:ac9cd3df1f2e22dc88129e0d21e8b3673"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abfa1b833413dee47ab0aa06d8f625fd2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#abfa1b833413dee47ab0aa06d8f625fd2">SetPrimaryConstrainedDimension</a> (const std::string &dimension_name)</td></tr>
|
|
<tr class="memdesc:abfa1b833413dee47ab0aa06d8f625fd2"><td class="mdescLeft"> </td><td class="mdescRight">Set the given dimension as "primary constrained". <a href="classoperations__research_1_1RoutingModel.html#abfa1b833413dee47ab0aa06d8f625fd2">More...</a><br /></td></tr>
|
|
<tr class="separator:abfa1b833413dee47ab0aa06d8f625fd2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a08f0e7114d9118eafc2b3e3f96878014"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a08f0e7114d9118eafc2b3e3f96878014">GetPrimaryConstrainedDimension</a> () const</td></tr>
|
|
<tr class="memdesc:a08f0e7114d9118eafc2b3e3f96878014"><td class="mdescLeft"> </td><td class="mdescRight">Get the primary constrained dimension, or an empty std::string if it is unset. <a href="classoperations__research_1_1RoutingModel.html#a08f0e7114d9118eafc2b3e3f96878014">More...</a><br /></td></tr>
|
|
<tr class="separator:a08f0e7114d9118eafc2b3e3f96878014"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa75928669f7ad3ffa7882538f74dab8b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa75928669f7ad3ffa7882538f74dab8b">AddDisjunction</a> (const std::vector< int64 > &indices, int64 penalty=<a class="el" href="classoperations__research_1_1RoutingModel.html#a89db28c1da47c5aef8a0aa380a1800ec">kNoPenalty</a>, int64 max_cardinality=1)</td></tr>
|
|
<tr class="memdesc:aa75928669f7ad3ffa7882538f74dab8b"><td class="mdescLeft"> </td><td class="mdescRight">Adds a disjunction constraint on the indices: exactly 'max_cardinality' of the indices are active. <a href="classoperations__research_1_1RoutingModel.html#aa75928669f7ad3ffa7882538f74dab8b">More...</a><br /></td></tr>
|
|
<tr class="separator:aa75928669f7ad3ffa7882538f74dab8b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a89b2c610c22a3223f1cac10233d7992d"><td class="memItemLeft" align="right" valign="top">const std::vector< <a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a89b2c610c22a3223f1cac10233d7992d">GetDisjunctionIndices</a> (int64 index) const</td></tr>
|
|
<tr class="memdesc:a89b2c610c22a3223f1cac10233d7992d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the indices of the disjunctions to which an index belongs. <a href="classoperations__research_1_1RoutingModel.html#a89b2c610c22a3223f1cac10233d7992d">More...</a><br /></td></tr>
|
|
<tr class="separator:a89b2c610c22a3223f1cac10233d7992d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a32b850e71c62d48b685e29952e03ba4b"><td class="memTemplParams" colspan="2">template<typename F > </td></tr>
|
|
<tr class="memitem:a32b850e71c62d48b685e29952e03ba4b"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a32b850e71c62d48b685e29952e03ba4b">ForEachNodeInDisjunctionWithMaxCardinalityFromIndex</a> (int64 index, int64 max_cardinality, F f) const</td></tr>
|
|
<tr class="memdesc:a32b850e71c62d48b685e29952e03ba4b"><td class="mdescLeft"> </td><td class="mdescRight">Calls f for each variable index of indices in the same disjunctions as the node corresponding to the variable index 'index'; only disjunctions of cardinality 'cardinality' are considered. <a href="classoperations__research_1_1RoutingModel.html#a32b850e71c62d48b685e29952e03ba4b">More...</a><br /></td></tr>
|
|
<tr class="separator:a32b850e71c62d48b685e29952e03ba4b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ade8949a8e9cb9408dc427fb0904191e2"><td class="memItemLeft" align="right" valign="top">const std::vector< int64 > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ade8949a8e9cb9408dc427fb0904191e2">GetDisjunctionIndices</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> index) const</td></tr>
|
|
<tr class="memdesc:ade8949a8e9cb9408dc427fb0904191e2"><td class="mdescLeft"> </td><td class="mdescRight">Returns the variable indices of the nodes in the disjunction of index 'index'. <a href="classoperations__research_1_1RoutingModel.html#ade8949a8e9cb9408dc427fb0904191e2">More...</a><br /></td></tr>
|
|
<tr class="separator:ade8949a8e9cb9408dc427fb0904191e2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a276086c8aada62b6301aa44e4289347d"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a276086c8aada62b6301aa44e4289347d">GetDisjunctionPenalty</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> index) const</td></tr>
|
|
<tr class="memdesc:a276086c8aada62b6301aa44e4289347d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the penalty of the node disjunction of index 'index'. <a href="classoperations__research_1_1RoutingModel.html#a276086c8aada62b6301aa44e4289347d">More...</a><br /></td></tr>
|
|
<tr class="separator:a276086c8aada62b6301aa44e4289347d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1090dab71b48b49153d70b9e6c299c25"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a1090dab71b48b49153d70b9e6c299c25">GetDisjunctionMaxCardinality</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> index) const</td></tr>
|
|
<tr class="memdesc:a1090dab71b48b49153d70b9e6c299c25"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum number of possible active nodes of the node disjunction of index 'index'. <a href="classoperations__research_1_1RoutingModel.html#a1090dab71b48b49153d70b9e6c299c25">More...</a><br /></td></tr>
|
|
<tr class="separator:a1090dab71b48b49153d70b9e6c299c25"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa9ed1612ddad261cf7e75643534d0aa0"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa9ed1612ddad261cf7e75643534d0aa0">GetNumberOfDisjunctions</a> () const</td></tr>
|
|
<tr class="memdesc:aa9ed1612ddad261cf7e75643534d0aa0"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of node disjunctions in the model. <a href="classoperations__research_1_1RoutingModel.html#aa9ed1612ddad261cf7e75643534d0aa0">More...</a><br /></td></tr>
|
|
<tr class="separator:aa9ed1612ddad261cf7e75643534d0aa0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2f2eefe908c94f201c23a549797986e4"><td class="memItemLeft" align="right" valign="top">std::vector< std::pair< int64, int64 > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a2f2eefe908c94f201c23a549797986e4">GetPerfectBinaryDisjunctions</a> () const</td></tr>
|
|
<tr class="memdesc:a2f2eefe908c94f201c23a549797986e4"><td class="mdescLeft"> </td><td class="mdescRight">Returns the list of all perfect binary disjunctions, as pairs of variable indices: a disjunction is "perfect" when its variables do not appear in any other disjunction. <a href="classoperations__research_1_1RoutingModel.html#a2f2eefe908c94f201c23a549797986e4">More...</a><br /></td></tr>
|
|
<tr class="separator:a2f2eefe908c94f201c23a549797986e4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8b9a513f402e84f4c71436cf430f248a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a8b9a513f402e84f4c71436cf430f248a">IgnoreDisjunctionsAlreadyForcedToZero</a> ()</td></tr>
|
|
<tr class="memdesc:a8b9a513f402e84f4c71436cf430f248a"><td class="mdescLeft"> </td><td class="mdescRight">SPECIAL: Makes the solver ignore all the disjunctions whose active variables are all trivially zero (i.e. <a href="classoperations__research_1_1RoutingModel.html#a8b9a513f402e84f4c71436cf430f248a">More...</a><br /></td></tr>
|
|
<tr class="separator:a8b9a513f402e84f4c71436cf430f248a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9b09ef1fec581652f66de933154b78e4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a9b09ef1fec581652f66de933154b78e4">AddSoftSameVehicleConstraint</a> (const std::vector< int64 > &indices, int64 cost)</td></tr>
|
|
<tr class="memdesc:a9b09ef1fec581652f66de933154b78e4"><td class="mdescLeft"> </td><td class="mdescRight">Adds a soft contraint to force a set of variable indices to be on the same vehicle. <a href="classoperations__research_1_1RoutingModel.html#a9b09ef1fec581652f66de933154b78e4">More...</a><br /></td></tr>
|
|
<tr class="separator:a9b09ef1fec581652f66de933154b78e4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afdd0e9e72af498399358bd22c591ae5c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#afdd0e9e72af498399358bd22c591ae5c">SetAllowedVehiclesForIndex</a> (const std::vector< int > &<a class="el" href="classoperations__research_1_1RoutingModel.html#aa9e7ba89833775f29889744fe9480d29">vehicles</a>, int64 index)</td></tr>
|
|
<tr class="memdesc:afdd0e9e72af498399358bd22c591ae5c"><td class="mdescLeft"> </td><td class="mdescRight">Sets the vehicles which can visit a given node. <a href="classoperations__research_1_1RoutingModel.html#afdd0e9e72af498399358bd22c591ae5c">More...</a><br /></td></tr>
|
|
<tr class="separator:afdd0e9e72af498399358bd22c591ae5c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a43c49fc1660ae71cdb30ae93bcac80d7"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a43c49fc1660ae71cdb30ae93bcac80d7">IsVehicleAllowedForIndex</a> (int vehicle, int64 index)</td></tr>
|
|
<tr class="memdesc:a43c49fc1660ae71cdb30ae93bcac80d7"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if a vehicle is allowed to visit a given node. <a href="classoperations__research_1_1RoutingModel.html#a43c49fc1660ae71cdb30ae93bcac80d7">More...</a><br /></td></tr>
|
|
<tr class="separator:a43c49fc1660ae71cdb30ae93bcac80d7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a23c20278f29df4b683b589958ab3a187"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a23c20278f29df4b683b589958ab3a187">AddPickupAndDelivery</a> (int64 pickup, int64 delivery)</td></tr>
|
|
<tr class="memdesc:a23c20278f29df4b683b589958ab3a187"><td class="mdescLeft"> </td><td class="mdescRight">Notifies that index1 and index2 form a pair of nodes which should belong to the same route. <a href="classoperations__research_1_1RoutingModel.html#a23c20278f29df4b683b589958ab3a187">More...</a><br /></td></tr>
|
|
<tr class="separator:a23c20278f29df4b683b589958ab3a187"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5f404ec17ed0917a6ac3711ac53e60f1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a5f404ec17ed0917a6ac3711ac53e60f1">AddPickupAndDeliverySets</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> pickup_disjunction, <a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> delivery_disjunction)</td></tr>
|
|
<tr class="memdesc:a5f404ec17ed0917a6ac3711ac53e60f1"><td class="mdescLeft"> </td><td class="mdescRight">Same as AddPickupAndDelivery but notifying that the performed node from the disjunction of index 'pickup_disjunction' is on the same route as the performed node from the disjunction of index 'delivery_disjunction'. <a href="classoperations__research_1_1RoutingModel.html#a5f404ec17ed0917a6ac3711ac53e60f1">More...</a><br /></td></tr>
|
|
<tr class="separator:a5f404ec17ed0917a6ac3711ac53e60f1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a62632c12610d494b7da27e49183922eb"><td class="memItemLeft" align="right" valign="top">const std::vector< std::pair< int, int > > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a62632c12610d494b7da27e49183922eb">GetPickupIndexPairs</a> (int64 node_index) const</td></tr>
|
|
<tr class="memdesc:a62632c12610d494b7da27e49183922eb"><td class="mdescLeft"> </td><td class="mdescRight">Returns pairs for which the node is a pickup; the first element of each pair is the index in the pickup and delivery pairs list in which the pickup appears, the second element is its index in the pickups list. <a href="classoperations__research_1_1RoutingModel.html#a62632c12610d494b7da27e49183922eb">More...</a><br /></td></tr>
|
|
<tr class="separator:a62632c12610d494b7da27e49183922eb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a436789d1133bf0155f13d189e556355d"><td class="memItemLeft" align="right" valign="top">const std::vector< std::pair< int, int > > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a436789d1133bf0155f13d189e556355d">GetDeliveryIndexPairs</a> (int64 node_index) const</td></tr>
|
|
<tr class="memdesc:a436789d1133bf0155f13d189e556355d"><td class="mdescLeft"> </td><td class="mdescRight">Same as above for deliveries. <a href="classoperations__research_1_1RoutingModel.html#a436789d1133bf0155f13d189e556355d">More...</a><br /></td></tr>
|
|
<tr class="separator:a436789d1133bf0155f13d189e556355d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3656e594d89a44fb6b35ba8f2d395624"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a3656e594d89a44fb6b35ba8f2d395624">SetPickupAndDeliveryPolicyOfAllVehicles</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> policy)</td></tr>
|
|
<tr class="memdesc:a3656e594d89a44fb6b35ba8f2d395624"><td class="mdescLeft"> </td><td class="mdescRight">Sets the Pickup and delivery policy of all vehicles. <a href="classoperations__research_1_1RoutingModel.html#a3656e594d89a44fb6b35ba8f2d395624">More...</a><br /></td></tr>
|
|
<tr class="separator:a3656e594d89a44fb6b35ba8f2d395624"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8bd5bf6b0d1d0c1c5e2470c5f4882a62"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a8bd5bf6b0d1d0c1c5e2470c5f4882a62">SetPickupAndDeliveryPolicyOfVehicle</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> policy, int vehicle)</td></tr>
|
|
<tr class="separator:a8bd5bf6b0d1d0c1c5e2470c5f4882a62"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae0eaa0df826e18882df940962dc4ac27"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae0eaa0df826e18882df940962dc4ac27">GetPickupAndDeliveryPolicyOfVehicle</a> (int vehicle) const</td></tr>
|
|
<tr class="separator:ae0eaa0df826e18882df940962dc4ac27"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad62f14646fa4da5b6836a2ae505706d2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad62f14646fa4da5b6836a2ae505706d2">GetNumOfSingletonNodes</a> () const</td></tr>
|
|
<tr class="memdesc:ad62f14646fa4da5b6836a2ae505706d2"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of non-start/end nodes which do not appear in a pickup/delivery pair. <a href="classoperations__research_1_1RoutingModel.html#ad62f14646fa4da5b6836a2ae505706d2">More...</a><br /></td></tr>
|
|
<tr class="separator:ad62f14646fa4da5b6836a2ae505706d2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9e42e15bdb23d63ae78137b97a4882de"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe">IndexPairs</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a9e42e15bdb23d63ae78137b97a4882de">GetPickupAndDeliveryPairs</a> () const</td></tr>
|
|
<tr class="memdesc:a9e42e15bdb23d63ae78137b97a4882de"><td class="mdescLeft"> </td><td class="mdescRight">Returns pickup and delivery pairs currently in the model. <a href="classoperations__research_1_1RoutingModel.html#a9e42e15bdb23d63ae78137b97a4882de">More...</a><br /></td></tr>
|
|
<tr class="separator:a9e42e15bdb23d63ae78137b97a4882de"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a075c26c8a078b9c0f1a4f2be00f1f795"><td class="memItemLeft" align="right" valign="top">const std::vector< std::pair< <a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a>, <a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> > > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a075c26c8a078b9c0f1a4f2be00f1f795">GetPickupAndDeliveryDisjunctions</a> () const</td></tr>
|
|
<tr class="separator:a075c26c8a078b9c0f1a4f2be00f1f795"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a572a1aeecbbd82737b62b88a6450a1c5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a572a1aeecbbd82737b62b88a6450a1c5">SetVisitType</a> (int64 index, int type)</td></tr>
|
|
<tr class="memdesc:a572a1aeecbbd82737b62b88a6450a1c5"><td class="mdescLeft"> </td><td class="mdescRight">Set the node visit types and incompatibilities/requirements between the types (see below). <a href="classoperations__research_1_1RoutingModel.html#a572a1aeecbbd82737b62b88a6450a1c5">More...</a><br /></td></tr>
|
|
<tr class="separator:a572a1aeecbbd82737b62b88a6450a1c5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a95886cce213f51091399427b4728a6b2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a95886cce213f51091399427b4728a6b2">GetVisitType</a> (int64 index) const</td></tr>
|
|
<tr class="separator:a95886cce213f51091399427b4728a6b2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a822458cc9a9a6fa02e86af3e3a1e5c89"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a822458cc9a9a6fa02e86af3e3a1e5c89">CloseVisitTypes</a> ()</td></tr>
|
|
<tr class="memdesc:a822458cc9a9a6fa02e86af3e3a1e5c89"><td class="mdescLeft"> </td><td class="mdescRight">This function should be called once all node visit types have been set and prior to adding any incompatibilities/requirements. <a href="classoperations__research_1_1RoutingModel.html#a822458cc9a9a6fa02e86af3e3a1e5c89">More...</a><br /></td></tr>
|
|
<tr class="separator:a822458cc9a9a6fa02e86af3e3a1e5c89"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a24478803a7138d68852093b9c2743892"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a24478803a7138d68852093b9c2743892">GetNumberOfVisitTypes</a> () const</td></tr>
|
|
<tr class="separator:a24478803a7138d68852093b9c2743892"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a796b4eed03ed53bbbaed642f4ae94952"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a796b4eed03ed53bbbaed642f4ae94952">AddHardTypeIncompatibility</a> (int type1, int type2)</td></tr>
|
|
<tr class="memdesc:a796b4eed03ed53bbbaed642f4ae94952"><td class="mdescLeft"> </td><td class="mdescRight">Incompatibilities: Two nodes with "hard" incompatible types cannot share the same route at all, while with a "temporal" incompatibility they can't be on the same route at the same time. <a href="classoperations__research_1_1RoutingModel.html#a796b4eed03ed53bbbaed642f4ae94952">More...</a><br /></td></tr>
|
|
<tr class="separator:a796b4eed03ed53bbbaed642f4ae94952"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7086a908f1890a7e1550c97b774e6384"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a7086a908f1890a7e1550c97b774e6384">AddTemporalTypeIncompatibility</a> (int type1, int type2)</td></tr>
|
|
<tr class="separator:a7086a908f1890a7e1550c97b774e6384"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a51fb0661acf38ed1442819e2cc452311"><td class="memItemLeft" align="right" valign="top">const absl::flat_hash_set< int > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a51fb0661acf38ed1442819e2cc452311">GetHardTypeIncompatibilitiesOfType</a> (int type) const</td></tr>
|
|
<tr class="memdesc:a51fb0661acf38ed1442819e2cc452311"><td class="mdescLeft"> </td><td class="mdescRight">Returns visit types incompatible with a given type. <a href="classoperations__research_1_1RoutingModel.html#a51fb0661acf38ed1442819e2cc452311">More...</a><br /></td></tr>
|
|
<tr class="separator:a51fb0661acf38ed1442819e2cc452311"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9d8ead500db4128d0d27f8066d1f8208"><td class="memItemLeft" align="right" valign="top">const absl::flat_hash_set< int > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a9d8ead500db4128d0d27f8066d1f8208">GetTemporalTypeIncompatibilitiesOfType</a> (int type) const</td></tr>
|
|
<tr class="separator:a9d8ead500db4128d0d27f8066d1f8208"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9c58894df747f5498c335a3a8c5c0c88"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a9c58894df747f5498c335a3a8c5c0c88">HasHardTypeIncompatibilities</a> () const</td></tr>
|
|
<tr class="memdesc:a9c58894df747f5498c335a3a8c5c0c88"><td class="mdescLeft"> </td><td class="mdescRight">Returns true iff any hard (resp. <a href="classoperations__research_1_1RoutingModel.html#a9c58894df747f5498c335a3a8c5c0c88">More...</a><br /></td></tr>
|
|
<tr class="separator:a9c58894df747f5498c335a3a8c5c0c88"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad19492313b68e5a963af3793aaec8d90"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad19492313b68e5a963af3793aaec8d90">HasTemporalTypeIncompatibilities</a> () const</td></tr>
|
|
<tr class="separator:ad19492313b68e5a963af3793aaec8d90"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac22e9cfd1fbf1b4af4f8a9be46ec88a1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ac22e9cfd1fbf1b4af4f8a9be46ec88a1">AddSameVehicleRequiredTypeAlternatives</a> (int dependent_type, absl::flat_hash_set< int > required_type_alternatives)</td></tr>
|
|
<tr class="memdesc:ac22e9cfd1fbf1b4af4f8a9be46ec88a1"><td class="mdescLeft"> </td><td class="mdescRight">Requirements: NOTE: As of 2019-04, cycles in the requirement graph are not supported, and lead to the dependent nodes being skipped if possible (otherwise the model is considered infeasible). <a href="classoperations__research_1_1RoutingModel.html#ac22e9cfd1fbf1b4af4f8a9be46ec88a1">More...</a><br /></td></tr>
|
|
<tr class="separator:ac22e9cfd1fbf1b4af4f8a9be46ec88a1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a92ee209f167d3974329301d784010b63"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a92ee209f167d3974329301d784010b63">AddTemporalRequiredTypeAlternatives</a> (int dependent_type, absl::flat_hash_set< int > required_type_alternatives)</td></tr>
|
|
<tr class="memdesc:a92ee209f167d3974329301d784010b63"><td class="mdescLeft"> </td><td class="mdescRight">If type_D temporally depends on type_R, any non-delivery node_D of type_D requires at least one non-delivered node of type_R on its vehicle at the time node_D is visited. <a href="classoperations__research_1_1RoutingModel.html#a92ee209f167d3974329301d784010b63">More...</a><br /></td></tr>
|
|
<tr class="separator:a92ee209f167d3974329301d784010b63"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae350d70cb713a6772283e3753f4f2f7a"><td class="memItemLeft" align="right" valign="top">const std::vector< absl::flat_hash_set< int > > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae350d70cb713a6772283e3753f4f2f7a">GetSameVehicleRequiredTypeAlternativesOfType</a> (int type) const</td></tr>
|
|
<tr class="memdesc:ae350d70cb713a6772283e3753f4f2f7a"><td class="mdescLeft"> </td><td class="mdescRight">Returns the sets of same-vehicle/temporal requirement alternatives for the given type. <a href="classoperations__research_1_1RoutingModel.html#ae350d70cb713a6772283e3753f4f2f7a">More...</a><br /></td></tr>
|
|
<tr class="separator:ae350d70cb713a6772283e3753f4f2f7a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab1652af55e9d83490d9c59d35d991ce9"><td class="memItemLeft" align="right" valign="top">const std::vector< absl::flat_hash_set< int > > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ab1652af55e9d83490d9c59d35d991ce9">GetTemporalRequiredTypeAlternativesOfType</a> (int type) const</td></tr>
|
|
<tr class="separator:ab1652af55e9d83490d9c59d35d991ce9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abc101a64a3c876dcdf1b7176d59bd2c9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#abc101a64a3c876dcdf1b7176d59bd2c9">HasSameVehicleTypeRequirements</a> () const</td></tr>
|
|
<tr class="memdesc:abc101a64a3c876dcdf1b7176d59bd2c9"><td class="mdescLeft"> </td><td class="mdescRight">Returns true iff any same-route (resp. <a href="classoperations__research_1_1RoutingModel.html#abc101a64a3c876dcdf1b7176d59bd2c9">More...</a><br /></td></tr>
|
|
<tr class="separator:abc101a64a3c876dcdf1b7176d59bd2c9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5e3f4c6871f7b2c67fd5b1ad6c94d891"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a5e3f4c6871f7b2c67fd5b1ad6c94d891">HasTemporalTypeRequirements</a> () const</td></tr>
|
|
<tr class="separator:a5e3f4c6871f7b2c67fd5b1ad6c94d891"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab313d84a56c5e9b1b8f28da70b8d4045"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ab313d84a56c5e9b1b8f28da70b8d4045">HasTypeRegulations</a> () const</td></tr>
|
|
<tr class="memdesc:ab313d84a56c5e9b1b8f28da70b8d4045"><td class="mdescLeft"> </td><td class="mdescRight">Returns true iff the model has any incompatibilities or requirements set on node types. <a href="classoperations__research_1_1RoutingModel.html#ab313d84a56c5e9b1b8f28da70b8d4045">More...</a><br /></td></tr>
|
|
<tr class="separator:ab313d84a56c5e9b1b8f28da70b8d4045"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3600327c657a0c83430d7bd9566e9ab6"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a3600327c657a0c83430d7bd9566e9ab6">UnperformedPenalty</a> (int64 var_index) const</td></tr>
|
|
<tr class="memdesc:a3600327c657a0c83430d7bd9566e9ab6"><td class="mdescLeft"> </td><td class="mdescRight">Get the "unperformed" penalty of a node. <a href="classoperations__research_1_1RoutingModel.html#a3600327c657a0c83430d7bd9566e9ab6">More...</a><br /></td></tr>
|
|
<tr class="separator:a3600327c657a0c83430d7bd9566e9ab6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae8364b53d49a5b46e994d41124c4ffd6"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae8364b53d49a5b46e994d41124c4ffd6">UnperformedPenaltyOrValue</a> (int64 default_value, int64 var_index) const</td></tr>
|
|
<tr class="memdesc:ae8364b53d49a5b46e994d41124c4ffd6"><td class="mdescLeft"> </td><td class="mdescRight">Same as above except that it returns default_value instead of 0 when penalty is not well defined (default value is passed as first argument to simplify the usage of the method in a callback). <a href="classoperations__research_1_1RoutingModel.html#ae8364b53d49a5b46e994d41124c4ffd6">More...</a><br /></td></tr>
|
|
<tr class="separator:ae8364b53d49a5b46e994d41124c4ffd6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acca75b5d3bfe2433c5805b049815f533"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#acca75b5d3bfe2433c5805b049815f533">GetDepot</a> () const</td></tr>
|
|
<tr class="memdesc:acca75b5d3bfe2433c5805b049815f533"><td class="mdescLeft"> </td><td class="mdescRight">Returns the variable index of the first starting or ending node of all routes. <a href="classoperations__research_1_1RoutingModel.html#acca75b5d3bfe2433c5805b049815f533">More...</a><br /></td></tr>
|
|
<tr class="separator:acca75b5d3bfe2433c5805b049815f533"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab8d61705aa4291d2cd437ba0a7dfccbf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ab8d61705aa4291d2cd437ba0a7dfccbf">SetArcCostEvaluatorOfAllVehicles</a> (int evaluator_index)</td></tr>
|
|
<tr class="memdesc:ab8d61705aa4291d2cd437ba0a7dfccbf"><td class="mdescLeft"> </td><td class="mdescRight">Sets the cost function of the model such that the cost of a segment of a route between node 'from' and 'to' is evaluator(from, to), whatever the route or vehicle performing the route. <a href="classoperations__research_1_1RoutingModel.html#ab8d61705aa4291d2cd437ba0a7dfccbf">More...</a><br /></td></tr>
|
|
<tr class="separator:ab8d61705aa4291d2cd437ba0a7dfccbf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae75d9f49c157b7784fc8baa7d623ee35"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae75d9f49c157b7784fc8baa7d623ee35">SetArcCostEvaluatorOfVehicle</a> (int evaluator_index, int vehicle)</td></tr>
|
|
<tr class="memdesc:ae75d9f49c157b7784fc8baa7d623ee35"><td class="mdescLeft"> </td><td class="mdescRight">Sets the cost function for a given vehicle route. <a href="classoperations__research_1_1RoutingModel.html#ae75d9f49c157b7784fc8baa7d623ee35">More...</a><br /></td></tr>
|
|
<tr class="separator:ae75d9f49c157b7784fc8baa7d623ee35"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a07b796e9f91ee5b4c5e99c7f23e2f743"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a07b796e9f91ee5b4c5e99c7f23e2f743">SetFixedCostOfAllVehicles</a> (int64 cost)</td></tr>
|
|
<tr class="memdesc:a07b796e9f91ee5b4c5e99c7f23e2f743"><td class="mdescLeft"> </td><td class="mdescRight">Sets the fixed cost of all vehicle routes. <a href="classoperations__research_1_1RoutingModel.html#a07b796e9f91ee5b4c5e99c7f23e2f743">More...</a><br /></td></tr>
|
|
<tr class="separator:a07b796e9f91ee5b4c5e99c7f23e2f743"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4e8f5b5f090cf084347eda6eb803813a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a4e8f5b5f090cf084347eda6eb803813a">SetFixedCostOfVehicle</a> (int64 cost, int vehicle)</td></tr>
|
|
<tr class="memdesc:a4e8f5b5f090cf084347eda6eb803813a"><td class="mdescLeft"> </td><td class="mdescRight">Sets the fixed cost of one vehicle route. <a href="classoperations__research_1_1RoutingModel.html#a4e8f5b5f090cf084347eda6eb803813a">More...</a><br /></td></tr>
|
|
<tr class="separator:a4e8f5b5f090cf084347eda6eb803813a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4bab641f5b9bf8de266adad29558b4c2"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a4bab641f5b9bf8de266adad29558b4c2">GetFixedCostOfVehicle</a> (int vehicle) const</td></tr>
|
|
<tr class="memdesc:a4bab641f5b9bf8de266adad29558b4c2"><td class="mdescLeft"> </td><td class="mdescRight">Returns the route fixed cost taken into account if the route of the vehicle is not empty, aka there's at least one node on the route other than the first and last nodes. <a href="classoperations__research_1_1RoutingModel.html#a4bab641f5b9bf8de266adad29558b4c2">More...</a><br /></td></tr>
|
|
<tr class="separator:a4bab641f5b9bf8de266adad29558b4c2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aba87f36c7b4e0bdd5e4e8e334b3e27fa"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aba87f36c7b4e0bdd5e4e8e334b3e27fa">SetAmortizedCostFactorsOfAllVehicles</a> (int64 linear_cost_factor, int64 quadratic_cost_factor)</td></tr>
|
|
<tr class="memdesc:aba87f36c7b4e0bdd5e4e8e334b3e27fa"><td class="mdescLeft"> </td><td class="mdescRight">The following methods set the linear and quadratic cost factors of vehicles (must be positive values). <a href="classoperations__research_1_1RoutingModel.html#aba87f36c7b4e0bdd5e4e8e334b3e27fa">More...</a><br /></td></tr>
|
|
<tr class="separator:aba87f36c7b4e0bdd5e4e8e334b3e27fa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae1acdfe3dcf892d108d2a2ecab94e936"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae1acdfe3dcf892d108d2a2ecab94e936">SetAmortizedCostFactorsOfVehicle</a> (int64 linear_cost_factor, int64 quadratic_cost_factor, int vehicle)</td></tr>
|
|
<tr class="memdesc:ae1acdfe3dcf892d108d2a2ecab94e936"><td class="mdescLeft"> </td><td class="mdescRight">Sets the linear and quadratic cost factor of the given vehicle. <a href="classoperations__research_1_1RoutingModel.html#ae1acdfe3dcf892d108d2a2ecab94e936">More...</a><br /></td></tr>
|
|
<tr class="separator:ae1acdfe3dcf892d108d2a2ecab94e936"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa01519be299cb5ddef36111ee6f8a5cc"><td class="memItemLeft" align="right" valign="top">const std::vector< int64 > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa01519be299cb5ddef36111ee6f8a5cc">GetAmortizedLinearCostFactorOfVehicles</a> () const</td></tr>
|
|
<tr class="separator:aa01519be299cb5ddef36111ee6f8a5cc"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aaeaf95383c1c03da6f22c522d119775b"><td class="memItemLeft" align="right" valign="top">const std::vector< int64 > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aaeaf95383c1c03da6f22c522d119775b">GetAmortizedQuadraticCostFactorOfVehicles</a> () const</td></tr>
|
|
<tr class="separator:aaeaf95383c1c03da6f22c522d119775b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7ccaa3133378da76d3fd5cdb560038ae"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a7ccaa3133378da76d3fd5cdb560038ae">ConsiderEmptyRouteCostsForVehicle</a> (bool consider_costs, int vehicle)</td></tr>
|
|
<tr class="separator:a7ccaa3133378da76d3fd5cdb560038ae"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aed6760664a6e4f3427832ee3b7ba0602"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aed6760664a6e4f3427832ee3b7ba0602">AreEmptyRouteCostsConsideredForVehicle</a> (int vehicle) const</td></tr>
|
|
<tr class="separator:aed6760664a6e4f3427832ee3b7ba0602"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a660cb5477a6d3fbf146657aa7af73968"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1Solver.html#abb24034fec2804ac3c0172f043087321">Solver::IndexEvaluator2</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a660cb5477a6d3fbf146657aa7af73968">first_solution_evaluator</a> () const</td></tr>
|
|
<tr class="memdesc:a660cb5477a6d3fbf146657aa7af73968"><td class="mdescLeft"> </td><td class="mdescRight">Gets/sets the evaluator used during the search. <a href="classoperations__research_1_1RoutingModel.html#a660cb5477a6d3fbf146657aa7af73968">More...</a><br /></td></tr>
|
|
<tr class="separator:a660cb5477a6d3fbf146657aa7af73968"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab69145472d51d341f82d3ad29e9c6be2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ab69145472d51d341f82d3ad29e9c6be2">SetFirstSolutionEvaluator</a> (<a class="el" href="classoperations__research_1_1Solver.html#abb24034fec2804ac3c0172f043087321">Solver::IndexEvaluator2</a> evaluator)</td></tr>
|
|
<tr class="memdesc:ab69145472d51d341f82d3ad29e9c6be2"><td class="mdescLeft"> </td><td class="mdescRight">Takes ownership of evaluator. <a href="classoperations__research_1_1RoutingModel.html#ab69145472d51d341f82d3ad29e9c6be2">More...</a><br /></td></tr>
|
|
<tr class="separator:ab69145472d51d341f82d3ad29e9c6be2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1156fa8214dba09e2a2a94862244aa1f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a1156fa8214dba09e2a2a94862244aa1f">AddLocalSearchOperator</a> (<a class="el" href="classoperations__research_1_1LocalSearchOperator.html">LocalSearchOperator</a> *ls_operator)</td></tr>
|
|
<tr class="memdesc:a1156fa8214dba09e2a2a94862244aa1f"><td class="mdescLeft"> </td><td class="mdescRight">Adds a local search operator to the set of operators used to solve the vehicle routing problem. <a href="classoperations__research_1_1RoutingModel.html#a1156fa8214dba09e2a2a94862244aa1f">More...</a><br /></td></tr>
|
|
<tr class="separator:a1156fa8214dba09e2a2a94862244aa1f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0e23be986e4c3b96a50c8798aa5f536d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a0e23be986e4c3b96a50c8798aa5f536d">AddSearchMonitor</a> (<a class="el" href="classoperations__research_1_1SearchMonitor.html">SearchMonitor</a> *const monitor)</td></tr>
|
|
<tr class="memdesc:a0e23be986e4c3b96a50c8798aa5f536d"><td class="mdescLeft"> </td><td class="mdescRight">Adds a search monitor to the search used to solve the routing model. <a href="classoperations__research_1_1RoutingModel.html#a0e23be986e4c3b96a50c8798aa5f536d">More...</a><br /></td></tr>
|
|
<tr class="separator:a0e23be986e4c3b96a50c8798aa5f536d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a086605d9650ce3c576d8a9c45ce0b9fc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a086605d9650ce3c576d8a9c45ce0b9fc">AddAtSolutionCallback</a> (std::function< void()> callback)</td></tr>
|
|
<tr class="memdesc:a086605d9650ce3c576d8a9c45ce0b9fc"><td class="mdescLeft"> </td><td class="mdescRight">Adds a callback called each time a solution is found during the search. <a href="classoperations__research_1_1RoutingModel.html#a086605d9650ce3c576d8a9c45ce0b9fc">More...</a><br /></td></tr>
|
|
<tr class="separator:a086605d9650ce3c576d8a9c45ce0b9fc"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4768ba91c34c542eddec212a68d79473"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a4768ba91c34c542eddec212a68d79473">AddVariableMinimizedByFinalizer</a> (<a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *var)</td></tr>
|
|
<tr class="memdesc:a4768ba91c34c542eddec212a68d79473"><td class="mdescLeft"> </td><td class="mdescRight">Adds a variable to minimize in the solution finalizer. <a href="classoperations__research_1_1RoutingModel.html#a4768ba91c34c542eddec212a68d79473">More...</a><br /></td></tr>
|
|
<tr class="separator:a4768ba91c34c542eddec212a68d79473"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aabdcf3bd412a5a61d811ef85e115e5ff"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aabdcf3bd412a5a61d811ef85e115e5ff">AddVariableMaximizedByFinalizer</a> (<a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *var)</td></tr>
|
|
<tr class="memdesc:aabdcf3bd412a5a61d811ef85e115e5ff"><td class="mdescLeft"> </td><td class="mdescRight">Adds a variable to maximize in the solution finalizer (see above for information on the solution finalizer). <a href="classoperations__research_1_1RoutingModel.html#aabdcf3bd412a5a61d811ef85e115e5ff">More...</a><br /></td></tr>
|
|
<tr class="separator:aabdcf3bd412a5a61d811ef85e115e5ff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a939aa2ef2afec0337b0f9d4dcb1c2db8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a939aa2ef2afec0337b0f9d4dcb1c2db8">AddWeightedVariableMinimizedByFinalizer</a> (<a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *var, int64 cost)</td></tr>
|
|
<tr class="memdesc:a939aa2ef2afec0337b0f9d4dcb1c2db8"><td class="mdescLeft"> </td><td class="mdescRight">Adds a variable to minimize in the solution finalizer, with a weighted priority: the higher the more priority it has. <a href="classoperations__research_1_1RoutingModel.html#a939aa2ef2afec0337b0f9d4dcb1c2db8">More...</a><br /></td></tr>
|
|
<tr class="separator:a939aa2ef2afec0337b0f9d4dcb1c2db8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1739a41268c21cfc401d870f05b93536"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a1739a41268c21cfc401d870f05b93536">AddVariableTargetToFinalizer</a> (<a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *var, int64 target)</td></tr>
|
|
<tr class="memdesc:a1739a41268c21cfc401d870f05b93536"><td class="mdescLeft"> </td><td class="mdescRight">Add a variable to set the closest possible to the target value in the solution finalizer. <a href="classoperations__research_1_1RoutingModel.html#a1739a41268c21cfc401d870f05b93536">More...</a><br /></td></tr>
|
|
<tr class="separator:a1739a41268c21cfc401d870f05b93536"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:add71470f4175a0859e6e3d69c2a53988"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#add71470f4175a0859e6e3d69c2a53988">CloseModel</a> ()</td></tr>
|
|
<tr class="memdesc:add71470f4175a0859e6e3d69c2a53988"><td class="mdescLeft"> </td><td class="mdescRight">Closes the current routing model; after this method is called, no modification to the model can be done, but RoutesToAssignment becomes available. <a href="classoperations__research_1_1RoutingModel.html#add71470f4175a0859e6e3d69c2a53988">More...</a><br /></td></tr>
|
|
<tr class="separator:add71470f4175a0859e6e3d69c2a53988"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa79f8d482de4dd0ef86a1b54999686af"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa79f8d482de4dd0ef86a1b54999686af">CloseModelWithParameters</a> (const RoutingSearchParameters &search_parameters)</td></tr>
|
|
<tr class="memdesc:aa79f8d482de4dd0ef86a1b54999686af"><td class="mdescLeft"> </td><td class="mdescRight">Same as above taking search parameters (as of 10/2015 some the parameters have to be set when closing the model). <a href="classoperations__research_1_1RoutingModel.html#aa79f8d482de4dd0ef86a1b54999686af">More...</a><br /></td></tr>
|
|
<tr class="separator:aa79f8d482de4dd0ef86a1b54999686af"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a562e4c0a80f7f4eda9573a482af288d1"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1">Solve</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> *assignment=nullptr)</td></tr>
|
|
<tr class="memdesc:a562e4c0a80f7f4eda9573a482af288d1"><td class="mdescLeft"> </td><td class="mdescRight">Solves the current routing model; closes the current model. <a href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1">More...</a><br /></td></tr>
|
|
<tr class="separator:a562e4c0a80f7f4eda9573a482af288d1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af4e97be54c31d45d312d168ce1c8ba6f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#af4e97be54c31d45d312d168ce1c8ba6f">SolveWithParameters</a> (const RoutingSearchParameters &search_parameters, std::vector< const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * > *solutions=nullptr)</td></tr>
|
|
<tr class="memdesc:af4e97be54c31d45d312d168ce1c8ba6f"><td class="mdescLeft"> </td><td class="mdescRight">Solves the current routing model with the given parameters. <a href="classoperations__research_1_1RoutingModel.html#af4e97be54c31d45d312d168ce1c8ba6f">More...</a><br /></td></tr>
|
|
<tr class="separator:af4e97be54c31d45d312d168ce1c8ba6f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a56e06d63a6d3792ab5cd64e51724632b"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a56e06d63a6d3792ab5cd64e51724632b">SolveFromAssignmentWithParameters</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> *assignment, const RoutingSearchParameters &search_parameters, std::vector< const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * > *solutions=nullptr)</td></tr>
|
|
<tr class="separator:a56e06d63a6d3792ab5cd64e51724632b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac1a2ab630f6b13644ca6853c7893f413"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ac1a2ab630f6b13644ca6853c7893f413">SetAssignmentFromOtherModelAssignment</a> (<a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> *target_assignment, const <a class="el" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a> *source_model, const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> *source_assignment)</td></tr>
|
|
<tr class="memdesc:ac1a2ab630f6b13644ca6853c7893f413"><td class="mdescLeft"> </td><td class="mdescRight">Given a "source_model" and its "source_assignment", resets "target_assignment" with the <a class="el" href="classoperations__research_1_1IntVar.html" title="The class IntVar is a subset of IntExpr.">IntVar</a> variables (nexts_, and vehicle_vars_ if costs aren't homogeneous across vehicles) of "this" model, with the values set according to those in "other_assignment". <a href="classoperations__research_1_1RoutingModel.html#ac1a2ab630f6b13644ca6853c7893f413">More...</a><br /></td></tr>
|
|
<tr class="separator:ac1a2ab630f6b13644ca6853c7893f413"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae9b2404a26ab1e6acf562b8261eeba38"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae9b2404a26ab1e6acf562b8261eeba38">ComputeLowerBound</a> ()</td></tr>
|
|
<tr class="memdesc:ae9b2404a26ab1e6acf562b8261eeba38"><td class="mdescLeft"> </td><td class="mdescRight">Computes a lower bound to the routing problem solving a linear assignment problem. <a href="classoperations__research_1_1RoutingModel.html#ae9b2404a26ab1e6acf562b8261eeba38">More...</a><br /></td></tr>
|
|
<tr class="separator:ae9b2404a26ab1e6acf562b8261eeba38"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adb1490a44086db009cdb51f854a02a65"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#adb1490a44086db009cdb51f854a02a65">status</a> () const</td></tr>
|
|
<tr class="memdesc:adb1490a44086db009cdb51f854a02a65"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current status of the routing model. <a href="classoperations__research_1_1RoutingModel.html#adb1490a44086db009cdb51f854a02a65">More...</a><br /></td></tr>
|
|
<tr class="separator:adb1490a44086db009cdb51f854a02a65"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aaf71584ad4bffea7a489dc53787fa6f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aaf71584ad4bffea7a489dc53787fa6f8">ApplyLocks</a> (const std::vector< int64 > &locks)</td></tr>
|
|
<tr class="memdesc:aaf71584ad4bffea7a489dc53787fa6f8"><td class="mdescLeft"> </td><td class="mdescRight">Applies a lock chain to the next search. <a href="classoperations__research_1_1RoutingModel.html#aaf71584ad4bffea7a489dc53787fa6f8">More...</a><br /></td></tr>
|
|
<tr class="separator:aaf71584ad4bffea7a489dc53787fa6f8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a410f7da30cf944b7874eebe57eebe41a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a410f7da30cf944b7874eebe57eebe41a">ApplyLocksToAllVehicles</a> (const std::vector< std::vector< int64 >> &locks, bool close_routes)</td></tr>
|
|
<tr class="memdesc:a410f7da30cf944b7874eebe57eebe41a"><td class="mdescLeft"> </td><td class="mdescRight">Applies lock chains to all vehicles to the next search, such that locks[p] is the lock chain for route p. <a href="classoperations__research_1_1RoutingModel.html#a410f7da30cf944b7874eebe57eebe41a">More...</a><br /></td></tr>
|
|
<tr class="separator:a410f7da30cf944b7874eebe57eebe41a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae033bc458ffce1ecc4874f3e212896f7"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> *const </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae033bc458ffce1ecc4874f3e212896f7">PreAssignment</a> () const</td></tr>
|
|
<tr class="memdesc:ae033bc458ffce1ecc4874f3e212896f7"><td class="mdescLeft"> </td><td class="mdescRight">Returns an assignment used to fix some of the variables of the problem. <a href="classoperations__research_1_1RoutingModel.html#ae033bc458ffce1ecc4874f3e212896f7">More...</a><br /></td></tr>
|
|
<tr class="separator:ae033bc458ffce1ecc4874f3e212896f7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3af1158b77552d60afc3f0473de3892d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a3af1158b77552d60afc3f0473de3892d">MutablePreAssignment</a> ()</td></tr>
|
|
<tr class="separator:a3af1158b77552d60afc3f0473de3892d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acfcef421e8c8cd243157543f741d6a73"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#acfcef421e8c8cd243157543f741d6a73">WriteAssignment</a> (const std::string &file_name) const</td></tr>
|
|
<tr class="memdesc:acfcef421e8c8cd243157543f741d6a73"><td class="mdescLeft"> </td><td class="mdescRight">Writes the current solution to a file containing an AssignmentProto. <a href="classoperations__research_1_1RoutingModel.html#acfcef421e8c8cd243157543f741d6a73">More...</a><br /></td></tr>
|
|
<tr class="separator:acfcef421e8c8cd243157543f741d6a73"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a74e3de2ce73322e1860be0713c07c33e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a74e3de2ce73322e1860be0713c07c33e">ReadAssignment</a> (const std::string &file_name)</td></tr>
|
|
<tr class="memdesc:a74e3de2ce73322e1860be0713c07c33e"><td class="mdescLeft"> </td><td class="mdescRight">Reads an assignment from a file and returns the current solution. <a href="classoperations__research_1_1RoutingModel.html#a74e3de2ce73322e1860be0713c07c33e">More...</a><br /></td></tr>
|
|
<tr class="separator:a74e3de2ce73322e1860be0713c07c33e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a566ddf59563c1b37e8c178b1805aa0f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a566ddf59563c1b37e8c178b1805aa0f4">RestoreAssignment</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> &solution)</td></tr>
|
|
<tr class="memdesc:a566ddf59563c1b37e8c178b1805aa0f4"><td class="mdescLeft"> </td><td class="mdescRight">Restores an assignment as a solution in the routing model and returns the new solution. <a href="classoperations__research_1_1RoutingModel.html#a566ddf59563c1b37e8c178b1805aa0f4">More...</a><br /></td></tr>
|
|
<tr class="separator:a566ddf59563c1b37e8c178b1805aa0f4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a97dca877bb5083a72c147628a8439770"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a97dca877bb5083a72c147628a8439770">ReadAssignmentFromRoutes</a> (const std::vector< std::vector< int64 >> &routes, bool ignore_inactive_indices)</td></tr>
|
|
<tr class="memdesc:a97dca877bb5083a72c147628a8439770"><td class="mdescLeft"> </td><td class="mdescRight">Restores the routes as the current solution. <a href="classoperations__research_1_1RoutingModel.html#a97dca877bb5083a72c147628a8439770">More...</a><br /></td></tr>
|
|
<tr class="separator:a97dca877bb5083a72c147628a8439770"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a78f7f1cb8b08b7ec1d477a14447bd8d4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a78f7f1cb8b08b7ec1d477a14447bd8d4">RoutesToAssignment</a> (const std::vector< std::vector< int64 >> &routes, bool ignore_inactive_indices, bool close_routes, <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> *const assignment) const</td></tr>
|
|
<tr class="memdesc:a78f7f1cb8b08b7ec1d477a14447bd8d4"><td class="mdescLeft"> </td><td class="mdescRight">Fills an assignment from a specification of the routes of the vehicles. <a href="classoperations__research_1_1RoutingModel.html#a78f7f1cb8b08b7ec1d477a14447bd8d4">More...</a><br /></td></tr>
|
|
<tr class="separator:a78f7f1cb8b08b7ec1d477a14447bd8d4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a97d152b7049084186342b719eee6fa15"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a97d152b7049084186342b719eee6fa15">AssignmentToRoutes</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> &assignment, std::vector< std::vector< int64 >> *const routes) const</td></tr>
|
|
<tr class="memdesc:a97d152b7049084186342b719eee6fa15"><td class="mdescLeft"> </td><td class="mdescRight">Converts the solution in the given assignment to routes for all vehicles. <a href="classoperations__research_1_1RoutingModel.html#a97d152b7049084186342b719eee6fa15">More...</a><br /></td></tr>
|
|
<tr class="separator:a97d152b7049084186342b719eee6fa15"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1b7f20d14ae5261cb2f250c6e99f4383"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a1b7f20d14ae5261cb2f250c6e99f4383">CompactAssignment</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> &assignment) const</td></tr>
|
|
<tr class="memdesc:a1b7f20d14ae5261cb2f250c6e99f4383"><td class="mdescLeft"> </td><td class="mdescRight">Returns a compacted version of the given assignment, in which all vehicles with id lower or equal to some N have non-empty routes, and all vehicles with id greater than N have empty routes. <a href="classoperations__research_1_1RoutingModel.html#a1b7f20d14ae5261cb2f250c6e99f4383">More...</a><br /></td></tr>
|
|
<tr class="separator:a1b7f20d14ae5261cb2f250c6e99f4383"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3e87a7710617f6ac19dca14adad9c5a6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a3e87a7710617f6ac19dca14adad9c5a6">CompactAndCheckAssignment</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> &assignment) const</td></tr>
|
|
<tr class="memdesc:a3e87a7710617f6ac19dca14adad9c5a6"><td class="mdescLeft"> </td><td class="mdescRight">Same as <a class="el" href="classoperations__research_1_1RoutingModel.html#a1b7f20d14ae5261cb2f250c6e99f4383" title="Returns a compacted version of the given assignment, in which all vehicles with id lower or equal to ...">CompactAssignment()</a> but also checks the validity of the final compact solution; if it is not valid, no attempts to repair it are made (instead, the method returns nullptr). <a href="classoperations__research_1_1RoutingModel.html#a3e87a7710617f6ac19dca14adad9c5a6">More...</a><br /></td></tr>
|
|
<tr class="separator:a3e87a7710617f6ac19dca14adad9c5a6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a437ae499bef0aa64f2753166a000f5bd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a437ae499bef0aa64f2753166a000f5bd">AddToAssignment</a> (<a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *const var)</td></tr>
|
|
<tr class="memdesc:a437ae499bef0aa64f2753166a000f5bd"><td class="mdescLeft"> </td><td class="mdescRight">Adds an extra variable to the vehicle routing assignment. <a href="classoperations__research_1_1RoutingModel.html#a437ae499bef0aa64f2753166a000f5bd">More...</a><br /></td></tr>
|
|
<tr class="separator:a437ae499bef0aa64f2753166a000f5bd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab878a81ace850e3ecd26e95966409f61"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ab878a81ace850e3ecd26e95966409f61">AddIntervalToAssignment</a> (<a class="el" href="classoperations__research_1_1IntervalVar.html">IntervalVar</a> *const interval)</td></tr>
|
|
<tr class="separator:ab878a81ace850e3ecd26e95966409f61"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5cc6e6b421a6dfc8650cc38e116fff03"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a5cc6e6b421a6dfc8650cc38e116fff03">PackCumulsOfOptimizerDimensionsFromAssignment</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> *original_assignment, absl::Duration duration_limit)</td></tr>
|
|
<tr class="memdesc:a5cc6e6b421a6dfc8650cc38e116fff03"><td class="mdescLeft"> </td><td class="mdescRight">For every dimension in the model with an optimizer in local/global_dimension_optimizers_, this method tries to pack the cumul values of the dimension, such that: <a href="classoperations__research_1_1RoutingModel.html#a5cc6e6b421a6dfc8650cc38e116fff03">More...</a><br /></td></tr>
|
|
<tr class="separator:a5cc6e6b421a6dfc8650cc38e116fff03"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a700982f228080c6278eb5a2f7f06f31d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a700982f228080c6278eb5a2f7f06f31d">SetSweepArranger</a> (<a class="el" href="classoperations__research_1_1SweepArranger.html">SweepArranger</a> *<a class="el" href="classoperations__research_1_1RoutingModel.html#a71815ec83f6605bddb11578ebb835aae">sweep_arranger</a>)</td></tr>
|
|
<tr class="separator:a700982f228080c6278eb5a2f7f06f31d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a71815ec83f6605bddb11578ebb835aae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1SweepArranger.html">SweepArranger</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a71815ec83f6605bddb11578ebb835aae">sweep_arranger</a> () const</td></tr>
|
|
<tr class="memdesc:a71815ec83f6605bddb11578ebb835aae"><td class="mdescLeft"> </td><td class="mdescRight">Returns the sweep arranger to be used by routing heuristics. <a href="classoperations__research_1_1RoutingModel.html#a71815ec83f6605bddb11578ebb835aae">More...</a><br /></td></tr>
|
|
<tr class="separator:a71815ec83f6605bddb11578ebb835aae"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a566384949e6395952f6f6b48603fd87f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a566384949e6395952f6f6b48603fd87f">AddLocalSearchFilter</a> (<a class="el" href="classoperations__research_1_1LocalSearchFilter.html">LocalSearchFilter</a> *filter)</td></tr>
|
|
<tr class="memdesc:a566384949e6395952f6f6b48603fd87f"><td class="mdescLeft"> </td><td class="mdescRight">Adds a custom local search filter to the list of filters used to speed up local search by pruning unfeasible variable assignments. <a href="classoperations__research_1_1RoutingModel.html#a566384949e6395952f6f6b48603fd87f">More...</a><br /></td></tr>
|
|
<tr class="separator:a566384949e6395952f6f6b48603fd87f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acbdbdfc9491ef0586459d38cc5ef4cb8"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#acbdbdfc9491ef0586459d38cc5ef4cb8">Start</a> (int vehicle) const</td></tr>
|
|
<tr class="memdesc:acbdbdfc9491ef0586459d38cc5ef4cb8"><td class="mdescLeft"> </td><td class="mdescRight">Model inspection. <a href="classoperations__research_1_1RoutingModel.html#acbdbdfc9491ef0586459d38cc5ef4cb8">More...</a><br /></td></tr>
|
|
<tr class="separator:acbdbdfc9491ef0586459d38cc5ef4cb8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1dc8d32892f78532c8ee7a7186158e07"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a1dc8d32892f78532c8ee7a7186158e07">End</a> (int vehicle) const</td></tr>
|
|
<tr class="memdesc:a1dc8d32892f78532c8ee7a7186158e07"><td class="mdescLeft"> </td><td class="mdescRight">Returns the variable index of the ending node of a vehicle route. <a href="classoperations__research_1_1RoutingModel.html#a1dc8d32892f78532c8ee7a7186158e07">More...</a><br /></td></tr>
|
|
<tr class="separator:a1dc8d32892f78532c8ee7a7186158e07"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae1adbc353c105572655ae866124c61b6"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae1adbc353c105572655ae866124c61b6">IsStart</a> (int64 index) const</td></tr>
|
|
<tr class="memdesc:ae1adbc353c105572655ae866124c61b6"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if 'index' represents the first node of a route. <a href="classoperations__research_1_1RoutingModel.html#ae1adbc353c105572655ae866124c61b6">More...</a><br /></td></tr>
|
|
<tr class="separator:ae1adbc353c105572655ae866124c61b6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae2530e17cabaf267e12929ca0ee1bee0"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae2530e17cabaf267e12929ca0ee1bee0">IsEnd</a> (int64 index) const</td></tr>
|
|
<tr class="memdesc:ae2530e17cabaf267e12929ca0ee1bee0"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if 'index' represents the last node of a route. <a href="classoperations__research_1_1RoutingModel.html#ae2530e17cabaf267e12929ca0ee1bee0">More...</a><br /></td></tr>
|
|
<tr class="separator:ae2530e17cabaf267e12929ca0ee1bee0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abd33c037942b971eeefad43c6022c20e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#abd33c037942b971eeefad43c6022c20e">VehicleIndex</a> (int index) const</td></tr>
|
|
<tr class="memdesc:abd33c037942b971eeefad43c6022c20e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the vehicle of the given start/end index, and -1 if the given index is not a vehicle start/end. <a href="classoperations__research_1_1RoutingModel.html#abd33c037942b971eeefad43c6022c20e">More...</a><br /></td></tr>
|
|
<tr class="separator:abd33c037942b971eeefad43c6022c20e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a46a69d9769aa92122c7e5e20f49e3da3"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a46a69d9769aa92122c7e5e20f49e3da3">Next</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> &assignment, int64 index) const</td></tr>
|
|
<tr class="memdesc:a46a69d9769aa92122c7e5e20f49e3da3"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classoperations__research_1_1Assignment.html" title="An Assignment is a variable -> domains mapping, used to report solutions to the user.">Assignment</a> inspection Returns the variable index of the node directly after the node corresponding to 'index' in 'assignment'. <a href="classoperations__research_1_1RoutingModel.html#a46a69d9769aa92122c7e5e20f49e3da3">More...</a><br /></td></tr>
|
|
<tr class="separator:a46a69d9769aa92122c7e5e20f49e3da3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aedb8dca94b15e5465fef1667d1a81db6"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aedb8dca94b15e5465fef1667d1a81db6">IsVehicleUsed</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> &assignment, int vehicle) const</td></tr>
|
|
<tr class="memdesc:aedb8dca94b15e5465fef1667d1a81db6"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the route of 'vehicle' is non empty in 'assignment'. <a href="classoperations__research_1_1RoutingModel.html#aedb8dca94b15e5465fef1667d1a81db6">More...</a><br /></td></tr>
|
|
<tr class="separator:aedb8dca94b15e5465fef1667d1a81db6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aad154b31953d2b467bbac3e4ac696cd6"><td class="memItemLeft" align="right" valign="top">const std::vector< <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aad154b31953d2b467bbac3e4ac696cd6">Nexts</a> () const</td></tr>
|
|
<tr class="memdesc:aad154b31953d2b467bbac3e4ac696cd6"><td class="mdescLeft"> </td><td class="mdescRight">Returns all next variables of the model, such that Nexts(i) is the next variable of the node corresponding to i. <a href="classoperations__research_1_1RoutingModel.html#aad154b31953d2b467bbac3e4ac696cd6">More...</a><br /></td></tr>
|
|
<tr class="separator:aad154b31953d2b467bbac3e4ac696cd6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a80572a238b48c2cefe38409e7544f161"><td class="memItemLeft" align="right" valign="top">const std::vector< <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a80572a238b48c2cefe38409e7544f161">VehicleVars</a> () const</td></tr>
|
|
<tr class="memdesc:a80572a238b48c2cefe38409e7544f161"><td class="mdescLeft"> </td><td class="mdescRight">Returns all vehicle variables of the model, such that VehicleVars(i) is the vehicle variable of the node corresponding to i. <a href="classoperations__research_1_1RoutingModel.html#a80572a238b48c2cefe38409e7544f161">More...</a><br /></td></tr>
|
|
<tr class="separator:a80572a238b48c2cefe38409e7544f161"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a66fb44c05f9875685e9c332fbdfb643b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a66fb44c05f9875685e9c332fbdfb643b">NextVar</a> (int64 index) const</td></tr>
|
|
<tr class="memdesc:a66fb44c05f9875685e9c332fbdfb643b"><td class="mdescLeft"> </td><td class="mdescRight">!defined(SWIGPYTHON) <a href="classoperations__research_1_1RoutingModel.html#a66fb44c05f9875685e9c332fbdfb643b">More...</a><br /></td></tr>
|
|
<tr class="separator:a66fb44c05f9875685e9c332fbdfb643b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afadc1348f0318e9bc8cebb75b2fc4234"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#afadc1348f0318e9bc8cebb75b2fc4234">ActiveVar</a> (int64 index) const</td></tr>
|
|
<tr class="memdesc:afadc1348f0318e9bc8cebb75b2fc4234"><td class="mdescLeft"> </td><td class="mdescRight">Returns the active variable of the node corresponding to index. <a href="classoperations__research_1_1RoutingModel.html#afadc1348f0318e9bc8cebb75b2fc4234">More...</a><br /></td></tr>
|
|
<tr class="separator:afadc1348f0318e9bc8cebb75b2fc4234"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7c2d33eef73401442fd9f2e205056c73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a7c2d33eef73401442fd9f2e205056c73">VehicleCostsConsideredVar</a> (int vehicle) const</td></tr>
|
|
<tr class="memdesc:a7c2d33eef73401442fd9f2e205056c73"><td class="mdescLeft"> </td><td class="mdescRight">Returns the variable specifying whether or not costs are considered for vehicle. <a href="classoperations__research_1_1RoutingModel.html#a7c2d33eef73401442fd9f2e205056c73">More...</a><br /></td></tr>
|
|
<tr class="separator:a7c2d33eef73401442fd9f2e205056c73"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8cded3d3d6746c179a8ec0eddad24342"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a8cded3d3d6746c179a8ec0eddad24342">VehicleVar</a> (int64 index) const</td></tr>
|
|
<tr class="memdesc:a8cded3d3d6746c179a8ec0eddad24342"><td class="mdescLeft"> </td><td class="mdescRight">Returns the vehicle variable of the node corresponding to index. <a href="classoperations__research_1_1RoutingModel.html#a8cded3d3d6746c179a8ec0eddad24342">More...</a><br /></td></tr>
|
|
<tr class="separator:a8cded3d3d6746c179a8ec0eddad24342"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abcbe77312783c0a5aa4926ace764533b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#abcbe77312783c0a5aa4926ace764533b">CostVar</a> () const</td></tr>
|
|
<tr class="memdesc:abcbe77312783c0a5aa4926ace764533b"><td class="mdescLeft"> </td><td class="mdescRight">Returns the global cost variable which is being minimized. <a href="classoperations__research_1_1RoutingModel.html#abcbe77312783c0a5aa4926ace764533b">More...</a><br /></td></tr>
|
|
<tr class="separator:abcbe77312783c0a5aa4926ace764533b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a50dd6fccc1cca84aa10efc8f3ece396c"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a50dd6fccc1cca84aa10efc8f3ece396c">GetArcCostForVehicle</a> (int64 from_index, int64 to_index, int64 vehicle) const</td></tr>
|
|
<tr class="memdesc:a50dd6fccc1cca84aa10efc8f3ece396c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the cost of the transit arc between two nodes for a given vehicle. <a href="classoperations__research_1_1RoutingModel.html#a50dd6fccc1cca84aa10efc8f3ece396c">More...</a><br /></td></tr>
|
|
<tr class="separator:a50dd6fccc1cca84aa10efc8f3ece396c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae0c21c6d4e99cb309b8b298d280e4853"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ae0c21c6d4e99cb309b8b298d280e4853">CostsAreHomogeneousAcrossVehicles</a> () const</td></tr>
|
|
<tr class="memdesc:ae0c21c6d4e99cb309b8b298d280e4853"><td class="mdescLeft"> </td><td class="mdescRight">Whether costs are homogeneous across all vehicles. <a href="classoperations__research_1_1RoutingModel.html#ae0c21c6d4e99cb309b8b298d280e4853">More...</a><br /></td></tr>
|
|
<tr class="separator:ae0c21c6d4e99cb309b8b298d280e4853"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa241abc19460575d250a5788f03afbf6"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa241abc19460575d250a5788f03afbf6">GetHomogeneousCost</a> (int64 from_index, int64 to_index) const</td></tr>
|
|
<tr class="memdesc:aa241abc19460575d250a5788f03afbf6"><td class="mdescLeft"> </td><td class="mdescRight">Returns the cost of the segment between two nodes supposing all vehicle costs are the same (returns the cost for the first vehicle otherwise). <a href="classoperations__research_1_1RoutingModel.html#aa241abc19460575d250a5788f03afbf6">More...</a><br /></td></tr>
|
|
<tr class="separator:aa241abc19460575d250a5788f03afbf6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6569b0ea25fa25c91c2b8b63bedeacc6"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a6569b0ea25fa25c91c2b8b63bedeacc6">GetArcCostForFirstSolution</a> (int64 from_index, int64 to_index) const</td></tr>
|
|
<tr class="memdesc:a6569b0ea25fa25c91c2b8b63bedeacc6"><td class="mdescLeft"> </td><td class="mdescRight">Returns the cost of the arc in the context of the first solution strategy. <a href="classoperations__research_1_1RoutingModel.html#a6569b0ea25fa25c91c2b8b63bedeacc6">More...</a><br /></td></tr>
|
|
<tr class="separator:a6569b0ea25fa25c91c2b8b63bedeacc6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a92d7882c311f7d9d0c55c4def34150dd"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a92d7882c311f7d9d0c55c4def34150dd">GetArcCostForClass</a> (int64 from_index, int64 to_index, int64 cost_class_index) const</td></tr>
|
|
<tr class="memdesc:a92d7882c311f7d9d0c55c4def34150dd"><td class="mdescLeft"> </td><td class="mdescRight">Returns the cost of the segment between two nodes for a given cost class. <a href="classoperations__research_1_1RoutingModel.html#a92d7882c311f7d9d0c55c4def34150dd">More...</a><br /></td></tr>
|
|
<tr class="separator:a92d7882c311f7d9d0c55c4def34150dd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a32bba655accbd7dc8e23d30bf679b880"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a32bba655accbd7dc8e23d30bf679b880">GetCostClassIndexOfVehicle</a> (int64 vehicle) const</td></tr>
|
|
<tr class="memdesc:a32bba655accbd7dc8e23d30bf679b880"><td class="mdescLeft"> </td><td class="mdescRight">Get the cost class index of the given vehicle. <a href="classoperations__research_1_1RoutingModel.html#a32bba655accbd7dc8e23d30bf679b880">More...</a><br /></td></tr>
|
|
<tr class="separator:a32bba655accbd7dc8e23d30bf679b880"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a67e8d10adbcc563f428069f9b2c04b63"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a67e8d10adbcc563f428069f9b2c04b63">HasVehicleWithCostClassIndex</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> cost_class_index) const</td></tr>
|
|
<tr class="memdesc:a67e8d10adbcc563f428069f9b2c04b63"><td class="mdescLeft"> </td><td class="mdescRight">Returns true iff the model contains a vehicle with the given cost_class_index. <a href="classoperations__research_1_1RoutingModel.html#a67e8d10adbcc563f428069f9b2c04b63">More...</a><br /></td></tr>
|
|
<tr class="separator:a67e8d10adbcc563f428069f9b2c04b63"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad3b144985c2b4b24cf39b839dbd9c16d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad3b144985c2b4b24cf39b839dbd9c16d">GetCostClassesCount</a> () const</td></tr>
|
|
<tr class="memdesc:ad3b144985c2b4b24cf39b839dbd9c16d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of different cost classes in the model. <a href="classoperations__research_1_1RoutingModel.html#ad3b144985c2b4b24cf39b839dbd9c16d">More...</a><br /></td></tr>
|
|
<tr class="separator:ad3b144985c2b4b24cf39b839dbd9c16d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abaa74f74aefe075aedb6b16259a4404e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#abaa74f74aefe075aedb6b16259a4404e">GetNonZeroCostClassesCount</a> () const</td></tr>
|
|
<tr class="memdesc:abaa74f74aefe075aedb6b16259a4404e"><td class="mdescLeft"> </td><td class="mdescRight">Ditto, minus the 'always zero', built-in cost class. <a href="classoperations__research_1_1RoutingModel.html#abaa74f74aefe075aedb6b16259a4404e">More...</a><br /></td></tr>
|
|
<tr class="separator:abaa74f74aefe075aedb6b16259a4404e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7a8e134df97e40d1fc498f7f985c33ec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1RoutingModel.html#ab6aae3927f3537c446ac33f2c6ecb922">VehicleClassIndex</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a7a8e134df97e40d1fc498f7f985c33ec">GetVehicleClassIndexOfVehicle</a> (int64 vehicle) const</td></tr>
|
|
<tr class="separator:a7a8e134df97e40d1fc498f7f985c33ec"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a34ab0d5fa45360b5e6a42b9a78cfe5a8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a34ab0d5fa45360b5e6a42b9a78cfe5a8">GetVehicleClassesCount</a> () const</td></tr>
|
|
<tr class="memdesc:a34ab0d5fa45360b5e6a42b9a78cfe5a8"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of different vehicle classes in the model. <a href="classoperations__research_1_1RoutingModel.html#a34ab0d5fa45360b5e6a42b9a78cfe5a8">More...</a><br /></td></tr>
|
|
<tr class="separator:a34ab0d5fa45360b5e6a42b9a78cfe5a8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0f8c7a97b5465ae4ba4cb1a92c39b756"><td class="memItemLeft" align="right" valign="top">const std::vector< int > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a0f8c7a97b5465ae4ba4cb1a92c39b756">GetSameVehicleIndicesOfIndex</a> (int node) const</td></tr>
|
|
<tr class="memdesc:a0f8c7a97b5465ae4ba4cb1a92c39b756"><td class="mdescLeft"> </td><td class="mdescRight">Returns variable indices of nodes constrained to be on the same route. <a href="classoperations__research_1_1RoutingModel.html#a0f8c7a97b5465ae4ba4cb1a92c39b756">More...</a><br /></td></tr>
|
|
<tr class="separator:a0f8c7a97b5465ae4ba4cb1a92c39b756"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1048b3f7ef92f0d7747f93c8586ea1cc"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a1048b3f7ef92f0d7747f93c8586ea1cc">ArcIsMoreConstrainedThanArc</a> (int64 from, int64 to1, int64 to2)</td></tr>
|
|
<tr class="memdesc:a1048b3f7ef92f0d7747f93c8586ea1cc"><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the arc from->to1 is more constrained than from->to2, taking into account, in order: <a href="classoperations__research_1_1RoutingModel.html#a1048b3f7ef92f0d7747f93c8586ea1cc">More...</a><br /></td></tr>
|
|
<tr class="separator:a1048b3f7ef92f0d7747f93c8586ea1cc"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a25d079aaf52ffdf6d547384b523ff018"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a25d079aaf52ffdf6d547384b523ff018">DebugOutputAssignment</a> (const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> &solution_assignment, const std::string &dimension_to_print) const</td></tr>
|
|
<tr class="memdesc:a25d079aaf52ffdf6d547384b523ff018"><td class="mdescLeft"> </td><td class="mdescRight">Print some debugging information about an assignment, including the feasible intervals of the CumulVar for dimension "dimension_to_print" at each step of the routes. <a href="classoperations__research_1_1RoutingModel.html#a25d079aaf52ffdf6d547384b523ff018">More...</a><br /></td></tr>
|
|
<tr class="separator:a25d079aaf52ffdf6d547384b523ff018"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5f32c22c620c811754ba7b6f977db864"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1Solver.html">Solver</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a5f32c22c620c811754ba7b6f977db864">solver</a> () const</td></tr>
|
|
<tr class="memdesc:a5f32c22c620c811754ba7b6f977db864"><td class="mdescLeft"> </td><td class="mdescRight">Returns the underlying constraint solver. <a href="classoperations__research_1_1RoutingModel.html#a5f32c22c620c811754ba7b6f977db864">More...</a><br /></td></tr>
|
|
<tr class="separator:a5f32c22c620c811754ba7b6f977db864"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3f5d70fe48cb54cbc5d8f6bba55b007d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a3f5d70fe48cb54cbc5d8f6bba55b007d">CheckLimit</a> ()</td></tr>
|
|
<tr class="memdesc:a3f5d70fe48cb54cbc5d8f6bba55b007d"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the search limit has been crossed. <a href="classoperations__research_1_1RoutingModel.html#a3f5d70fe48cb54cbc5d8f6bba55b007d">More...</a><br /></td></tr>
|
|
<tr class="separator:a3f5d70fe48cb54cbc5d8f6bba55b007d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adb0524e488894fa8f88764c74abb31f5"><td class="memItemLeft" align="right" valign="top">absl::Duration </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#adb0524e488894fa8f88764c74abb31f5">RemainingTime</a> () const</td></tr>
|
|
<tr class="memdesc:adb0524e488894fa8f88764c74abb31f5"><td class="mdescLeft"> </td><td class="mdescRight">Returns the time left in the search limit. <a href="classoperations__research_1_1RoutingModel.html#adb0524e488894fa8f88764c74abb31f5">More...</a><br /></td></tr>
|
|
<tr class="separator:adb0524e488894fa8f88764c74abb31f5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0f38add802397fef1f57b7d90ccd5aef"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a0f38add802397fef1f57b7d90ccd5aef">nodes</a> () const</td></tr>
|
|
<tr class="memdesc:a0f38add802397fef1f57b7d90ccd5aef"><td class="mdescLeft"> </td><td class="mdescRight">Sizes and indices Returns the number of nodes in the model. <a href="classoperations__research_1_1RoutingModel.html#a0f38add802397fef1f57b7d90ccd5aef">More...</a><br /></td></tr>
|
|
<tr class="separator:a0f38add802397fef1f57b7d90ccd5aef"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa9e7ba89833775f29889744fe9480d29"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa9e7ba89833775f29889744fe9480d29">vehicles</a> () const</td></tr>
|
|
<tr class="memdesc:aa9e7ba89833775f29889744fe9480d29"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of vehicle routes in the model. <a href="classoperations__research_1_1RoutingModel.html#aa9e7ba89833775f29889744fe9480d29">More...</a><br /></td></tr>
|
|
<tr class="separator:aa9e7ba89833775f29889744fe9480d29"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a354dd8c252cf59b748602b342db6019d"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a354dd8c252cf59b748602b342db6019d">Size</a> () const</td></tr>
|
|
<tr class="memdesc:a354dd8c252cf59b748602b342db6019d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of next variables in the model. <a href="classoperations__research_1_1RoutingModel.html#a354dd8c252cf59b748602b342db6019d">More...</a><br /></td></tr>
|
|
<tr class="separator:a354dd8c252cf59b748602b342db6019d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a04bd106a61d493872cabb0f41f7f118f"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a04bd106a61d493872cabb0f41f7f118f">GetNumberOfDecisionsInFirstSolution</a> (const RoutingSearchParameters &search_parameters) const</td></tr>
|
|
<tr class="memdesc:a04bd106a61d493872cabb0f41f7f118f"><td class="mdescLeft"> </td><td class="mdescRight">Returns statistics on first solution search, number of decisions sent to filters, number of decisions rejected by filters. <a href="classoperations__research_1_1RoutingModel.html#a04bd106a61d493872cabb0f41f7f118f">More...</a><br /></td></tr>
|
|
<tr class="separator:a04bd106a61d493872cabb0f41f7f118f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aefff345740a5db07caea065ec14ec52f"><td class="memItemLeft" align="right" valign="top">int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aefff345740a5db07caea065ec14ec52f">GetNumberOfRejectsInFirstSolution</a> (const RoutingSearchParameters &search_parameters) const</td></tr>
|
|
<tr class="separator:aefff345740a5db07caea065ec14ec52f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad7e76bac509eb82ff32aff9fd2b051b0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceoperations__research.html#a49e7da620d9baa1bb2715b89fcbc307c">operations_research::FirstSolutionStrategy::Value</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad7e76bac509eb82ff32aff9fd2b051b0">GetAutomaticFirstSolutionStrategy</a> () const</td></tr>
|
|
<tr class="memdesc:ad7e76bac509eb82ff32aff9fd2b051b0"><td class="mdescLeft"> </td><td class="mdescRight">Returns the automatic first solution strategy selected. <a href="classoperations__research_1_1RoutingModel.html#ad7e76bac509eb82ff32aff9fd2b051b0">More...</a><br /></td></tr>
|
|
<tr class="separator:ad7e76bac509eb82ff32aff9fd2b051b0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac8347e84488d1b5eb7b5e6972fb32be3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#ac8347e84488d1b5eb7b5e6972fb32be3">IsMatchingModel</a> () const</td></tr>
|
|
<tr class="memdesc:ac8347e84488d1b5eb7b5e6972fb32be3"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if a vehicle/node matching problem is detected. <a href="classoperations__research_1_1RoutingModel.html#ac8347e84488d1b5eb7b5e6972fb32be3">More...</a><br /></td></tr>
|
|
<tr class="separator:ac8347e84488d1b5eb7b5e6972fb32be3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7e2d405cde11bc4a08d752d0e669912c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a7e2d405cde11bc4a08d752d0e669912c">SetTabuVarsCallback</a> (<a class="el" href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e">GetTabuVarsCallback</a> tabu_var_callback)</td></tr>
|
|
<tr class="separator:a7e2d405cde11bc4a08d752d0e669912c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a20d0a3f5cec2e425c86f358e5f06b4a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1DecisionBuilder.html">DecisionBuilder</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a20d0a3f5cec2e425c86f358e5f06b4a8">MakeGuidedSlackFinalizer</a> (const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> *dimension, std::function< int64(int64)> initializer)</td></tr>
|
|
<tr class="memdesc:a20d0a3f5cec2e425c86f358e5f06b4a8"><td class="mdescLeft"> </td><td class="mdescRight">The next few members are in the public section only for testing purposes. <a href="classoperations__research_1_1RoutingModel.html#a20d0a3f5cec2e425c86f358e5f06b4a8">More...</a><br /></td></tr>
|
|
<tr class="separator:a20d0a3f5cec2e425c86f358e5f06b4a8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a56c3abe7b321f4caf06a0a5e72586cac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1DecisionBuilder.html">DecisionBuilder</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a56c3abe7b321f4caf06a0a5e72586cac">MakeSelfDependentDimensionFinalizer</a> (const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> *dimension)</td></tr>
|
|
<tr class="memdesc:a56c3abe7b321f4caf06a0a5e72586cac"><td class="mdescLeft"> </td><td class="mdescRight"><b>SWIG</b> <a href="classoperations__research_1_1RoutingModel.html#a56c3abe7b321f4caf06a0a5e72586cac">More...</a><br /></td></tr>
|
|
<tr class="separator:a56c3abe7b321f4caf06a0a5e72586cac"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
|
Static Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a4140d4b0c6b75f277f5aefd1768d2fd9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html">RoutingModel::StateDependentTransit</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a4140d4b0c6b75f277f5aefd1768d2fd9">MakeStateDependentTransit</a> (const std::function< int64(int64)> &f, int64 domain_start, int64 domain_end)</td></tr>
|
|
<tr class="memdesc:a4140d4b0c6b75f277f5aefd1768d2fd9"><td class="mdescLeft"> </td><td class="mdescRight">Creates a cached <a class="el" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html" title="What follows is relevant for models with time/state dependent transits.">StateDependentTransit</a> from an std::function. <a href="classoperations__research_1_1RoutingModel.html#a4140d4b0c6b75f277f5aefd1768d2fd9">More...</a><br /></td></tr>
|
|
<tr class="separator:a4140d4b0c6b75f277f5aefd1768d2fd9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa1c45751ee316e0948ba32494262f006"><td class="memItemLeft" align="right" valign="top">static std::unique_ptr< <a class="el" href="classoperations__research_1_1LocalSearchOperator.html">LocalSearchOperator</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa1c45751ee316e0948ba32494262f006">MakeGreedyDescentLSOperator</a> (std::vector< <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * > variables)</td></tr>
|
|
<tr class="memdesc:aa1c45751ee316e0948ba32494262f006"><td class="mdescLeft"> </td><td class="mdescRight">Perhaps move it to <a class="el" href="constraint__solver_8h.html">constraint_solver.h</a>. <a href="classoperations__research_1_1RoutingModel.html#aa1c45751ee316e0948ba32494262f006">More...</a><br /></td></tr>
|
|
<tr class="separator:aa1c45751ee316e0948ba32494262f006"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
|
|
Static Public Attributes</h2></td></tr>
|
|
<tr class="memitem:a89db28c1da47c5aef8a0aa380a1800ec"><td class="memItemLeft" align="right" valign="top">static const int64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#a89db28c1da47c5aef8a0aa380a1800ec">kNoPenalty</a></td></tr>
|
|
<tr class="memdesc:a89db28c1da47c5aef8a0aa380a1800ec"><td class="mdescLeft"> </td><td class="mdescRight">Constant used to express a hard constraint instead of a soft penalty. <a href="classoperations__research_1_1RoutingModel.html#a89db28c1da47c5aef8a0aa380a1800ec">More...</a><br /></td></tr>
|
|
<tr class="separator:a89db28c1da47c5aef8a0aa380a1800ec"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af0a7f9f77f520184e88b73c571be73af"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#af0a7f9f77f520184e88b73c571be73af">kNoDisjunction</a></td></tr>
|
|
<tr class="memdesc:af0a7f9f77f520184e88b73c571be73af"><td class="mdescLeft"> </td><td class="mdescRight">Constant used to express the "no disjunction" index, returned when a node does not appear in any disjunction. <a href="classoperations__research_1_1RoutingModel.html#af0a7f9f77f520184e88b73c571be73af">More...</a><br /></td></tr>
|
|
<tr class="separator:af0a7f9f77f520184e88b73c571be73af"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adff4a61e79da6a3ea06ab2e9f3d431a8"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classoperations__research_1_1RoutingModel.html#a966f3010581e2a82e0b1e550667d8bce">DimensionIndex</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1RoutingModel.html#adff4a61e79da6a3ea06ab2e9f3d431a8">kNoDimension</a></td></tr>
|
|
<tr class="memdesc:adff4a61e79da6a3ea06ab2e9f3d431a8"><td class="mdescLeft"> </td><td class="mdescRight">Constant used to express the "no dimension" index, returned when a dimension name does not correspond to an actual dimension. <a href="classoperations__research_1_1RoutingModel.html#adff4a61e79da6a3ea06ab2e9f3d431a8">More...</a><br /></td></tr>
|
|
<tr class="separator:adff4a61e79da6a3ea06ab2e9f3d431a8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Member Typedef Documentation</h2>
|
|
<a id="ad13ad202092298b43c9099b212c54d3d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad13ad202092298b43c9099b212c54d3d">◆ </a></span>CostClassIndex</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef RoutingCostClassIndex <a class="el" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00233">233</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a966f3010581e2a82e0b1e550667d8bce"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a966f3010581e2a82e0b1e550667d8bce">◆ </a></span>DimensionIndex</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef RoutingDimensionIndex <a class="el" href="classoperations__research_1_1RoutingModel.html#a966f3010581e2a82e0b1e550667d8bce">DimensionIndex</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00234">234</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="afa7cbbd4db2dd5d0bec3393efc9ebac1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#afa7cbbd4db2dd5d0bec3393efc9ebac1">◆ </a></span>DisjunctionIndex</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef RoutingDisjunctionIndex <a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00235">235</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0e106a97f0156868f1d1c741b283793e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0e106a97f0156868f1d1c741b283793e">◆ </a></span>GetTabuVarsCallback</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">using <a class="el" href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e">GetTabuVarsCallback</a> = std::function<std::vector<<a class="el" href="classoperations__research_1_1IntVar.html">operations_research::IntVar</a>*>(<a class="el" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a>*)></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the callback returning the variable to use for the Tabu Search metaheuristic. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01235">1235</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1636c49d2587c3d9df16918345b82378"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1636c49d2587c3d9df16918345b82378">◆ </a></span>IndexPair</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef <a class="el" href="namespaceoperations__research.html#a1a7c1221ae29f298e0879e516d086f8b">RoutingIndexPair</a> <a class="el" href="classoperations__research_1_1RoutingModel.html#a1636c49d2587c3d9df16918345b82378">IndexPair</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00242">242</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a76874cd778ea1b9220673e019f9e7abe"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a76874cd778ea1b9220673e019f9e7abe">◆ </a></span>IndexPairs</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef <a class="el" href="namespaceoperations__research.html#aef7db0bee0a22d1791d040fd3853f3b7">RoutingIndexPairs</a> <a class="el" href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe">IndexPairs</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00243">243</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a204041e5264282d54dfd198011e776d3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a204041e5264282d54dfd198011e776d3">◆ </a></span>TransitCallback1</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef <a class="el" href="namespaceoperations__research.html#abec0698c301a7fe57265985e2d30e7c7">RoutingTransitCallback1</a> <a class="el" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00237">237</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5fa8aee5b0c67072dbbb03f1899ec60a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5fa8aee5b0c67072dbbb03f1899ec60a">◆ </a></span>TransitCallback2</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef <a class="el" href="namespaceoperations__research.html#ab35e9f27307e9c5273c9d77fcf30de0e">RoutingTransitCallback2</a> <a class="el" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00238">238</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6719229c28ba88ce65968989bb85616b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6719229c28ba88ce65968989bb85616b">◆ </a></span>VariableIndexEvaluator2</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef std::function<<a class="el" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html">StateDependentTransit</a>(int64, int64)> <a class="el" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">VariableIndexEvaluator2</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00264">264</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab6aae3927f3537c446ac33f2c6ecb922"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab6aae3927f3537c446ac33f2c6ecb922">◆ </a></span>VehicleClassIndex</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef RoutingVehicleClassIndex <a class="el" href="classoperations__research_1_1RoutingModel.html#ab6aae3927f3537c446ac33f2c6ecb922">VehicleClassIndex</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00236">236</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Enumeration Documentation</h2>
|
|
<a id="aa5cff2ee7fbe3a9c5c701bfba7460c83"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa5cff2ee7fbe3a9c5c701bfba7460c83">◆ </a></span>PickupAndDeliveryPolicy</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Types of precedence policy applied to pickup and delivery pairs. </p>
|
|
<table class="fieldtable">
|
|
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aa5cff2ee7fbe3a9c5c701bfba7460c83a2fecd02405f5ff0769292822ad17a955"></a>PICKUP_AND_DELIVERY_NO_ORDER </td><td class="fielddoc"><p>Any precedence is accepted. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="aa5cff2ee7fbe3a9c5c701bfba7460c83a272376ed085de7d28d36fa1013394cc8"></a>PICKUP_AND_DELIVERY_LIFO </td><td class="fielddoc"><p>Deliveries must be performed in reverse order of pickups. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="aa5cff2ee7fbe3a9c5c701bfba7460c83a5c55a9aa52a754be8eb1b9d29af97a8a"></a>PICKUP_AND_DELIVERY_FIFO </td><td class="fielddoc"><p>Deliveries must be performed in the same order as pickups. </p>
|
|
</td></tr>
|
|
</table>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00225">225</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a67a0db04d321a74b7e7fcfd3f1a3f70b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a67a0db04d321a74b7e7fcfd3f1a3f70b">◆ </a></span>Status</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Status of the search. </p>
|
|
<table class="fieldtable">
|
|
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a67a0db04d321a74b7e7fcfd3f1a3f70babe45300b724161791a6429b27d7f5009"></a>ROUTING_NOT_SOLVED </td><td class="fielddoc"><p>Problem not solved yet (before calling <a class="el" href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1" title="Solves the current routing model; closes the current model.">RoutingModel::Solve()</a>). </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="a67a0db04d321a74b7e7fcfd3f1a3f70ba09515ee36ef4715f09f3aa67f685011e"></a>ROUTING_SUCCESS </td><td class="fielddoc"><p>Problem solved successfully after calling <a class="el" href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1" title="Solves the current routing model; closes the current model.">RoutingModel::Solve()</a>. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="a67a0db04d321a74b7e7fcfd3f1a3f70baba9b2029e549c14c8a6b9f6201e329fd"></a>ROUTING_FAIL </td><td class="fielddoc"><p>No solution found to the problem after calling <a class="el" href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1" title="Solves the current routing model; closes the current model.">RoutingModel::Solve()</a>. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="a67a0db04d321a74b7e7fcfd3f1a3f70baf6452d79d02ab06bc8d722d25825cae3"></a>ROUTING_FAIL_TIMEOUT </td><td class="fielddoc"><p>Time limit reached before finding a solution with <a class="el" href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1" title="Solves the current routing model; closes the current model.">RoutingModel::Solve()</a>. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="a67a0db04d321a74b7e7fcfd3f1a3f70bae78ffdfdfc3eb7331c0ef91bdef8452b"></a>ROUTING_INVALID </td><td class="fielddoc"><p>Model, model parameters or flags are not valid. </p>
|
|
</td></tr>
|
|
</table>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00211">211</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="af12674b693b7b7cfe271e5b066e10bff"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#af12674b693b7b7cfe271e5b066e10bff">◆ </a></span>RoutingModel() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a> & </td>
|
|
<td class="paramname"><em>index_manager</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Constructor taking an index manager. </p>
|
|
<p>The version which does not take RoutingModelParameters is equivalent to passing <a class="el" href="namespaceoperations__research.html#aa388c8707db255ae7742c04046bdd613">DefaultRoutingModelParameters()</a>. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a33cbb6c72596f866cb9cd105c5fee8ff"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a33cbb6c72596f866cb9cd105c5fee8ff">◆ </a></span>RoutingModel() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingIndexManager.html">RoutingIndexManager</a> & </td>
|
|
<td class="paramname"><em>index_manager</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const RoutingModelParameters & </td>
|
|
<td class="paramname"><em>parameters</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="adca8397d2ad8dfc3bcd2a768bf3e12a2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adca8397d2ad8dfc3bcd2a768bf3e12a2">◆ </a></span>~RoutingModel()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">~<a class="el" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="afadc1348f0318e9bc8cebb75b2fc4234"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#afadc1348f0318e9bc8cebb75b2fc4234">◆ </a></span>ActiveVar()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>* ActiveVar </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the active variable of the node corresponding to index. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01098">1098</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a086605d9650ce3c576d8a9c45ce0b9fc"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a086605d9650ce3c576d8a9c45ce0b9fc">◆ </a></span>AddAtSolutionCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddAtSolutionCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::function< void()> </td>
|
|
<td class="paramname"><em>callback</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds a callback called each time a solution is found during the search. </p>
|
|
<p>This is a shortcut to creating a monitor to call the callback on AtSolution() and adding it with AddSearchMonitor. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9fc965a401f96f12f9101b73ece8d26a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9fc965a401f96f12f9101b73ece8d26a">◆ </a></span>AddConstantDimension()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddConstantDimension </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>capacity</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00434">434</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a95fe00b0ee96cce90af625f88d931b04"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a95fe00b0ee96cce90af625f88d931b04">◆ </a></span>AddConstantDimensionWithSlack()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddConstantDimensionWithSlack </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>capacity</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>slack_max</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a dimension where the transit variable is constrained to be equal to 'value'; 'capacity' is the upper bound of the cumul variables. </p>
|
|
<p>'name' is the name used to reference the dimension; this name is used to get cumul and transit variables from the routing model. Returns false if a dimension with the same name has already been created (and doesn't create the new dimension). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab76cd57b0490eb4253fd1bf792e23f16"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab76cd57b0490eb4253fd1bf792e23f16">◆ </a></span>AddDimension()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddDimension </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>evaluator_index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>slack_max</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>capacity</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Model creation. </p>
|
|
<p>Methods to add dimensions to routes; dimensions represent quantities accumulated at nodes along the routes. They represent quantities such as weights or volumes carried along the route, or distance or times. Quantities at a node are represented by "cumul" variables and the increase or decrease of quantities between nodes are represented by "transit" variables. These variables are linked as follows: if j == next(i), cumul(j) = cumul(i) + transit(i) + slack(i) where slack is a positive slack variable (can represent waiting times for a time dimension). Setting the value of fix_start_cumul_to_zero to true will force the "cumul" variable of the start node of all vehicles to be equal to 0. Creates a dimension where the transit variable is constrained to be equal to evaluator(i, next(i)); 'slack_max' is the upper bound of the slack variable and 'capacity' is the upper bound of the cumul variables. 'name' is the name used to reference the dimension; this name is used to get cumul and transit variables from the routing model. Returns false if a dimension with the same name has already been created (and doesn't create the new dimension). Takes ownership of the callback 'evaluator'. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a496abfcf54eb77d6a82dc03954ee527d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a496abfcf54eb77d6a82dc03954ee527d">◆ </a></span>AddDimensionDependentDimensionWithVehicleCapacity() <span class="overload">[1/4]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddDimensionDependentDimensionWithVehicleCapacity </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< int > & </td>
|
|
<td class="paramname"><em>pure_transits</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::vector< int > & </td>
|
|
<td class="paramname"><em>dependent_transits</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * </td>
|
|
<td class="paramname"><em>base_dimension</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>slack_max</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< int64 > </td>
|
|
<td class="paramname"><em>vehicle_capacities</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a dimension with transits depending on the cumuls of another dimension. </p>
|
|
<p>'pure_transits' are the per-vehicle fixed transits as above. 'dependent_transits' is a vector containing for each vehicle an index to a registered state dependent transit callback. 'base_dimension' indicates the dimension from which the cumul variable is taken. If 'base_dimension' is nullptr, then the newly created dimension is self-based. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00466">466</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa3570966e8c66b444e02256805094be4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa3570966e8c66b444e02256805094be4">◆ </a></span>AddDimensionDependentDimensionWithVehicleCapacity() <span class="overload">[2/4]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddDimensionDependentDimensionWithVehicleCapacity </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< int > & </td>
|
|
<td class="paramname"><em>transits</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * </td>
|
|
<td class="paramname"><em>base_dimension</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>slack_max</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< int64 > </td>
|
|
<td class="paramname"><em>vehicle_capacities</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>As above, but pure_transits are taken to be zero evaluators. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae374acc8df39a05017649aa0533b66fd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae374acc8df39a05017649aa0533b66fd">◆ </a></span>AddDimensionDependentDimensionWithVehicleCapacity() <span class="overload">[3/4]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddDimensionDependentDimensionWithVehicleCapacity </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>pure_transit</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>dependent_transit</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * </td>
|
|
<td class="paramname"><em>base_dimension</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>slack_max</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>vehicle_capacity</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9681fce3b255669812d0eb7fd7e372b2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9681fce3b255669812d0eb7fd7e372b2">◆ </a></span>AddDimensionDependentDimensionWithVehicleCapacity() <span class="overload">[4/4]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddDimensionDependentDimensionWithVehicleCapacity </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>transit</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * </td>
|
|
<td class="paramname"><em>base_dimension</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>slack_max</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>vehicle_capacity</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Homogeneous versions of the functions above. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aca85cf6d63540a9ed592a1d7b3236d2d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aca85cf6d63540a9ed592a1d7b3236d2d">◆ </a></span>AddDimensionWithVehicleCapacity()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddDimensionWithVehicleCapacity </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>evaluator_index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>slack_max</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< int64 > </td>
|
|
<td class="paramname"><em>vehicle_capacities</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0446229ea281bc2be5055b79825b9a9c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0446229ea281bc2be5055b79825b9a9c">◆ </a></span>AddDimensionWithVehicleTransitAndCapacity()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddDimensionWithVehicleTransitAndCapacity </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< int > & </td>
|
|
<td class="paramname"><em>evaluator_indices</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>slack_max</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< int64 > </td>
|
|
<td class="paramname"><em>vehicle_capacities</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a66b87fec514d648c751ad9d4df09d05b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a66b87fec514d648c751ad9d4df09d05b">◆ </a></span>AddDimensionWithVehicleTransits()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddDimensionWithVehicleTransits </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< int > & </td>
|
|
<td class="paramname"><em>evaluator_indices</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>slack_max</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>capacity</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa75928669f7ad3ffa7882538f74dab8b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa75928669f7ad3ffa7882538f74dab8b">◆ </a></span>AddDisjunction()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> AddDisjunction </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< int64 > & </td>
|
|
<td class="paramname"><em>indices</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>penalty</em> = <code><a class="el" href="classoperations__research_1_1RoutingModel.html#a89db28c1da47c5aef8a0aa380a1800ec">kNoPenalty</a></code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>max_cardinality</em> = <code>1</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds a disjunction constraint on the indices: exactly 'max_cardinality' of the indices are active. </p>
|
|
<p>Start and end indices of any vehicle cannot be part of a disjunction.</p>
|
|
<p>If a penalty is given, at most 'max_cardinality' of the indices can be active, and if less are active, 'penalty' is payed per inactive index. This is equivalent to adding the constraint: p + Sum(i)active[i] == max_cardinality where p is an integer variable, and the following cost to the cost function: p * penalty. 'penalty' must be positive to make the disjunction optional; a negative penalty will force 'max_cardinality' indices of the disjunction to be performed, and therefore p == 0. Note: passing a vector with a single index will model an optional index with a penalty cost if it is not visited. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a796b4eed03ed53bbbaed642f4ae94952"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a796b4eed03ed53bbbaed642f4ae94952">◆ </a></span>AddHardTypeIncompatibility()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddHardTypeIncompatibility </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>type1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>type2</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Incompatibilities: Two nodes with "hard" incompatible types cannot share the same route at all, while with a "temporal" incompatibility they can't be on the same route at the same time. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab878a81ace850e3ecd26e95966409f61"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab878a81ace850e3ecd26e95966409f61">◆ </a></span>AddIntervalToAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddIntervalToAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1IntervalVar.html">IntervalVar</a> *const </td>
|
|
<td class="paramname"><em>interval</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a566384949e6395952f6f6b48603fd87f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a566384949e6395952f6f6b48603fd87f">◆ </a></span>AddLocalSearchFilter()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddLocalSearchFilter </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1LocalSearchFilter.html">LocalSearchFilter</a> * </td>
|
|
<td class="paramname"><em>filter</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds a custom local search filter to the list of filters used to speed up local search by pruning unfeasible variable assignments. </p>
|
|
<p>Calling this method after the routing model has been closed (<a class="el" href="classoperations__research_1_1RoutingModel.html#add71470f4175a0859e6e3d69c2a53988" title="Closes the current routing model; after this method is called, no modification to the model can be do...">CloseModel()</a> or <a class="el" href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1" title="Solves the current routing model; closes the current model.">Solve()</a> has been called) has no effect. The routing model does not take ownership of the filter. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01059">1059</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1156fa8214dba09e2a2a94862244aa1f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1156fa8214dba09e2a2a94862244aa1f">◆ </a></span>AddLocalSearchOperator()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddLocalSearchOperator </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1LocalSearchOperator.html">LocalSearchOperator</a> * </td>
|
|
<td class="paramname"><em>ls_operator</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds a local search operator to the set of operators used to solve the vehicle routing problem. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6842df436effdf2492362bb89e171af0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6842df436effdf2492362bb89e171af0">◆ </a></span>AddMatrixDimension()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddMatrixDimension </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::vector< std::vector< int64 >> </td>
|
|
<td class="paramname"><em>values</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>capacity</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a dimension where the transit variable is constrained to be equal to 'values[i][next(i)]' for node i; 'capacity' is the upper bound of the cumul variables. </p>
|
|
<p>'name' is the name used to reference the dimension; this name is used to get cumul and transit variables from the routing model. Returns false if a dimension with the same name has already been created (and doesn't create the new dimension). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a23c20278f29df4b683b589958ab3a187"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a23c20278f29df4b683b589958ab3a187">◆ </a></span>AddPickupAndDelivery()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddPickupAndDelivery </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>pickup</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>delivery</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Notifies that index1 and index2 form a pair of nodes which should belong to the same route. </p>
|
|
<p>This methods helps the search find better solutions, especially in the local search phase. It should be called each time you have an equality constraint linking the vehicle variables of two node (including for instance pickup and delivery problems): Solver* const solver = routing.solver(); int64 index1 = manager.NodeToIndex(node1); int64 index2 = manager.NodeToIndex(node2); solver->AddConstraint(solver->MakeEquality( routing.VehicleVar(index1), routing.VehicleVar(index2))); routing.AddPickupAndDelivery(index1, index2); </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5f404ec17ed0917a6ac3711ac53e60f1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5f404ec17ed0917a6ac3711ac53e60f1">◆ </a></span>AddPickupAndDeliverySets()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddPickupAndDeliverySets </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> </td>
|
|
<td class="paramname"><em>pickup_disjunction</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> </td>
|
|
<td class="paramname"><em>delivery_disjunction</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Same as AddPickupAndDelivery but notifying that the performed node from the disjunction of index 'pickup_disjunction' is on the same route as the performed node from the disjunction of index 'delivery_disjunction'. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac22e9cfd1fbf1b4af4f8a9be46ec88a1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac22e9cfd1fbf1b4af4f8a9be46ec88a1">◆ </a></span>AddSameVehicleRequiredTypeAlternatives()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddSameVehicleRequiredTypeAlternatives </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>dependent_type</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">absl::flat_hash_set< int > </td>
|
|
<td class="paramname"><em>required_type_alternatives</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Requirements: NOTE: As of 2019-04, cycles in the requirement graph are not supported, and lead to the dependent nodes being skipped if possible (otherwise the model is considered infeasible). </p>
|
|
<p>The following functions specify that "dependent_type" requires at least one of the types in "required_type_alternatives".</p>
|
|
<p>For same-vehicle requirements, a node of dependent type type_D requires at least one node of type type_R among the required alternatives on the same route. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0e23be986e4c3b96a50c8798aa5f536d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0e23be986e4c3b96a50c8798aa5f536d">◆ </a></span>AddSearchMonitor()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddSearchMonitor </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1SearchMonitor.html">SearchMonitor</a> *const </td>
|
|
<td class="paramname"><em>monitor</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds a search monitor to the search used to solve the routing model. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9b09ef1fec581652f66de933154b78e4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9b09ef1fec581652f66de933154b78e4">◆ </a></span>AddSoftSameVehicleConstraint()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddSoftSameVehicleConstraint </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< int64 > & </td>
|
|
<td class="paramname"><em>indices</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>cost</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds a soft contraint to force a set of variable indices to be on the same vehicle. </p>
|
|
<p>If all nodes are not on the same vehicle, each extra vehicle used adds 'cost' to the cost function. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a92ee209f167d3974329301d784010b63"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a92ee209f167d3974329301d784010b63">◆ </a></span>AddTemporalRequiredTypeAlternatives()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddTemporalRequiredTypeAlternatives </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>dependent_type</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">absl::flat_hash_set< int > </td>
|
|
<td class="paramname"><em>required_type_alternatives</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>If type_D temporally depends on type_R, any non-delivery node_D of type_D requires at least one non-delivered node of type_R on its vehicle at the time node_D is visited. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7086a908f1890a7e1550c97b774e6384"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7086a908f1890a7e1550c97b774e6384">◆ </a></span>AddTemporalTypeIncompatibility()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddTemporalTypeIncompatibility </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>type1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>type2</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a437ae499bef0aa64f2753166a000f5bd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a437ae499bef0aa64f2753166a000f5bd">◆ </a></span>AddToAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddToAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> *const </td>
|
|
<td class="paramname"><em>var</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds an extra variable to the vehicle routing assignment. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aabdcf3bd412a5a61d811ef85e115e5ff"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aabdcf3bd412a5a61d811ef85e115e5ff">◆ </a></span>AddVariableMaximizedByFinalizer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddVariableMaximizedByFinalizer </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td>
|
|
<td class="paramname"><em>var</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds a variable to maximize in the solution finalizer (see above for information on the solution finalizer). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4768ba91c34c542eddec212a68d79473"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4768ba91c34c542eddec212a68d79473">◆ </a></span>AddVariableMinimizedByFinalizer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddVariableMinimizedByFinalizer </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td>
|
|
<td class="paramname"><em>var</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds a variable to minimize in the solution finalizer. </p>
|
|
<p>The solution finalizer is called each time a solution is found during the search and allows to instantiate secondary variables (such as dimension cumul variables). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1739a41268c21cfc401d870f05b93536"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1739a41268c21cfc401d870f05b93536">◆ </a></span>AddVariableTargetToFinalizer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddVariableTargetToFinalizer </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td>
|
|
<td class="paramname"><em>var</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>target</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Add a variable to set the closest possible to the target value in the solution finalizer. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aedbec46c51bb2d8b0b0f77fc98ac8e9e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aedbec46c51bb2d8b0b0f77fc98ac8e9e">◆ </a></span>AddVectorDimension()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AddVectorDimension </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::vector< int64 > </td>
|
|
<td class="paramname"><em>values</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>capacity</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>fix_start_cumul_to_zero</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a dimension where the transit variable is constrained to be equal to 'values[i]' for node i; 'capacity' is the upper bound of the cumul variables. </p>
|
|
<p>'name' is the name used to reference the dimension; this name is used to get cumul and transit variables from the routing model. Returns false if a dimension with the same name has already been created (and doesn't create the new dimension). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a939aa2ef2afec0337b0f9d4dcb1c2db8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a939aa2ef2afec0337b0f9d4dcb1c2db8">◆ </a></span>AddWeightedVariableMinimizedByFinalizer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AddWeightedVariableMinimizedByFinalizer </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * </td>
|
|
<td class="paramname"><em>var</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>cost</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Adds a variable to minimize in the solution finalizer, with a weighted priority: the higher the more priority it has. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aaf71584ad4bffea7a489dc53787fa6f8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aaf71584ad4bffea7a489dc53787fa6f8">◆ </a></span>ApplyLocks()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>* ApplyLocks </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< int64 > & </td>
|
|
<td class="paramname"><em>locks</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Applies a lock chain to the next search. </p>
|
|
<p>'locks' represents an ordered vector of nodes representing a partial route which will be fixed during the next search; it will constrain next variables such that: next[locks[i]] == locks[i+1].</p>
|
|
<p>Returns the next variable at the end of the locked chain; this variable is not locked. An assignment containing the locks can be obtained by calling <a class="el" href="classoperations__research_1_1RoutingModel.html#ae033bc458ffce1ecc4874f3e212896f7" title="Returns an assignment used to fix some of the variables of the problem.">PreAssignment()</a>. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a410f7da30cf944b7874eebe57eebe41a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a410f7da30cf944b7874eebe57eebe41a">◆ </a></span>ApplyLocksToAllVehicles()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool ApplyLocksToAllVehicles </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< std::vector< int64 >> & </td>
|
|
<td class="paramname"><em>locks</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>close_routes</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Applies lock chains to all vehicles to the next search, such that locks[p] is the lock chain for route p. </p>
|
|
<p>Returns false if the locks do not contain valid routes; expects that the routes do not contain the depots, i.e. there are empty vectors in place of empty routes. If close_routes is set to true, adds the end nodes to the route of each vehicle and deactivates other nodes. An assignment containing the locks can be obtained by calling <a class="el" href="classoperations__research_1_1RoutingModel.html#ae033bc458ffce1ecc4874f3e212896f7" title="Returns an assignment used to fix some of the variables of the problem.">PreAssignment()</a>. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1048b3f7ef92f0d7747f93c8586ea1cc"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1048b3f7ef92f0d7747f93c8586ea1cc">◆ </a></span>ArcIsMoreConstrainedThanArc()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool ArcIsMoreConstrainedThanArc </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>from</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>to1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>to2</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns whether the arc from->to1 is more constrained than from->to2, taking into account, in order: </p>
|
|
<ul>
|
|
<li>whether the destination node isn't an end node</li>
|
|
<li>whether the destination node is mandatory</li>
|
|
<li>whether the destination node is bound to the same vehicle as the source</li>
|
|
<li>the "primary constrained" dimension (see SetPrimaryConstrainedDimension) It then breaks ties using, in order:</li>
|
|
<li>the arc cost (taking unperformed penalties into account)</li>
|
|
<li>the size of the vehicle vars of "to1" and "to2" (lowest size wins)</li>
|
|
<li>the value: the lowest value of the indices to1 and to2 wins. See the .cc for details. The more constrained arc is typically preferable when building a first solution. This method is intended to be used as a callback for the BestValueByComparisonSelector value selector. Args: from: the variable index of the source node to1: the variable index of the first candidate destination node. to2: the variable index of the second candidate destination node. </li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aed6760664a6e4f3427832ee3b7ba0602"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aed6760664a6e4f3427832ee3b7ba0602">◆ </a></span>AreEmptyRouteCostsConsideredForVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool AreEmptyRouteCostsConsideredForVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00853">853</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a97d152b7049084186342b719eee6fa15"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a97d152b7049084186342b719eee6fa15">◆ </a></span>AssignmentToRoutes()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void AssignmentToRoutes </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> & </td>
|
|
<td class="paramname"><em>assignment</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< std::vector< int64 >> *const </td>
|
|
<td class="paramname"><em>routes</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Converts the solution in the given assignment to routes for all vehicles. </p>
|
|
<p>Expects that assignment contains a valid solution (i.e. routes for all vehicles end with an end index for that vehicle). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3f5d70fe48cb54cbc5d8f6bba55b007d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3f5d70fe48cb54cbc5d8f6bba55b007d">◆ </a></span>CheckLimit()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool CheckLimit </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true if the search limit has been crossed. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01197">1197</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="add71470f4175a0859e6e3d69c2a53988"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#add71470f4175a0859e6e3d69c2a53988">◆ </a></span>CloseModel()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void CloseModel </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Closes the current routing model; after this method is called, no modification to the model can be done, but RoutesToAssignment becomes available. </p>
|
|
<p>Note that <a class="el" href="classoperations__research_1_1RoutingModel.html#add71470f4175a0859e6e3d69c2a53988" title="Closes the current routing model; after this method is called, no modification to the model can be do...">CloseModel()</a> is automatically called by <a class="el" href="classoperations__research_1_1RoutingModel.html#a562e4c0a80f7f4eda9573a482af288d1" title="Solves the current routing model; closes the current model.">Solve()</a> and other methods that produce solution. This is equivalent to calling CloseModelWithParameters(DefaultRoutingSearchParameters()). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa79f8d482de4dd0ef86a1b54999686af"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa79f8d482de4dd0ef86a1b54999686af">◆ </a></span>CloseModelWithParameters()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void CloseModelWithParameters </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const RoutingSearchParameters & </td>
|
|
<td class="paramname"><em>search_parameters</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Same as above taking search parameters (as of 10/2015 some the parameters have to be set when closing the model). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a822458cc9a9a6fa02e86af3e3a1e5c89"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a822458cc9a9a6fa02e86af3e3a1e5c89">◆ </a></span>CloseVisitTypes()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void CloseVisitTypes </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>This function should be called once all node visit types have been set and prior to adding any incompatibilities/requirements. </p>
|
|
<p>"close" types. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3e87a7710617f6ac19dca14adad9c5a6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3e87a7710617f6ac19dca14adad9c5a6">◆ </a></span>CompactAndCheckAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* CompactAndCheckAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> & </td>
|
|
<td class="paramname"><em>assignment</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Same as <a class="el" href="classoperations__research_1_1RoutingModel.html#a1b7f20d14ae5261cb2f250c6e99f4383" title="Returns a compacted version of the given assignment, in which all vehicles with id lower or equal to ...">CompactAssignment()</a> but also checks the validity of the final compact solution; if it is not valid, no attempts to repair it are made (instead, the method returns nullptr). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1b7f20d14ae5261cb2f250c6e99f4383"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1b7f20d14ae5261cb2f250c6e99f4383">◆ </a></span>CompactAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* CompactAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> & </td>
|
|
<td class="paramname"><em>assignment</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns a compacted version of the given assignment, in which all vehicles with id lower or equal to some N have non-empty routes, and all vehicles with id greater than N have empty routes. </p>
|
|
<p>Does not take ownership of the returned object. If found, the cost of the compact assignment is the same as in the original assignment and it preserves the values of 'active' variables. Returns nullptr if a compact assignment was not found. This method only works in homogenous mode, and it only swaps equivalent vehicles (vehicles with the same start and end nodes). When creating the compact assignment, the empty plan is replaced by the route assigned to the compatible vehicle with the highest id. Note that with more complex constraints on vehicle variables, this method might fail even if a compact solution exists. This method changes the vehicle and dimension variables as necessary. While compacting the solution, only basic checks on vehicle variables are performed; if one of these checks fails no attempts to repair it are made (instead, the method returns nullptr). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae9b2404a26ab1e6acf562b8261eeba38"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae9b2404a26ab1e6acf562b8261eeba38">◆ </a></span>ComputeLowerBound()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 ComputeLowerBound </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Computes a lower bound to the routing problem solving a linear assignment problem. </p>
|
|
<p>The routing model must be closed before calling this method. Note that problems with node disjunction constraints (including optional nodes) and non-homogenous costs are not supported (the method returns 0 in these cases). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7ccaa3133378da76d3fd5cdb560038ae"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7ccaa3133378da76d3fd5cdb560038ae">◆ </a></span>ConsiderEmptyRouteCostsForVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void ConsiderEmptyRouteCostsForVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>consider_costs</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00848">848</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae0c21c6d4e99cb309b8b298d280e4853"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae0c21c6d4e99cb309b8b298d280e4853">◆ </a></span>CostsAreHomogeneousAcrossVehicles()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool CostsAreHomogeneousAcrossVehicles </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Whether costs are homogeneous across all vehicles. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01115">1115</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="abcbe77312783c0a5aa4926ace764533b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#abcbe77312783c0a5aa4926ace764533b">◆ </a></span>CostVar()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>* CostVar </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the global cost variable which is being minimized. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01108">1108</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a25d079aaf52ffdf6d547384b523ff018"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a25d079aaf52ffdf6d547384b523ff018">◆ </a></span>DebugOutputAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string DebugOutputAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> & </td>
|
|
<td class="paramname"><em>solution_assignment</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>dimension_to_print</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Print some debugging information about an assignment, including the feasible intervals of the CumulVar for dimension "dimension_to_print" at each step of the routes. </p>
|
|
<p>If "dimension_to_print" is omitted, all dimensions will be printed. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1dc8d32892f78532c8ee7a7186158e07"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1dc8d32892f78532c8ee7a7186158e07">◆ </a></span>End()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 End </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the variable index of the ending node of a vehicle route. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01071">1071</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a660cb5477a6d3fbf146657aa7af73968"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a660cb5477a6d3fbf146657aa7af73968">◆ </a></span>first_solution_evaluator()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1Solver.html#abb24034fec2804ac3c0172f043087321">Solver::IndexEvaluator2</a>& first_solution_evaluator </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets/sets the evaluator used during the search. </p>
|
|
<p>Only relevant when RoutingSearchParameters.first_solution_strategy = EVALUATOR_STRATEGY. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00861">861</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a32b850e71c62d48b685e29952e03ba4b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a32b850e71c62d48b685e29952e03ba4b">◆ </a></span>ForEachNodeInDisjunctionWithMaxCardinalityFromIndex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void ForEachNodeInDisjunctionWithMaxCardinalityFromIndex </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>max_cardinality</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">F </td>
|
|
<td class="paramname"><em>f</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Calls f for each variable index of indices in the same disjunctions as the node corresponding to the variable index 'index'; only disjunctions of cardinality 'cardinality' are considered. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00589">589</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a43e14716c146e779b818f3451f23af1d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a43e14716c146e779b818f3451f23af1d">◆ </a></span>GetAllDimensionNames()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector<::std::string> GetAllDimensionNames </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Outputs the names of all dimensions added to the routing engine. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa01519be299cb5ddef36111ee6f8a5cc"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa01519be299cb5ddef36111ee6f8a5cc">◆ </a></span>GetAmortizedLinearCostFactorOfVehicles()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<int64>& GetAmortizedLinearCostFactorOfVehicles </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00841">841</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aaeaf95383c1c03da6f22c522d119775b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aaeaf95383c1c03da6f22c522d119775b">◆ </a></span>GetAmortizedQuadraticCostFactorOfVehicles()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<int64>& GetAmortizedQuadraticCostFactorOfVehicles </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00844">844</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a92d7882c311f7d9d0c55c4def34150dd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a92d7882c311f7d9d0c55c4def34150dd">◆ </a></span>GetArcCostForClass()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetArcCostForClass </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>from_index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>to_index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>cost_class_index</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the cost of the segment between two nodes for a given cost class. </p>
|
|
<p>Input are variable indices of nodes and the cost class. Unlike <a class="el" href="classoperations__research_1_1RoutingModel.html#a50dd6fccc1cca84aa10efc8f3ece396c" title="Returns the cost of the transit arc between two nodes for a given vehicle.">GetArcCostForVehicle()</a>, if cost_class is kNoCost, then the returned cost won't necessarily be zero: only some of the components of the cost that depend on the cost class will be omited. See the code for details. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6569b0ea25fa25c91c2b8b63bedeacc6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6569b0ea25fa25c91c2b8b63bedeacc6">◆ </a></span>GetArcCostForFirstSolution()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetArcCostForFirstSolution </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>from_index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>to_index</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the cost of the arc in the context of the first solution strategy. </p>
|
|
<p>This is typically a simplification of the actual cost; see the .cc. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a50dd6fccc1cca84aa10efc8f3ece396c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a50dd6fccc1cca84aa10efc8f3ece396c">◆ </a></span>GetArcCostForVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetArcCostForVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>from_index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>to_index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>vehicle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the cost of the transit arc between two nodes for a given vehicle. </p>
|
|
<p>Input are variable indices of node. This returns 0 if vehicle < 0. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad7e76bac509eb82ff32aff9fd2b051b0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad7e76bac509eb82ff32aff9fd2b051b0">◆ </a></span>GetAutomaticFirstSolutionStrategy()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="namespaceoperations__research.html#a49e7da620d9baa1bb2715b89fcbc307c">operations_research::FirstSolutionStrategy::Value</a> GetAutomaticFirstSolutionStrategy </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the automatic first solution strategy selected. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01224">1224</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad3b144985c2b4b24cf39b839dbd9c16d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad3b144985c2b4b24cf39b839dbd9c16d">◆ </a></span>GetCostClassesCount()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int GetCostClassesCount </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the number of different cost classes in the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01149">1149</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a32bba655accbd7dc8e23d30bf679b880"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a32bba655accbd7dc8e23d30bf679b880">◆ </a></span>GetCostClassIndexOfVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> GetCostClassIndexOfVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>vehicle</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the cost class index of the given vehicle. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01135">1135</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a436789d1133bf0155f13d189e556355d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a436789d1133bf0155f13d189e556355d">◆ </a></span>GetDeliveryIndexPairs()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<std::pair<int, int> >& GetDeliveryIndexPairs </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>node_index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Same as above for deliveries. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="acca75b5d3bfe2433c5805b049815f533"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#acca75b5d3bfe2433c5805b049815f533">◆ </a></span>GetDepot()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetDepot </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the variable index of the first starting or ending node of all routes. </p>
|
|
<p>If all routes start and end at the same node (single depot), this is the node returned. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae9de37fba84b76353809819903940473"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae9de37fba84b76353809819903940473">◆ </a></span>GetDimensionOrDie()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>& GetDimensionOrDie </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>dimension_name</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns a dimension from its name. Dies if the dimension does not exist. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a635aac580cbeb4bcde72c9464f33ac06"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a635aac580cbeb4bcde72c9464f33ac06">◆ </a></span>GetDimensions()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<<a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>*>& GetDimensions </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns all dimensions of the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00514">514</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8a1c183bafee7baf41b816776e8e76c8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8a1c183bafee7baf41b816776e8e76c8">◆ </a></span>GetDimensionsWithSoftOrSpanCosts()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector<<a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>*> GetDimensionsWithSoftOrSpanCosts </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns dimensions with soft or vehicle span costs. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ade8949a8e9cb9408dc427fb0904191e2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ade8949a8e9cb9408dc427fb0904191e2">◆ </a></span>GetDisjunctionIndices() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<int64>& GetDisjunctionIndices </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the variable indices of the nodes in the disjunction of index 'index'. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00602">602</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a89b2c610c22a3223f1cac10233d7992d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a89b2c610c22a3223f1cac10233d7992d">◆ </a></span>GetDisjunctionIndices() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<<a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a>>& GetDisjunctionIndices </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the indices of the disjunctions to which an index belongs. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00581">581</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1090dab71b48b49153d70b9e6c299c25"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1090dab71b48b49153d70b9e6c299c25">◆ </a></span>GetDisjunctionMaxCardinality()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetDisjunctionMaxCardinality </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the maximum number of possible active nodes of the node disjunction of index 'index'. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00613">613</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a276086c8aada62b6301aa44e4289347d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a276086c8aada62b6301aa44e4289347d">◆ </a></span>GetDisjunctionPenalty()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetDisjunctionPenalty </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the penalty of the node disjunction of index 'index'. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00608">608</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4bab641f5b9bf8de266adad29558b4c2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4bab641f5b9bf8de266adad29558b4c2">◆ </a></span>GetFixedCostOfVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetFixedCostOfVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the route fixed cost taken into account if the route of the vehicle is not empty, aka there's at least one node on the route other than the first and last nodes. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad74e0742282743e9a78680f0565015be"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad74e0742282743e9a78680f0565015be">◆ </a></span>GetGlobalDimensionCumulOptimizers()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<std::unique_ptr<<a class="el" href="classoperations__research_1_1GlobalDimensionCumulOptimizer.html">GlobalDimensionCumulOptimizer</a>> >& GetGlobalDimensionCumulOptimizers </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns [global|local]_dimension_optimizers_, which are empty if the model has not been closed. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00523">523</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a51fb0661acf38ed1442819e2cc452311"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a51fb0661acf38ed1442819e2cc452311">◆ </a></span>GetHardTypeIncompatibilitiesOfType()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const absl::flat_hash_set<int>& GetHardTypeIncompatibilitiesOfType </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>type</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns visit types incompatible with a given type. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa241abc19460575d250a5788f03afbf6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa241abc19460575d250a5788f03afbf6">◆ </a></span>GetHomogeneousCost()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetHomogeneousCost </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>from_index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>to_index</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the cost of the segment between two nodes supposing all vehicle costs are the same (returns the cost for the first vehicle otherwise). </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01120">1120</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a449a82a0294dae7de9310328274462dd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a449a82a0294dae7de9310328274462dd">◆ </a></span>GetLocalDimensionCumulOptimizers()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<std::unique_ptr<<a class="el" href="classoperations__research_1_1LocalDimensionCumulOptimizer.html">LocalDimensionCumulOptimizer</a>> >& GetLocalDimensionCumulOptimizers </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00527">527</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac9cd3df1f2e22dc88129e0d21e8b3673"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac9cd3df1f2e22dc88129e0d21e8b3673">◆ </a></span>GetMutableDimension()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a>* GetMutableDimension </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>dimension_name</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns a dimension from its name. </p>
|
|
<p>Returns nullptr if the dimension does not exist. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1acd42381917a2b8dd956f87657e7bf1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1acd42381917a2b8dd956f87657e7bf1">◆ </a></span>GetMutableGlobalCumulOptimizer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1GlobalDimensionCumulOptimizer.html">GlobalDimensionCumulOptimizer</a>* GetMutableGlobalCumulOptimizer </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> & </td>
|
|
<td class="paramname"><em>dimension</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the global/local dimension cumul optimizer for a given dimension, or nullptr if there is none. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a50f66c7639c3aa15eff6222a53b2bf7e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a50f66c7639c3aa15eff6222a53b2bf7e">◆ </a></span>GetMutableLocalCumulOptimizer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1LocalDimensionCumulOptimizer.html">LocalDimensionCumulOptimizer</a>* GetMutableLocalCumulOptimizer </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> & </td>
|
|
<td class="paramname"><em>dimension</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="abaa74f74aefe075aedb6b16259a4404e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#abaa74f74aefe075aedb6b16259a4404e">◆ </a></span>GetNonZeroCostClassesCount()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int GetNonZeroCostClassesCount </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Ditto, minus the 'always zero', built-in cost class. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01151">1151</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a04bd106a61d493872cabb0f41f7f118f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a04bd106a61d493872cabb0f41f7f118f">◆ </a></span>GetNumberOfDecisionsInFirstSolution()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetNumberOfDecisionsInFirstSolution </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const RoutingSearchParameters & </td>
|
|
<td class="paramname"><em>search_parameters</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns statistics on first solution search, number of decisions sent to filters, number of decisions rejected by filters. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa9ed1612ddad261cf7e75643534d0aa0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa9ed1612ddad261cf7e75643534d0aa0">◆ </a></span>GetNumberOfDisjunctions()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int GetNumberOfDisjunctions </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the number of node disjunctions in the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00617">617</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aefff345740a5db07caea065ec14ec52f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aefff345740a5db07caea065ec14ec52f">◆ </a></span>GetNumberOfRejectsInFirstSolution()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 GetNumberOfRejectsInFirstSolution </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const RoutingSearchParameters & </td>
|
|
<td class="paramname"><em>search_parameters</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a24478803a7138d68852093b9c2743892"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a24478803a7138d68852093b9c2743892">◆ </a></span>GetNumberOfVisitTypes()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int GetNumberOfVisitTypes </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00727">727</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad62f14646fa4da5b6836a2ae505706d2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad62f14646fa4da5b6836a2ae505706d2">◆ </a></span>GetNumOfSingletonNodes()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int GetNumOfSingletonNodes </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the number of non-start/end nodes which do not appear in a pickup/delivery pair. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2f2eefe908c94f201c23a549797986e4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2f2eefe908c94f201c23a549797986e4">◆ </a></span>GetPerfectBinaryDisjunctions()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector<std::pair<int64, int64> > GetPerfectBinaryDisjunctions </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the list of all perfect binary disjunctions, as pairs of variable indices: a disjunction is "perfect" when its variables do not appear in any other disjunction. </p>
|
|
<p>Each pair is sorted (lowest variable index first), and the output vector is also sorted (lowest pairs first). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a075c26c8a078b9c0f1a4f2be00f1f795"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a075c26c8a078b9c0f1a4f2be00f1f795">◆ </a></span>GetPickupAndDeliveryDisjunctions()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<std::pair<<a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a>, <a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a>> >& GetPickupAndDeliveryDisjunctions </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00700">700</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9e42e15bdb23d63ae78137b97a4882de"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9e42e15bdb23d63ae78137b97a4882de">◆ </a></span>GetPickupAndDeliveryPairs()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1RoutingModel.html#a76874cd778ea1b9220673e019f9e7abe">IndexPairs</a>& GetPickupAndDeliveryPairs </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns pickup and delivery pairs currently in the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00696">696</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae0eaa0df826e18882df940962dc4ac27"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae0eaa0df826e18882df940962dc4ac27">◆ </a></span>GetPickupAndDeliveryPolicyOfVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> GetPickupAndDeliveryPolicyOfVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a62632c12610d494b7da27e49183922eb"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a62632c12610d494b7da27e49183922eb">◆ </a></span>GetPickupIndexPairs()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<std::pair<int, int> >& GetPickupIndexPairs </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>node_index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns pairs for which the node is a pickup; the first element of each pair is the index in the pickup and delivery pairs list in which the pickup appears, the second element is its index in the pickups list. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a08f0e7114d9118eafc2b3e3f96878014"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a08f0e7114d9118eafc2b3e3f96878014">◆ </a></span>GetPrimaryConstrainedDimension()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::string& GetPrimaryConstrainedDimension </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the primary constrained dimension, or an empty std::string if it is unset. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00558">558</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0f8c7a97b5465ae4ba4cb1a92c39b756"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0f8c7a97b5465ae4ba4cb1a92c39b756">◆ </a></span>GetSameVehicleIndicesOfIndex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<int>& GetSameVehicleIndicesOfIndex </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>node</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns variable indices of nodes constrained to be on the same route. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01161">1161</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae350d70cb713a6772283e3753f4f2f7a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae350d70cb713a6772283e3753f4f2f7a">◆ </a></span>GetSameVehicleRequiredTypeAlternativesOfType()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<absl::flat_hash_set<int> >& GetSameVehicleRequiredTypeAlternativesOfType </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>type</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the sets of same-vehicle/temporal requirement alternatives for the given type. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab1652af55e9d83490d9c59d35d991ce9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab1652af55e9d83490d9c59d35d991ce9">◆ </a></span>GetTemporalRequiredTypeAlternativesOfType()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<absl::flat_hash_set<int> >& GetTemporalRequiredTypeAlternativesOfType </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>type</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9d8ead500db4128d0d27f8066d1f8208"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9d8ead500db4128d0d27f8066d1f8208">◆ </a></span>GetTemporalTypeIncompatibilitiesOfType()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const absl::flat_hash_set<int>& GetTemporalTypeIncompatibilitiesOfType </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>type</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a34ab0d5fa45360b5e6a42b9a78cfe5a8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a34ab0d5fa45360b5e6a42b9a78cfe5a8">◆ </a></span>GetVehicleClassesCount()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int GetVehicleClassesCount </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the number of different vehicle classes in the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01159">1159</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7a8e134df97e40d1fc498f7f985c33ec"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7a8e134df97e40d1fc498f7f985c33ec">◆ </a></span>GetVehicleClassIndexOfVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1RoutingModel.html#ab6aae3927f3537c446ac33f2c6ecb922">VehicleClassIndex</a> GetVehicleClassIndexOfVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>vehicle</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01154">1154</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a95886cce213f51091399427b4728a6b2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a95886cce213f51091399427b4728a6b2">◆ </a></span>GetVisitType()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int GetVisitType </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aea90b377b2cc45917a08d519be784009"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aea90b377b2cc45917a08d519be784009">◆ </a></span>HasDimension()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool HasDimension </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>dimension_name</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true if a dimension exists for a given dimension name. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9c58894df747f5498c335a3a8c5c0c88"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9c58894df747f5498c335a3a8c5c0c88">◆ </a></span>HasHardTypeIncompatibilities()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool HasHardTypeIncompatibilities </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true iff any hard (resp. </p>
|
|
<p>temporal) type incompatibilities have been added to the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00741">741</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="abc101a64a3c876dcdf1b7176d59bd2c9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#abc101a64a3c876dcdf1b7176d59bd2c9">◆ </a></span>HasSameVehicleTypeRequirements()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool HasSameVehicleTypeRequirements </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true iff any same-route (resp. </p>
|
|
<p>temporal) type requirements have been added to the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00774">774</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad19492313b68e5a963af3793aaec8d90"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad19492313b68e5a963af3793aaec8d90">◆ </a></span>HasTemporalTypeIncompatibilities()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool HasTemporalTypeIncompatibilities </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00744">744</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5e3f4c6871f7b2c67fd5b1ad6c94d891"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5e3f4c6871f7b2c67fd5b1ad6c94d891">◆ </a></span>HasTemporalTypeRequirements()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool HasTemporalTypeRequirements </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00777">777</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab313d84a56c5e9b1b8f28da70b8d4045"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab313d84a56c5e9b1b8f28da70b8d4045">◆ </a></span>HasTypeRegulations()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool HasTypeRegulations </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true iff the model has any incompatibilities or requirements set on node types. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00783">783</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a67e8d10adbcc563f428069f9b2c04b63"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a67e8d10adbcc563f428069f9b2c04b63">◆ </a></span>HasVehicleWithCostClassIndex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool HasVehicleWithCostClassIndex </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#ad13ad202092298b43c9099b212c54d3d">CostClassIndex</a> </td>
|
|
<td class="paramname"><em>cost_class_index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true iff the model contains a vehicle with the given cost_class_index. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01141">1141</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8b9a513f402e84f4c71436cf430f248a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8b9a513f402e84f4c71436cf430f248a">◆ </a></span>IgnoreDisjunctionsAlreadyForcedToZero()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void IgnoreDisjunctionsAlreadyForcedToZero </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>SPECIAL: Makes the solver ignore all the disjunctions whose active variables are all trivially zero (i.e. </p>
|
|
<p>Max() == 0), by setting their max_cardinality to 0. This can be useful when using the BaseBinaryDisjunctionNeighborhood operators, in the context of arc-based routing. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae2530e17cabaf267e12929ca0ee1bee0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae2530e17cabaf267e12929ca0ee1bee0">◆ </a></span>IsEnd()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool IsEnd </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true if 'index' represents the last node of a route. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01075">1075</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac8347e84488d1b5eb7b5e6972fb32be3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac8347e84488d1b5eb7b5e6972fb32be3">◆ </a></span>IsMatchingModel()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool IsMatchingModel </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true if a vehicle/node matching problem is detected. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae1adbc353c105572655ae866124c61b6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae1adbc353c105572655ae866124c61b6">◆ </a></span>IsStart()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool IsStart </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true if 'index' represents the first node of a route. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a43c49fc1660ae71cdb30ae93bcac80d7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a43c49fc1660ae71cdb30ae93bcac80d7">◆ </a></span>IsVehicleAllowedForIndex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool IsVehicleAllowedForIndex </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true if a vehicle is allowed to visit a given node. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00644">644</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aedb8dca94b15e5465fef1667d1a81db6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aedb8dca94b15e5465fef1667d1a81db6">◆ </a></span>IsVehicleUsed()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool IsVehicleUsed </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> & </td>
|
|
<td class="paramname"><em>assignment</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns true if the route of 'vehicle' is non empty in 'assignment'. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa1c45751ee316e0948ba32494262f006"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa1c45751ee316e0948ba32494262f006">◆ </a></span>MakeGreedyDescentLSOperator()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static std::unique_ptr<<a class="el" href="classoperations__research_1_1LocalSearchOperator.html">LocalSearchOperator</a>> MakeGreedyDescentLSOperator </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::vector< <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * > </td>
|
|
<td class="paramname"><em>variables</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Perhaps move it to <a class="el" href="constraint__solver_8h.html">constraint_solver.h</a>. </p>
|
|
<p>MakeGreedyDescentLSOperator creates a local search operator that tries to improve the initial assignment by moving a logarithmically decreasing step away in each possible dimension. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a20d0a3f5cec2e425c86f358e5f06b4a8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a20d0a3f5cec2e425c86f358e5f06b4a8">◆ </a></span>MakeGuidedSlackFinalizer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1DecisionBuilder.html">DecisionBuilder</a>* MakeGuidedSlackFinalizer </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * </td>
|
|
<td class="paramname"><em>dimension</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::function< int64(int64)> </td>
|
|
<td class="paramname"><em>initializer</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The next few members are in the public section only for testing purposes. </p>
|
|
<p>MakeGuidedSlackFinalizer creates a <a class="el" href="classoperations__research_1_1DecisionBuilder.html" title="A DecisionBuilder is responsible for creating the search tree.">DecisionBuilder</a> for the slacks of a dimension using a callback to choose which values to start with. The finalizer works only when all next variables in the model have been fixed. It has the following two characteristics:</p><ol type="1">
|
|
<li>It follows the routes defined by the nexts variables when choosing a variable to make a decision on.</li>
|
|
<li>When it comes to choose a value for the slack of node i, the decision builder first calls the callback with argument i, and supposingly the returned value is x it creates decisions slack[i] = x, slack[i] = x + 1, slack[i] = x - 1, slack[i] = x + 2, etc. </li>
|
|
</ol>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac041507427102f15800b00ece1f7b2c8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac041507427102f15800b00ece1f7b2c8">◆ </a></span>MakePathSpansAndTotalSlacks()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1Constraint.html">Constraint</a>* MakePathSpansAndTotalSlacks </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * </td>
|
|
<td class="paramname"><em>dimension</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * > </td>
|
|
<td class="paramname"><em>spans</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< <a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a> * > </td>
|
|
<td class="paramname"><em>total_slacks</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>For every vehicle of the routing model: </p>
|
|
<ul>
|
|
<li>if total_slacks[vehicle] is not nullptr, constrains it to be the sum of slacks on that vehicle, that is, dimension->CumulVar(end) - dimension->CumulVar(start) - sum_{node in path of vehicle} dimension->FixedTransitVar(node).</li>
|
|
<li>if spans[vehicle] is not nullptr, constrains it to be dimension->CumulVar(end) - dimension->CumulVar(start) This does stronger propagation than a decomposition, and takes breaks into account. </li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a56c3abe7b321f4caf06a0a5e72586cac"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a56c3abe7b321f4caf06a0a5e72586cac">◆ </a></span>MakeSelfDependentDimensionFinalizer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1DecisionBuilder.html">DecisionBuilder</a>* MakeSelfDependentDimensionFinalizer </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingDimension.html">RoutingDimension</a> * </td>
|
|
<td class="paramname"><em>dimension</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p><b>SWIG</b> </p>
|
|
<p>MakeSelfDependentDimensionFinalizer is a finalizer for the slacks of a self-dependent dimension. It makes an extensive use of the caches of the state dependent transits. In detail, MakeSelfDependentDimensionFinalizer returns a composition of a local search decision builder with a greedy descent operator for the cumul of the start of each route and a guided slack finalizer. Provided there are no time windows and the maximum slacks are large enough, once the cumul of the start of route is fixed, the guided finalizer can find optimal values of the slacks for the rest of the route in time proportional to the length of the route. Therefore the composed finalizer generally works in time O(log(t)*n*m), where t is the latest possible departute time, n is the number of nodes in the network and m is the number of vehicles. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4140d4b0c6b75f277f5aefd1768d2fd9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4140d4b0c6b75f277f5aefd1768d2fd9">◆ </a></span>MakeStateDependentTransit()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html">RoutingModel::StateDependentTransit</a> MakeStateDependentTransit </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::function< int64(int64)> & </td>
|
|
<td class="paramname"><em>f</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>domain_start</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>domain_end</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a cached <a class="el" href="structoperations__research_1_1RoutingModel_1_1StateDependentTransit.html" title="What follows is relevant for models with time/state dependent transits.">StateDependentTransit</a> from an std::function. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3af1158b77552d60afc3f0473de3892d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3af1158b77552d60afc3f0473de3892d">◆ </a></span>MutablePreAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* MutablePreAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00965">965</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a46a69d9769aa92122c7e5e20f49e3da3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a46a69d9769aa92122c7e5e20f49e3da3">◆ </a></span>Next()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 Next </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> & </td>
|
|
<td class="paramname"><em>assignment</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p><a class="el" href="classoperations__research_1_1Assignment.html" title="An Assignment is a variable -> domains mapping, used to report solutions to the user.">Assignment</a> inspection Returns the variable index of the node directly after the node corresponding to 'index' in 'assignment'. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aad154b31953d2b467bbac3e4ac696cd6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aad154b31953d2b467bbac3e4ac696cd6">◆ </a></span>Nexts()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<<a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>*>& Nexts </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns all next variables of the model, such that Nexts(i) is the next variable of the node corresponding to i. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01089">1089</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a66fb44c05f9875685e9c332fbdfb643b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a66fb44c05f9875685e9c332fbdfb643b">◆ </a></span>NextVar()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>* NextVar </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>!defined(SWIGPYTHON) </p>
|
|
<p>Returns the next variable of the node corresponding to index. Note that NextVar(index) == index is equivalent to ActiveVar(index) == 0. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01096">1096</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0f38add802397fef1f57b7d90ccd5aef"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0f38add802397fef1f57b7d90ccd5aef">◆ </a></span>nodes()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int nodes </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sizes and indices Returns the number of nodes in the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01210">1210</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5cc6e6b421a6dfc8650cc38e116fff03"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5cc6e6b421a6dfc8650cc38e116fff03">◆ </a></span>PackCumulsOfOptimizerDimensionsFromAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* PackCumulsOfOptimizerDimensionsFromAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td>
|
|
<td class="paramname"><em>original_assignment</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">absl::Duration </td>
|
|
<td class="paramname"><em>duration_limit</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>For every dimension in the model with an optimizer in local/global_dimension_optimizers_, this method tries to pack the cumul values of the dimension, such that: </p>
|
|
<ul>
|
|
<li>The cumul costs (span costs, soft lower and upper bound costs, etc) are minimized.</li>
|
|
<li>The cumuls of the ends of the routes are minimized for this given minimal cumul cost.</li>
|
|
<li>Given these minimal end cumuls, the route start cumuls are maximized. Returns the assignment resulting from allocating these packed cumuls with the solver, and nullptr if these cumuls could not be set by the solver. </li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae033bc458ffce1ecc4874f3e212896f7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae033bc458ffce1ecc4874f3e212896f7">◆ </a></span>PreAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* const PreAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns an assignment used to fix some of the variables of the problem. </p>
|
|
<p>In practice, this assignment locks partial routes of the problem. This can be used in the context of locking the parts of the routes which have already been driven in online routing problems. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00964">964</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a74e3de2ce73322e1860be0713c07c33e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a74e3de2ce73322e1860be0713c07c33e">◆ </a></span>ReadAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* ReadAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>file_name</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Reads an assignment from a file and returns the current solution. </p>
|
|
<p>Returns nullptr if the file cannot be opened or if the assignment is not valid. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a97dca877bb5083a72c147628a8439770"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a97dca877bb5083a72c147628a8439770">◆ </a></span>ReadAssignmentFromRoutes()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* ReadAssignmentFromRoutes </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< std::vector< int64 >> & </td>
|
|
<td class="paramname"><em>routes</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>ignore_inactive_indices</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Restores the routes as the current solution. </p>
|
|
<p>Returns nullptr if the solution cannot be restored (routes do not contain a valid solution). Note that calling this method will run the solver to assign values to the dimension variables; this may take considerable amount of time, especially when using dimensions with slack. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa540a1068aef75c041330a2eafccd623"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa540a1068aef75c041330a2eafccd623">◆ </a></span>RegisterPositiveTransitCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int RegisterPositiveTransitCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a> </td>
|
|
<td class="paramname"><em>callback</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7dd3d77b26ddfc5e981637ee8b83c1ed"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7dd3d77b26ddfc5e981637ee8b83c1ed">◆ </a></span>RegisterPositiveUnaryTransitCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int RegisterPositiveUnaryTransitCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a> </td>
|
|
<td class="paramname"><em>callback</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a422ce2898045c53fc90d21d8633d4af7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a422ce2898045c53fc90d21d8633d4af7">◆ </a></span>RegisterStateDependentTransitCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int RegisterStateDependentTransitCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">VariableIndexEvaluator2</a> </td>
|
|
<td class="paramname"><em>callback</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8c58bbbfc090a581f02d76fabf465b3e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8c58bbbfc090a581f02d76fabf465b3e">◆ </a></span>RegisterTransitCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int RegisterTransitCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a> </td>
|
|
<td class="paramname"><em>callback</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="acbab635c68d8a6e0961afae0f606590b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#acbab635c68d8a6e0961afae0f606590b">◆ </a></span>RegisterUnaryTransitCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int RegisterUnaryTransitCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a> </td>
|
|
<td class="paramname"><em>callback</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Registers 'callback' and returns its index. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="adb0524e488894fa8f88764c74abb31f5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adb0524e488894fa8f88764c74abb31f5">◆ </a></span>RemainingTime()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">absl::Duration RemainingTime </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the time left in the search limit. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01203">1203</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a566ddf59563c1b37e8c178b1805aa0f4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a566ddf59563c1b37e8c178b1805aa0f4">◆ </a></span>RestoreAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* RestoreAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> & </td>
|
|
<td class="paramname"><em>solution</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Restores an assignment as a solution in the routing model and returns the new solution. </p>
|
|
<p>Returns nullptr if the assignment is not valid. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a78f7f1cb8b08b7ec1d477a14447bd8d4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a78f7f1cb8b08b7ec1d477a14447bd8d4">◆ </a></span>RoutesToAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool RoutesToAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< std::vector< int64 >> & </td>
|
|
<td class="paramname"><em>routes</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>ignore_inactive_indices</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>close_routes</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> *const </td>
|
|
<td class="paramname"><em>assignment</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Fills an assignment from a specification of the routes of the vehicles. </p>
|
|
<p>The routes are specified as lists of variable indices that appear on the routes of the vehicles. The indices of the outer vector in 'routes' correspond to vehicles IDs, the inner vector contains the variable indices on the routes for the given vehicle. The inner vectors must not contain the start and end indices, as these are determined by the routing model. Sets the value of NextVars in the assignment, adding the variables to the assignment if necessary. The method does not touch other variables in the assignment. The method can only be called after the model is closed. With ignore_inactive_indices set to false, this method will fail (return nullptr) in case some of the route contain indices that are deactivated in the model; when set to true, these indices will be skipped. Returns true if routes were successfully loaded. However, such assignment still might not be a valid solution to the routing problem due to more complex constraints; it is advisible to call <a class="el" href="classoperations__research_1_1RoutingModel.html#a5f32c22c620c811754ba7b6f977db864" title="Returns the underlying constraint solver.">solver()</a>->CheckSolution() afterwards. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="afdd0e9e72af498399358bd22c591ae5c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#afdd0e9e72af498399358bd22c591ae5c">◆ </a></span>SetAllowedVehiclesForIndex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetAllowedVehiclesForIndex </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::vector< int > & </td>
|
|
<td class="paramname"><em>vehicles</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the vehicles which can visit a given node. </p>
|
|
<p>If the node is in a disjunction, this will not prevent it from being unperformed. Specifying an empty vector of vehicles has no effect (all vehicles will be allowed to visit the node). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aba87f36c7b4e0bdd5e4e8e334b3e27fa"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aba87f36c7b4e0bdd5e4e8e334b3e27fa">◆ </a></span>SetAmortizedCostFactorsOfAllVehicles()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetAmortizedCostFactorsOfAllVehicles </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>linear_cost_factor</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>quadratic_cost_factor</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The following methods set the linear and quadratic cost factors of vehicles (must be positive values). </p>
|
|
<p>The default value of these parameters is zero for all vehicles.</p>
|
|
<p>When set, the cost_ of the model will contain terms aiming at reducing the number of vehicles used in the model, by adding the following to the objective for every vehicle v: INDICATOR(v used in the model) * [linear_cost_factor_of_vehicle_[v]</p><ul>
|
|
<li>quadratic_cost_factor_of_vehicle_[v]*(square of length of route v)] i.e. for every used vehicle, we add the linear factor as fixed cost, and subtract the square of the route length multiplied by the quadratic factor. This second term aims at making the routes as dense as possible.</li>
|
|
</ul>
|
|
<p>Sets the linear and quadratic cost factor of all vehicles. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae1acdfe3dcf892d108d2a2ecab94e936"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae1acdfe3dcf892d108d2a2ecab94e936">◆ </a></span>SetAmortizedCostFactorsOfVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetAmortizedCostFactorsOfVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>linear_cost_factor</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>quadratic_cost_factor</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the linear and quadratic cost factor of the given vehicle. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab8d61705aa4291d2cd437ba0a7dfccbf"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab8d61705aa4291d2cd437ba0a7dfccbf">◆ </a></span>SetArcCostEvaluatorOfAllVehicles()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetArcCostEvaluatorOfAllVehicles </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>evaluator_index</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the cost function of the model such that the cost of a segment of a route between node 'from' and 'to' is evaluator(from, to), whatever the route or vehicle performing the route. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae75d9f49c157b7784fc8baa7d623ee35"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae75d9f49c157b7784fc8baa7d623ee35">◆ </a></span>SetArcCostEvaluatorOfVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetArcCostEvaluatorOfVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>evaluator_index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the cost function for a given vehicle route. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac1a2ab630f6b13644ca6853c7893f413"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac1a2ab630f6b13644ca6853c7893f413">◆ </a></span>SetAssignmentFromOtherModelAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetAssignmentFromOtherModelAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td>
|
|
<td class="paramname"><em>target_assignment</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1RoutingModel.html">RoutingModel</a> * </td>
|
|
<td class="paramname"><em>source_model</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td>
|
|
<td class="paramname"><em>source_assignment</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Given a "source_model" and its "source_assignment", resets "target_assignment" with the <a class="el" href="classoperations__research_1_1IntVar.html" title="The class IntVar is a subset of IntExpr.">IntVar</a> variables (nexts_, and vehicle_vars_ if costs aren't homogeneous across vehicles) of "this" model, with the values set according to those in "other_assignment". </p>
|
|
<p>The objective_element of target_assignment is set to this->cost_. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab69145472d51d341f82d3ad29e9c6be2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab69145472d51d341f82d3ad29e9c6be2">◆ </a></span>SetFirstSolutionEvaluator()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetFirstSolutionEvaluator </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1Solver.html#abb24034fec2804ac3c0172f043087321">Solver::IndexEvaluator2</a> </td>
|
|
<td class="paramname"><em>evaluator</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Takes ownership of evaluator. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00866">866</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a07b796e9f91ee5b4c5e99c7f23e2f743"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a07b796e9f91ee5b4c5e99c7f23e2f743">◆ </a></span>SetFixedCostOfAllVehicles()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetFixedCostOfAllVehicles </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>cost</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the fixed cost of all vehicle routes. </p>
|
|
<p>It is equivalent to calling SetFixedCostOfVehicle on all vehicle routes. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a4e8f5b5f090cf084347eda6eb803813a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a4e8f5b5f090cf084347eda6eb803813a">◆ </a></span>SetFixedCostOfVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetFixedCostOfVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>cost</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the fixed cost of one vehicle route. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3656e594d89a44fb6b35ba8f2d395624"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3656e594d89a44fb6b35ba8f2d395624">◆ </a></span>SetPickupAndDeliveryPolicyOfAllVehicles()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetPickupAndDeliveryPolicyOfAllVehicles </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> </td>
|
|
<td class="paramname"><em>policy</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the Pickup and delivery policy of all vehicles. </p>
|
|
<p>It is equivalent to calling SetPickupAndDeliveryPolicyOfVehicle on all vehicles. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8bd5bf6b0d1d0c1c5e2470c5f4882a62"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8bd5bf6b0d1d0c1c5e2470c5f4882a62">◆ </a></span>SetPickupAndDeliveryPolicyOfVehicle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetPickupAndDeliveryPolicyOfVehicle </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#aa5cff2ee7fbe3a9c5c701bfba7460c83">PickupAndDeliveryPolicy</a> </td>
|
|
<td class="paramname"><em>policy</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="abfa1b833413dee47ab0aa06d8f625fd2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#abfa1b833413dee47ab0aa06d8f625fd2">◆ </a></span>SetPrimaryConstrainedDimension()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetPrimaryConstrainedDimension </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>dimension_name</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set the given dimension as "primary constrained". </p>
|
|
<p>As of August 2013, this is only used by <a class="el" href="classoperations__research_1_1RoutingModel.html#a1048b3f7ef92f0d7747f93c8586ea1cc" title="Returns whether the arc from->to1 is more constrained than from->to2, taking into account,...">ArcIsMoreConstrainedThanArc()</a>. "dimension" must be the name of an existing dimension, or be empty, in which case there will not be a primary dimension after this call. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00552">552</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a700982f228080c6278eb5a2f7f06f31d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a700982f228080c6278eb5a2f7f06f31d">◆ </a></span>SetSweepArranger()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetSweepArranger </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1SweepArranger.html">SweepArranger</a> * </td>
|
|
<td class="paramname"><em>sweep_arranger</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01048">1048</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7e2d405cde11bc4a08d752d0e669912c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7e2d405cde11bc4a08d752d0e669912c">◆ </a></span>SetTabuVarsCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetTabuVarsCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classoperations__research_1_1RoutingModel.html#a0e106a97f0156868f1d1c741b283793e">GetTabuVarsCallback</a> </td>
|
|
<td class="paramname"><em>tabu_var_callback</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a572a1aeecbbd82737b62b88a6450a1c5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a572a1aeecbbd82737b62b88a6450a1c5">◆ </a></span>SetVisitType()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void SetVisitType </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>type</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set the node visit types and incompatibilities/requirements between the types (see below). </p>
|
|
<p>NOTE: The visit type of a node must be positive, and all nodes belonging to the same pickup/delivery pair must have the same type (or no type at all).</p>
|
|
<p>NOTE: Before adding any incompatibilities and/or requirements on types: 1) All corresponding node types must have been set. 2) <a class="el" href="classoperations__research_1_1RoutingModel.html#a822458cc9a9a6fa02e86af3e3a1e5c89" title="This function should be called once all node visit types have been set and prior to adding any incomp...">CloseVisitTypes()</a> must be called so all containers are resized accordingly.</p>
|
|
<p>NOTE: These incompatibilities and requirements are only handled when each node index appears in at most one pickup/delivery pair, i.e. when the same node isn't a pickup and/or delivery in multiple pickup/delivery pairs. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a354dd8c252cf59b748602b342db6019d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a354dd8c252cf59b748602b342db6019d">◆ </a></span>Size()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 Size </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the number of next variables in the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01214">1214</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a562e4c0a80f7f4eda9573a482af288d1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a562e4c0a80f7f4eda9573a482af288d1">◆ </a></span>Solve()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* Solve </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td>
|
|
<td class="paramname"><em>assignment</em> = <code>nullptr</code></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Solves the current routing model; closes the current model. </p>
|
|
<p>This is equivalent to calling SolveWithParameters(DefaultRoutingSearchParameters()) or SolveFromAssignmentWithParameters(assignment, <a class="el" href="namespaceoperations__research.html#adcac4a11f1e4d36ceb47f7251461487d">DefaultRoutingSearchParameters()</a>). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a56e06d63a6d3792ab5cd64e51724632b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a56e06d63a6d3792ab5cd64e51724632b">◆ </a></span>SolveFromAssignmentWithParameters()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* SolveFromAssignmentWithParameters </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * </td>
|
|
<td class="paramname"><em>assignment</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const RoutingSearchParameters & </td>
|
|
<td class="paramname"><em>search_parameters</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * > * </td>
|
|
<td class="paramname"><em>solutions</em> = <code>nullptr</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5f32c22c620c811754ba7b6f977db864"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5f32c22c620c811754ba7b6f977db864">◆ </a></span>solver()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1Solver.html">Solver</a>* solver </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the underlying constraint solver. </p>
|
|
<p>Can be used to add extra constraints and/or modify search algoithms. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01194">1194</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="af4e97be54c31d45d312d168ce1c8ba6f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#af4e97be54c31d45d312d168ce1c8ba6f">◆ </a></span>SolveWithParameters()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a>* SolveWithParameters </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const RoutingSearchParameters & </td>
|
|
<td class="paramname"><em>search_parameters</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< const <a class="el" href="classoperations__research_1_1Assignment.html">Assignment</a> * > * </td>
|
|
<td class="paramname"><em>solutions</em> = <code>nullptr</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Solves the current routing model with the given parameters. </p>
|
|
<p>If 'solutions' is specified, it will contain the k best solutions found during the search (from worst to best, including the one returned by this method), where k corresponds to the 'number_of_solutions_to_collect' in 'search_parameters'. Note that the <a class="el" href="classoperations__research_1_1Assignment.html" title="An Assignment is a variable -> domains mapping, used to report solutions to the user.">Assignment</a> returned by the method and the ones in solutions are owned by the underlying solver and should not be deleted. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="acbdbdfc9491ef0586459d38cc5ef4cb8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#acbdbdfc9491ef0586459d38cc5ef4cb8">◆ </a></span>Start()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 Start </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Model inspection. </p>
|
|
<p>Returns the variable index of the starting node of a vehicle route. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01069">1069</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac0772bdc4f47e45edccd5a5c25154993"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac0772bdc4f47e45edccd5a5c25154993">◆ </a></span>StateDependentTransitCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1RoutingModel.html#a6719229c28ba88ce65968989bb85616b">VariableIndexEvaluator2</a>& StateDependentTransitCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>callback_index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00383">383</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="adb1490a44086db009cdb51f854a02a65"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adb1490a44086db009cdb51f854a02a65">◆ </a></span>status()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1RoutingModel.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> status </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the current status of the routing model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00940">940</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a71815ec83f6605bddb11578ebb835aae"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a71815ec83f6605bddb11578ebb835aae">◆ </a></span>sweep_arranger()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1SweepArranger.html">SweepArranger</a>* sweep_arranger </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the sweep arranger to be used by routing heuristics. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01052">1052</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad558398f8c75f81d879f74d18ba5e7c3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad558398f8c75f81d879f74d18ba5e7c3">◆ </a></span>TransitCallback()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1RoutingModel.html#a5fa8aee5b0c67072dbbb03f1899ec60a">TransitCallback2</a>& TransitCallback </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>callback_index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00375">375</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a44afcc03d5cb68c01acefa253de9edcf"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a44afcc03d5cb68c01acefa253de9edcf">◆ </a></span>UnaryTransitCallbackOrNull()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1RoutingModel.html#a204041e5264282d54dfd198011e776d3">TransitCallback1</a>& UnaryTransitCallbackOrNull </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>callback_index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00379">379</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a3600327c657a0c83430d7bd9566e9ab6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a3600327c657a0c83430d7bd9566e9ab6">◆ </a></span>UnperformedPenalty()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 UnperformedPenalty </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>var_index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the "unperformed" penalty of a node. </p>
|
|
<p>This is only well defined if the node is only part of a single Disjunction involving only itself, and that disjunction has a penalty. In all other cases, including forced active nodes, this returns 0. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae8364b53d49a5b46e994d41124c4ffd6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae8364b53d49a5b46e994d41124c4ffd6">◆ </a></span>UnperformedPenaltyOrValue()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int64 UnperformedPenaltyOrValue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>default_value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>var_index</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Same as above except that it returns default_value instead of 0 when penalty is not well defined (default value is passed as first argument to simplify the usage of the method in a callback). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7c2d33eef73401442fd9f2e205056c73"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7c2d33eef73401442fd9f2e205056c73">◆ </a></span>VehicleCostsConsideredVar()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>* VehicleCostsConsideredVar </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>vehicle</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the variable specifying whether or not costs are considered for vehicle. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01101">1101</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="abd33c037942b971eeefad43c6022c20e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#abd33c037942b971eeefad43c6022c20e">◆ </a></span>VehicleIndex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int VehicleIndex </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the vehicle of the given start/end index, and -1 if the given index is not a vehicle start/end. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01078">1078</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa9e7ba89833775f29889744fe9480d29"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa9e7ba89833775f29889744fe9480d29">◆ </a></span>vehicles()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int vehicles </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the number of vehicle routes in the model. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01212">1212</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8cded3d3d6746c179a8ec0eddad24342"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8cded3d3d6746c179a8ec0eddad24342">◆ </a></span>VehicleVar()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>* VehicleVar </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int64 </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the vehicle variable of the node corresponding to index. </p>
|
|
<p>Note that VehicleVar(index) == -1 is equivalent to ActiveVar(index) == 0. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01106">1106</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a80572a238b48c2cefe38409e7544f161"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a80572a238b48c2cefe38409e7544f161">◆ </a></span>VehicleVars()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::vector<<a class="el" href="classoperations__research_1_1IntVar.html">IntVar</a>*>& VehicleVars </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns all vehicle variables of the model, such that VehicleVars(i) is the vehicle variable of the node corresponding to i. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l01092">1092</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="acfcef421e8c8cd243157543f741d6a73"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#acfcef421e8c8cd243157543f741d6a73">◆ </a></span>WriteAssignment()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool WriteAssignment </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>file_name</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Writes the current solution to a file containing an AssignmentProto. </p>
|
|
<p>Returns false if the file cannot be opened or if there is no current solution. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a id="adff4a61e79da6a3ea06ab2e9f3d431a8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adff4a61e79da6a3ea06ab2e9f3d431a8">◆ </a></span>kNoDimension</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1RoutingModel.html#a966f3010581e2a82e0b1e550667d8bce">DimensionIndex</a> kNoDimension</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Constant used to express the "no dimension" index, returned when a dimension name does not correspond to an actual dimension. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00359">359</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="af0a7f9f77f520184e88b73c571be73af"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#af0a7f9f77f520184e88b73c571be73af">◆ </a></span>kNoDisjunction</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classoperations__research_1_1RoutingModel.html#afa7cbbd4db2dd5d0bec3393efc9ebac1">DisjunctionIndex</a> kNoDisjunction</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Constant used to express the "no disjunction" index, returned when a node does not appear in any disjunction. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00355">355</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a89db28c1da47c5aef8a0aa380a1800ec"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a89db28c1da47c5aef8a0aa380a1800ec">◆ </a></span>kNoPenalty</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const int64 kNoPenalty</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Constant used to express a hard constraint instead of a soft penalty. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l00351">351</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="routing_8h_source.html">routing.h</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
</div>
|
|
</div>
|
|
<div id="footer-container">
|
|
<div id="footer">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|