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

77 lines
31 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-06-29 18:18:08 +02:00
<span id="sfml">OR-Tools 7.2</span>
</div>
</div>
2019-06-29 18:18:08 +02:00
<link rel="icon" href="https://developers.google.com/optimization/images/orLogo.png">
<div id="content">
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="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&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;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_dddac007a45022d9da6ea1dee012c3b9.html">sat</a></li><li class="navelem"><a class="el" href="dir_666ec04a5210c3fc7bf26544c3cbcf44.html">csharp</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">SearchHelpers.cs</div> </div>
</div><!--header-->
<div class="contents">
<a href="SearchHelpers_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="keyword">using</span> System;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="keyword">using</span> System.Collections.Generic;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceGoogle_1_1OrTools_1_1Sat.html">Google.OrTools.Sat</a></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;{</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html"> 20</a></span>&#160; <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html">CpSolverSolutionCallback</a> : <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html">SolutionCallback</a></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; {</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a02f75dd2fa406b17fb77769f9e85732c"> 22</a></span>&#160; <span class="keyword">public</span> <span class="keywordtype">long</span> <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a02f75dd2fa406b17fb77769f9e85732c">Value</a>(<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html">LinearExpr</a> e)</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; Lis
2019-07-04 15:11:35 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SumArray_html_a1a04ad2728273035e1c3f3f6e4d0fd63"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html#a1a04ad2728273035e1c3f3f6e4d0fd63">Google.OrTools.Sat.SumArray.Constant</a></div><div class="ttdeci">long Constant</div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00462">IntegerExpressions.cs:462</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html">Google.OrTools.Sat.ObjectiveSolutionPrinter</a></div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00092">SearchHelpers.cs:92</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst_html_a6b02dc0403a8315bfaa344c3e62ce014"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html#a6b02dc0403a8315bfaa344c3e62ce014">Google.OrTools.Sat.ProductCst.Coeff</a></div><div class="ttdeci">long Coeff</div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00347">IntegerExpressions.cs:347</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html">Google.OrTools.Sat.CpSolverSolutionCallback</a></div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00020">SearchHelpers.cs:20</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter_html_a1c41e09110665c2c77cd672f6c9c64f0"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#a1c41e09110665c2c77cd672f6c9c64f0">Google.OrTools.Sat.ObjectiveSolutionPrinter.OnSolutionCallback</a></div><div class="ttdeci">override void OnSolutionCallback()</div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00102">SearchHelpers.cs:102</a></div></div>
2019-07-04 15:11:35 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntVar_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntVar.html">Google.OrTools.Sat.IntVar</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00491">IntegerExpressions.cs:491</a></div></div>
<div class="ttc" id="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral_html"><div class="ttname"><a href="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral.html">Google.OrTools.Sat.ILiteral</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00042">IntegerExpressions.cs:42</a></div></div>
<div class="ttc" id="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral_html_a2d4e90d515e1e9f91811cdeea652e742"><div class="ttname"><a href="interfaceGoogle_1_1OrTools_1_1Sat_1_1ILiteral.html#a2d4e90d515e1e9f91811cdeea652e742">Google.OrTools.Sat.ILiteral.GetIndex</a></div><div class="ttdeci">int GetIndex()</div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback_html_a02f75dd2fa406b17fb77769f9e85732c"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a02f75dd2fa406b17fb77769f9e85732c">Google.OrTools.Sat.CpSolverSolutionCallback.Value</a></div><div class="ttdeci">long Value(LinearExpr e)</div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00022">SearchHelpers.cs:22</a></div></div>
2019-06-29 18:18:08 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html_a623d3c830b19fe51f9fab55f2f33e7dc"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a623d3c830b19fe51f9fab55f2f33e7dc">Google.OrTools.Sat.SolutionCallback.BestObjectiveBound</a></div><div class="ttdeci">double BestObjectiveBound()</div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00095">SolutionCallback.cs:95</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SumArray_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html">Google.OrTools.Sat.SumArray</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00356">IntegerExpressions.cs:356</a></div></div>
2019-06-29 18:18:08 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html_a1f36f0c7485c747fed2a5aed8f34decf"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a1f36f0c7485c747fed2a5aed8f34decf">Google.OrTools.Sat.SolutionCallback.SolutionIntegerValue</a></div><div class="ttdeci">long SolutionIntegerValue(int index)</div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00100">SolutionCallback.cs:100</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html">Google.OrTools.Sat.SolutionCallback</a></div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00017">SolutionCallback.cs:17</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html">Google.OrTools.Sat.LinearExpr</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00049">IntegerExpressions.cs:49</a></div></div>
2019-06-29 18:18:08 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html_a05564ff6cc134a3ac8550f25baf9e5b6"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a05564ff6cc134a3ac8550f25baf9e5b6">Google.OrTools.Sat.SolutionCallback.SolutionBooleanValue</a></div><div class="ttdeci">bool SolutionBooleanValue(int index)</div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00105">SolutionCallback.cs:105</a></div></div>
2019-07-04 15:11:35 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1NotBooleanVariable_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1NotBooleanVariable.html">Google.OrTools.Sat.NotBooleanVariable</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00567">IntegerExpressions.cs:567</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst_html_a79a51d9bc940f318cc11230734579033"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html#a79a51d9bc940f318cc11230734579033">Google.OrTools.Sat.ProductCst.Expr</a></div><div class="ttdeci">LinearExpr Expr</div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00342">IntegerExpressions.cs:342</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html">Google.OrTools.Sat.ProductCst</a></div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00333">IntegerExpressions.cs:333</a></div></div>
<div class="ttc" id="namespaceGoogle_1_1OrTools_1_1Sat_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools_1_1Sat.html">Google.OrTools.Sat</a></div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l00012">CpModel.pb.cs:12</a></div></div>
2019-06-29 18:18:08 +02:00
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback_html_a45191b35777ba166341ed94a9c3a2ba2"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1SolutionCallback.html#a45191b35777ba166341ed94a9c3a2ba2">Google.OrTools.Sat.SolutionCallback.ObjectiveValue</a></div><div class="ttdeci">double ObjectiveValue()</div><div class="ttdef"><b>Definition:</b> <a href="SolutionCallback_8cs_source.html#l00090">SolutionCallback.cs:90</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback_html_a1e329c00be8a46032b3edfb455e4631d"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpSolverSolutionCallback.html#a1e329c00be8a46032b3edfb455e4631d">Google.OrTools.Sat.CpSolverSolutionCallback.BooleanValue</a></div><div class="ttdeci">Boolean BooleanValue(ILiteral literal)</div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00077">SearchHelpers.cs:77</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter_html_a38f66a2e2a0e597ba1c9c11760fbf370"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#a38f66a2e2a0e597ba1c9c11760fbf370">Google.OrTools.Sat.ObjectiveSolutionPrinter.ObjectiveSolutionPrinter</a></div><div class="ttdeci">ObjectiveSolutionPrinter()</div><div class="ttdef"><b>Definition:</b> <a href="SearchHelpers_8cs_source.html#l00097">SearchHelpers.cs:97</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter_html_ae60bdd773dcefdeb2818b679fa34c9c0"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ObjectiveSolutionPrinter.html#ae60bdd773dcefdeb2818b679fa34c9c0">Google.OrTools.Sat.ObjectiveSolutionPrinter.solutionCount</a></div><div class="ttdeci">int solutionCount()</div></div>
</div><!-- fragment --></div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>