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

121 lines
34 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"/>-->
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
2020-09-01 16:00:33 +02:00
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="banner-container">
<div id="banner">
2021-12-14 13:41:01 +01:00
<span id="sfml">Google OR-Tools 9.2</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">
2020-09-01 16:00:33 +02:00
<h1 style="color: #145A32;">.Net Reference</h1>
2019-08-07 18:01:08 -07:00
</div>
2022-01-16 18:02:36 +01:00
<!-- Generated by Doxygen 1.8.15 -->
2020-09-01 16:00:33 +02:00
<script type="text/javascript">
2022-01-16 18:02:36 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
2020-09-01 16:00:33 +02:00
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
2022-01-16 18:02:36 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2020-09-01 16:00:33 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-01-16 18:02:36 +01:00
/* @license-end */</script>
2020-09-01 16:00:33 +02:00
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
2020-09-01 16:00:33 +02:00
<script type="text/javascript">
2022-01-16 18:02:36 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('IntervalVariables_8cs_source.html','');});
2020-09-01 16:00:33 +02:00
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
2022-01-16 18:02:36 +01:00
<div class="headertitle">
<div class="title">IntervalVariables.cs</div> </div>
</div><!--header-->
<div class="contents">
2022-01-16 18:02:36 +01:00
<a href="IntervalVariables_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-2021 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">namespace </span><a class="code" href="namespaceGoogle_1_1OrTools_1_1Sat.html">Google.OrTools.Sat</a></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;{</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html"> 23</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html">IntervalVar</a></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;{</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#aa52d7815f067949bad77950209fac1ba"> 25</a></span>&#160; <span class="keyword">public</span> <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#aa52d7815f067949bad77950209fac1ba">IntervalVar</a>(<a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto.html">CpModelProto</a> model, <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpressionProto.html">LinearExpressionProto</a> start, <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpressionProto.html">LinearExpressionProto</a> size,</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <a class="code" href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpressionProto.html">LinearExpressionProto</a> end, <span class="keywordtype">int</span> is_present_index, <span class="keywordtype">string</span> name)</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; model_ = model;</div><div class="line"><a name="l00029"></a><span class="lineno
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ConstraintProto_html_ae0f115317f8f86f279a1e01a585e9e46"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ConstraintProto.html#ae0f115317f8f86f279a1e01a585e9e46">Google.OrTools.Sat.ConstraintProto.Interval</a></div><div class="ttdeci">global::Google.OrTools.Sat.IntervalConstraintProto?? Interval</div><div class="ttdoc">The interval constraint takes a start, end, and size, and forces start + size == end.</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l05252">CpModel.pb.cs:5252</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html_a78e33af8a99e01d618d5038eb2576ab4"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#a78e33af8a99e01d618d5038eb2576ab4">Google.OrTools.Sat.IntervalVar.StartExpr</a></div><div class="ttdeci">LinearExpr StartExpr()</div><div class="ttdoc">The start expression of the interval</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00066">IntervalVariables.cs:66</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ConstraintProto_html_a7ee9065718e6628dc7791b756fa6c0f9"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ConstraintProto.html#a7ee9065718e6628dc7791b756fa6c0f9">Google.OrTools.Sat.ConstraintProto.Name</a></div><div class="ttdeci">string Name</div><div class="ttdoc">For debug/logging only.</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l04893">CpModel.pb.cs:4893</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ConstraintProto_html_a0c6ad34cc8d2b4d6e41ee4f1adf9616f"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ConstraintProto.html#a0c6ad34cc8d2b4d6e41ee4f1adf9616f">Google.OrTools.Sat.ConstraintProto.EnforcementLiteral</a></div><div class="ttdeci">pbc::RepeatedField&lt; int &gt; EnforcementLiteral</div><div class="ttdoc">The constraint will be enforced iff all literals listed here are true.</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l04923">CpModel.pb.cs:4923</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html_aa73e7c4dd1df5fd5fbf81c7764ee1533"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#aa73e7c4dd1df5fd5fbf81c7764ee1533">Google.OrTools.Sat.IntervalVar.ToString</a></div><div class="ttdeci">override string ToString()</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00094">IntervalVariables.cs:94</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalConstraintProto_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalConstraintProto.html">Google.OrTools.Sat.IntervalConstraintProto</a></div><div class="ttdoc">This is not really a constraint.</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l01863">CpModel.pb.cs:1863</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalConstraintProto_html_a377242348152d58ff2a105d052407d98"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalConstraintProto.html#a377242348152d58ff2a105d052407d98">Google.OrTools.Sat.IntervalConstraintProto.End</a></div><div class="ttdeci">global::Google.OrTools.Sat.LinearExpressionProto End</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l01926">CpModel.pb.cs:1926</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto_html_a39723d2010ef2a6f6966173e1462fce6"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto.html#a39723d2010ef2a6f6966173e1462fce6">Google.OrTools.Sat.CpModelProto.Constraints</a></div><div class="ttdeci">pbc::RepeatedField&lt; global::Google.OrTools.Sat.ConstraintProto &gt; Constraints</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l08727">CpModel.pb.cs:8727</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html_a7c859191f7a9e0775fe5db32e9fbc28c"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#a7c859191f7a9e0775fe5db32e9fbc28c">Google.OrTools.Sat.IntervalVar.EndExpr</a></div><div class="ttdeci">LinearExpr EndExpr()</div><div class="ttdoc">The end expression of the interval</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00078">IntervalVariables.cs:78</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalConstraintProto_html_a2d0faa0626660b678651bfaaceb3afed"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalConstraintProto.html#a2d0faa0626660b678651bfaaceb3afed">Google.OrTools.Sat.IntervalConstraintProto.Size</a></div><div class="ttdeci">global::Google.OrTools.Sat.LinearExpressionProto Size</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l01938">CpModel.pb.cs:1938</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto.html">Google.OrTools.Sat.CpModelProto</a></div><div class="ttdoc">A constraint programming problem.</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l08639">CpModel.pb.cs:8639</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html_a04968eb2a77be01bc897e7441d9b8640"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#a04968eb2a77be01bc897e7441d9b8640">Google.OrTools.Sat.IntervalVar.GetIndex</a></div><div class="ttdeci">int GetIndex()</div><div class="ttdoc">The Index of the interval in the model proto</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00060">IntervalVariables.cs:60</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="ttdoc">Holds a linear expression: sum (ai * xi) + b.</div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00092">IntegerExpressions.cs:92</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html_a4d48387f37a61db1cbd593e29238ef6f"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#a4d48387f37a61db1cbd593e29238ef6f">Google.OrTools.Sat.IntervalVar.Proto</a></div><div class="ttdeci">IntervalConstraintProto Proto</div><div class="ttdoc">The underlying interval proto</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00085">IntervalVariables.cs:85</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html_aa52d7815f067949bad77950209fac1ba"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#aa52d7815f067949bad77950209fac1ba">Google.OrTools.Sat.IntervalVar.IntervalVar</a></div><div class="ttdeci">IntervalVar(CpModelProto model, LinearExpressionProto start, LinearExpressionProto size, LinearExpressionProto end, int is_present_index, string name)</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00025">IntervalVariables.cs:25</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html">Google.OrTools.Sat.IntervalVar</a></div><div class="ttdoc">An interval variable</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00023">IntervalVariables.cs:23</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html_adb08c880556a274857b1ea7b3f326868"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#adb08c880556a274857b1ea7b3f326868">Google.OrTools.Sat.IntervalVar.IntervalVar</a></div><div class="ttdeci">IntervalVar(CpModelProto model, LinearExpressionProto start, LinearExpressionProto size, LinearExpressionProto end, string name)</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00043">IntervalVariables.cs:43</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html_a26f76217e5014e355033cfe094fcc168"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#a26f76217e5014e355033cfe094fcc168">Google.OrTools.Sat.IntervalVar.Name</a></div><div class="ttdeci">string Name()</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00099">IntervalVariables.cs:99</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1ConstraintProto_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1ConstraintProto.html">Google.OrTools.Sat.ConstraintProto</a></div><div class="ttdoc">Next id: 31</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l04768">CpModel.pb.cs:4768</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalConstraintProto_html_a8ca885c18df6143dfefbe2854ce4f26f"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalConstraintProto.html#a8ca885c18df6143dfefbe2854ce4f26f">Google.OrTools.Sat.IntervalConstraintProto.Start</a></div><div class="ttdeci">global::Google.OrTools.Sat.LinearExpressionProto Start</div><div class="ttdef"><b>Definition:</b> <a href="CpModel_8pb_8cs_source.html#l01914">CpModel.pb.cs:1914</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_ad65b1f9128e66e846be3f63fe426dc7b"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#ad65b1f9128e66e846be3f63fe426dc7b">Google.OrTools.Sat.LinearExpr.RebuildLinearExprFromLinearExpressionProto</a></div><div class="ttdeci">static LinearExpr RebuildLinearExprFromLinearExpressionProto(LinearExpressionProto proto, CpModelProto model)</div><div class="ttdef"><b>Definition:</b> <a href="IntegerExpressions_8cs_source.html#l00398">IntegerExpressions.cs:398</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar_html_a4933e55c6379c315b645e3b10438c4e3"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1Sat_1_1IntervalVar.html#a4933e55c6379c315b645e3b10438c4e3">Google.OrTools.Sat.IntervalVar.SizeExpr</a></div><div class="ttdeci">LinearExpr SizeExpr()</div><div class="ttdoc">The size expression of the interval</div><div class="ttdef"><b>Definition:</b> <a href="IntervalVariables_8cs_source.html#l00072">IntervalVariables.cs:72</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>
2021-01-26 11:28:50 +01:00
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
2019-08-07 18:01:08 -07:00
</div>
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>