77 lines
29 KiB
HTML
77 lines
29 KiB
HTML
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
|
<head>
|
||
|
|
<title>OR-Tools</title>
|
||
|
|
<meta http-equiv="Content-Type" content="text/html;"/>
|
||
|
|
<meta charset="utf-8"/>
|
||
|
|
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
|
||
|
|
<link rel="stylesheet" type="text/css" href="ortools.css" title="default" media="screen,print" />
|
||
|
|
<script type="text/javascript" src="jquery.js"></script>
|
||
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div id="banner-container">
|
||
|
|
<div id="banner">
|
||
|
|
<span id="sfml">OR-Tools 7.1@</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div id="content">
|
||
|
|
<!-- Generated by Doxygen 1.8.15 -->
|
||
|
|
<div id="navrow1" class="tabs">
|
||
|
|
<ul class="tablist">
|
||
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div id="navrow2" class="tabs2">
|
||
|
|
<ul class="tablist">
|
||
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
||
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div id="nav-path" class="navpath">
|
||
|
|
<ul>
|
||
|
|
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_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">
|
||
|
|
<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> <span class="comment">// Copyright 2010-2018 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// [START program]</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// [START import]</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">using</span> System;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">using</span> <a class="code" href="namespaceGoogle.html">Google</a>.<a class="code" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code" href="namespaceGoogle_1_1OrTools_1_1ConstraintSolver.html">ConstraintSolver</a>;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// [END import]</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classSimpleRoutingProgram.html"> 23</a></span> <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#ac33fa7b484fe9cf8c57e5707970a67ad"> 24</a></span>  <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classSimpleRoutingProgram.html#ac33fa7b484fe9cf8c57e5707970a67ad">Main</a>(String[] args) {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="comment">// Instantiate the data problem.</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <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_1Assignment_html_a7bd19ac955e3f0ec2e8978126ea61108"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1Assignment.html#a7bd19ac955e3f0ec2e8978126ea61108">Google.OrTools.ConstraintSolver.Assignment.Value</a></div><div class="ttdeci">long Value(IntVar var)</div><div class="ttdef"><b>Definition:</b> <a href="Assignment_8cs_source.html#l00172">Assignment.cs:172</a></div></div>
|
||
|
|
<div class="ttc" id="namespaceGoogle_html"><div class="ttname"><a href="namespaceGoogle.html">Google</a></div><div class="ttdef"><b>Definition:</b> <a href="KInt64Vector_8cs_source.html#l00011">KInt64Vector.cs:11</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1operations__research__constraint__solver_html_a06d405f58d4880179950cbe4110d49eb"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1operations__research__constraint__solver.html#a06d405f58d4880179950cbe4110d49eb">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_1RoutingModel_html_a5a6189408097462d9671604501f4a75a"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a5a6189408097462d9671604501f4a75a">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#l00591">RoutingModel.cs:591</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>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_a292f35284ab841d1878aedf2ce3a4c3d"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a292f35284ab841d1878aedf2ce3a4c3d">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#l00107">RoutingModel.cs:107</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_a7ac7d73bf2706f2fe17fb817bb294422"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a7ac7d73bf2706f2fe17fb817bb294422">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#l00442">RoutingModel.cs:442</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_a3f2ea8ff6bcb2ae96081998381af12b6"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a3f2ea8ff6bcb2ae96081998381af12b6">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#l00623">RoutingModel.cs:623</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>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingIndexManager_html_a73532fcd3b9c51484737f7c5163cbaa4"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingIndexManager.html#a73532fcd3b9c51484737f7c5163cbaa4">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#l00086">RoutingIndexManager.cs:86</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_aa75b1f2048dd4e8d9797f2b7c9649ca3"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#aa75b1f2048dd4e8d9797f2b7c9649ca3">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#l00328">RoutingModel.cs:328</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_a1fd079f792387dc80e3038b1f381cbd7"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a1fd079f792387dc80e3038b1f381cbd7">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#l00576">RoutingModel.cs:576</a></div></div>
|
||
|
|
<div class="ttc" id="classSimpleRoutingProgram_html_ac33fa7b484fe9cf8c57e5707970a67ad"><div class="ttname"><a href="classSimpleRoutingProgram.html#ac33fa7b484fe9cf8c57e5707970a67ad">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="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>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel_html_a7095f230a78d6312adecd1aff37cb2b5"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingModel.html#a7095f230a78d6312adecd1aff37cb2b5">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#l00653">RoutingModel.cs:653</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1Assignment_html_a780e3d8c46a564eb038bbb4a49480903"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1Assignment.html#a780e3d8c46a564eb038bbb4a49480903">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#l00119">Assignment.cs:119</a></div></div>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1FirstSolutionStrategy_1_1Types_html_a46b0af629b907cebcfdee6028dc7132f"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1FirstSolutionStrategy_1_1Types.html#a46b0af629b907cebcfdee6028dc7132f">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 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>
|
||
|
|
<div class="ttc" id="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingSearchParameters_html_a708b4e50fe219ea544adfed0904fccb8"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1ConstraintSolver_1_1RoutingSearchParameters.html#a708b4e50fe219ea544adfed0904fccb8">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#l00185">RoutingParameters.pb.cs:185</a></div></div>
|
||
|
|
</div><!-- fragment --></div><!-- contents -->
|
||
|
|
</div>
|
||
|
|
<div id="footer-container">
|
||
|
|
<div id="footer">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|