Files
ortools-clone/docs/dotnet/SimpleRoutingProgram_8cs_source.html

86 lines
30 KiB
HTML
Raw Normal View History

<!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">
2019-08-12 09:16:03 -07:00
<span id="sfml">Google OR-Tools 7.3</span>
</div>
</div>
2019-08-07 18:01:08 -07:00
<div id="content" style="width: 100%; overflow: hidden;">
<div style="margin-left: 15px; margin-top: 5px; float: left; color: #145A32;">
2019-08-12 09:16:03 -07:00
<h2>DotNet Reference</h2>
2019-08-07 18:01:08 -07:00
<ul>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Sat.html">CP-SAT</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Graph.html">Graph</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Algorithms.html">Knapsack solver</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1LinearSolver.html">Linear solver</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1ConstraintSolver.html">Routing</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Util.html">Util</a></li>
</ul>
</div>
<div id="content">
2019-08-07 18:01:08 -07:00
<div align="center">
<h1 style="color: #145A32;">DotNet Reference</h1>
</div>
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_afbb39f66221aac28bbdefd1dca2b2b0.html">constraint_solver</a></li><li class="navelem"><a class="el" href="dir_973c70e94397cf6217a966850971a49d.html">samples</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">SimpleRoutingProgram.cs</div> </div>
</div><!--header-->
<div class="contents">
2019-08-07 18:01:08 -07:00
<a href="SimpleRoutingProgram_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2010-2018 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">// [START program]</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// [START import]</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">using</span> System;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">using</span> <a class="code" href="namespaceGoogle.html">Google</a>.<a class="code" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code" href="namespaceGoogle_1_1OrTools_1_1ConstraintSolver.html">ConstraintSolver</a>;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">// [END import]</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classSimpleRoutingProgram.html"> 23</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classSimpleRoutingProgram.html">SimpleRoutingProgram</a> {</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classSimpleRoutingProgram.html#a1f7e61855217a4f3ad075ae5cb5a7cff"> 24</a></span>&#160; <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classSimpleRoutingProgram.html#a1f7e61855217a4f3ad075ae5cb5a7cff">Main</a>(String[] args) {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="comment">// Instantiate the data problem.</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <span class="comment">// [START data]</span></div><div class="line"><a name="l00027"></a><span
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_a8c122a12ab9c69148b48ba6a532f3949"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a8c122a12ab9c69148b48ba6a532f3949">Google.OrTools.ConstraintSolver.RoutingModel.SolveWithParameters</a></div><div class="ttdeci">Assignment SolveWithParameters(Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)</div><div class="ttdef"><b>Definition:</b> <a href="RoutingModel_8cs_source.html#l00451">RoutingModel.cs:451</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_af53f116c307b4d40e8d848138f462cd6"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#af53f116c307b4d40e8d848138f462cd6">Google.OrTools.ConstraintSolver.RoutingModel.RegisterTransitCallback</a></div><div class="ttdeci">int RegisterTransitCallback(LongLongToLong callback)</div><div class="ttdef"><b>Definition:</b> <a href="RoutingModel_8cs_source.html#l00116">RoutingModel.cs:116</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingSearchParameters_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingSearchParameters.html">Google.OrTools.ConstraintSolver.RoutingSearchParameters</a></div><div class="ttdoc">Parameters defining the search used to solve vehicle routing problems.</div><div class="ttdef"><b>Definition:</b> <a href="RoutingParameters_8pb_8cs_source.html#l00122">RoutingParameters.pb.cs:122</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_a40e0be8dce11b438cbda16ea88ed0877"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a40e0be8dce11b438cbda16ea88ed0877">Google.OrTools.ConstraintSolver.RoutingModel.IsEnd</a></div><div class="ttdeci">bool IsEnd(long index)</div><div class="ttdef"><b>Definition:</b> <a href="RoutingModel_8cs_source.html#l00600">RoutingModel.cs:600</a></div></div>
<div class="ttc" id="namespaceGoogle_html"><div class="ttname"><a href="namespaceGoogle.html">Google</a></div><div class="ttdef"><b>Definition:</b> <a href="KInt64Vector_8cs_source.html#l00011">KInt64Vector.cs:11</a></div></div>
2019-08-07 18:01:08 -07:00
<div class="ttc" id="classSimpleRoutingProgram_html_a1f7e61855217a4f3ad075ae5cb5a7cff"><div class="ttname"><a href="classSimpleRoutingProgram.html#a1f7e61855217a4f3ad075ae5cb5a7cff">SimpleRoutingProgram.Main</a></div><div class="ttdeci">static void Main(String[] args)</div><div class="ttdef"><b>Definition:</b> <a href="SimpleRoutingProgram_8cs_source.html#l00024">SimpleRoutingProgram.cs:24</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1FirstSolutionStrategy_1_1Types_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1FirstSolutionStrategy_1_1Types.html">Google.OrTools.ConstraintSolver.FirstSolutionStrategy.Types</a></div><div class="ttdoc">Container for nested types declared in the FirstSolutionStrategy message type.</div><div class="ttdef"><b>Definition:</b> <a href="RoutingEnums_8pb_8cs_source.html#l00160">RoutingEnums.pb.cs:160</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingIndexManager_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingIndexManager.html">Google.OrTools.ConstraintSolver.RoutingIndexManager</a></div><div class="ttdef"><b>Definition:</b> <a href="RoutingIndexManager_8cs_source.html#l00018">RoutingIndexManager.cs:18</a></div></div>
2019-08-07 18:01:08 -07:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1Assignment_html_a06d957d435c5db9737b4ea534649479f"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1Assignment.html#a06d957d435c5db9737b4ea534649479f">Google.OrTools.ConstraintSolver.Assignment.ObjectiveValue</a></div><div class="ttdeci">long ObjectiveValue()</div><div class="ttdef"><b>Definition:</b> <a href="Assignment_8cs_source.html#l00114">Assignment.cs:114</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingIndexManager_html_a3b7151f00882c98fdb3caec6ae4b56d3"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingIndexManager.html#a3b7151f00882c98fdb3caec6ae4b56d3">Google.OrTools.ConstraintSolver.RoutingIndexManager.IndexToNode</a></div><div class="ttdeci">int IndexToNode(long index)</div><div class="ttdef"><b>Definition:</b> <a href="RoutingIndexManager_8cs_source.html#l00090">RoutingIndexManager.cs:90</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_a2275c363a48158ccbe060df62232d048"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a2275c363a48158ccbe060df62232d048">Google.OrTools.ConstraintSolver.RoutingModel.NextVar</a></div><div class="ttdeci">IntVar NextVar(long index)</div><div class="ttdef"><b>Definition:</b> <a href="RoutingModel_8cs_source.html#l00632">RoutingModel.cs:632</a></div></div>
<div class="ttc" id="namespaceGoogle_1_1OrTools_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools.html">Google.OrTools</a></div><div class="ttdef"><b>Definition:</b> <a href="KInt64Vector_8cs_source.html#l00011">KInt64Vector.cs:11</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1operations__research__constraint__solver_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1operations__research__constraint__solver.html">Google.OrTools.ConstraintSolver.operations_research_constraint_solver</a></div><div class="ttdef"><b>Definition:</b> <a href="operations__research__constraint__solver_8cs_source.html#l00013">operations_research_constraint_solver.cs:13</a></div></div>
2019-08-07 18:01:08 -07:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_af0f5478f7fb8d26580e58a30d3cacbf4"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#af0f5478f7fb8d26580e58a30d3cacbf4">Google.OrTools.ConstraintSolver.RoutingModel.Start</a></div><div class="ttdeci">long Start(int vehicle)</div><div class="ttdef"><b>Definition:</b> <a href="RoutingModel_8cs_source.html#l00585">RoutingModel.cs:585</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingSearchParameters_html_a7c694dcc636f76fdccdb7eb652f2bcdb"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingSearchParameters.html#a7c694dcc636f76fdccdb7eb652f2bcdb">Google.OrTools.ConstraintSolver.RoutingSearchParameters.FirstSolutionStrategy</a></div><div class="ttdeci">global::Google.OrTools.ConstraintSolver.FirstSolutionStrategy.Types.Value FirstSolutionStrategy</div><div class="ttdoc">First solution strategies, used as starting point of local search.</div><div class="ttdef"><b>Definition:</b> <a href="RoutingParameters_8pb_8cs_source.html#l00187">RoutingParameters.pb.cs:187</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_a4a898aa2fddd9cbf838ead3a45cdf75b"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a4a898aa2fddd9cbf838ead3a45cdf75b">Google.OrTools.ConstraintSolver.RoutingModel.GetArcCostForVehicle</a></div><div class="ttdeci">long GetArcCostForVehicle(long from_index, long to_index, long vehicle)</div><div class="ttdef"><b>Definition:</b> <a href="RoutingModel_8cs_source.html#l00662">RoutingModel.cs:662</a></div></div>
<div class="ttc" id="namespaceGoogle_1_1OrTools_1_1ConstraintSolver_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools_1_1ConstraintSolver.html">Google.OrTools.ConstraintSolver</a></div><div class="ttdef"><b>Definition:</b> <a href="Assignment_8cs_source.html#l00011">Assignment.cs:11</a></div></div>
<div class="ttc" id="classSimpleRoutingProgram_html"><div class="ttname"><a href="classSimpleRoutingProgram.html">SimpleRoutingProgram</a></div><div class="ttdoc">This is a sample using the routing library .Net wrapper.</div><div class="ttdef"><b>Definition:</b> <a href="SimpleRoutingProgram_8cs_source.html#l00023">SimpleRoutingProgram.cs:23</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html">Google.OrTools.ConstraintSolver.RoutingModel</a></div><div class="ttdef"><b>Definition:</b> <a href="RoutingModel_8cs_source.html#l00018">RoutingModel.cs:18</a></div></div>
2019-08-07 18:01:08 -07:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_ab8d61705aa4291d2cd437ba0a7dfccbf"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#ab8d61705aa4291d2cd437ba0a7dfccbf">Google.OrTools.ConstraintSolver.RoutingModel.SetArcCostEvaluatorOfAllVehicles</a></div><div class="ttdeci">void SetArcCostEvaluatorOfAllVehicles(int evaluator_index)</div><div class="ttdef"><b>Definition:</b> <a href="RoutingModel_8cs_source.html#l00337">RoutingModel.cs:337</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1operations__research__constraint__solver_html_af0c180fefcb881087147070e31bc2ddb"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1operations__research__constraint__solver.html#af0c180fefcb881087147070e31bc2ddb">Google.OrTools.ConstraintSolver.operations_research_constraint_solver.DefaultRoutingSearchParameters</a></div><div class="ttdeci">static Google.OrTools.ConstraintSolver.RoutingSearchParameters DefaultRoutingSearchParameters()</div><div class="ttdef"><b>Definition:</b> <a href="operations__research__constraint__solver_8cs_source.html#l00101">operations_research_constraint_solver.cs:101</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1Assignment_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1Assignment.html">Google.OrTools.ConstraintSolver.Assignment</a></div><div class="ttdef"><b>Definition:</b> <a href="Assignment_8cs_source.html#l00018">Assignment.cs:18</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1FirstSolutionStrategy_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1FirstSolutionStrategy.html">Google.OrTools.ConstraintSolver.FirstSolutionStrategy</a></div><div class="ttdoc">First solution strategies, used as starting point of local search.</div><div class="ttdef"><b>Definition:</b> <a href="RoutingEnums_8pb_8cs_source.html#l00058">RoutingEnums.pb.cs:58</a></div></div>
2019-08-07 18:01:08 -07:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1FirstSolutionStrategy_1_1Types_html_a896c037a32087c5c20d97e64a1786880"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1FirstSolutionStrategy_1_1Types.html#a896c037a32087c5c20d97e64a1786880">Google.OrTools.ConstraintSolver.FirstSolutionStrategy.Types.Value</a></div><div class="ttdeci">Value</div><div class="ttdef"><b>Definition:</b> <a href="RoutingEnums_8pb_8cs_source.html#l00161">RoutingEnums.pb.cs:161</a></div></div>
</div><!-- fragment --></div><!-- contents -->
2019-08-07 18:01:08 -07:00
</div>
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>