<ahref="IntegerExpressions_8cs.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">// Copyright 2010-2018 Google LLC</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment">// you may not use this file except in compliance with the License.</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment">// You may obtain a copy of the License at</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="comment">// Unless required by applicable law or agreed to in writing, software</span></div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment">// See the License for the specific language governing permissions and</span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment">// limitations under the License.</span></div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> </div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="keyword">namespace </span><aclass="code"href="namespaceGoogle_1_1OrTools_1_1Sat.html">Google.OrTools.Sat</a></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> {</div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="keyword">using</span> System;</div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="keyword">using</span> System.<aclass="code"href="namespaceSystem_1_1Collections.html">Collections</a>.Generic;</div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="keyword">using</span><aclass="code"href="namespaceGoogle.html">Google</a>.<aclass="code"href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<aclass="code"href="namespaceGoogle_1_1OrTools_1_1Util.html">Util</a>;</div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> </div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment">// Helpers.</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> </div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment">// IntVar[] helper class.</span></div><divclass="line"><aname="l00023"></a><spanclass="lineno"><aclass="line"href="classGoogle_1_1OrTools_1_1Sat_1_1IntVarArrayHelper.html"> 23</a></span> <spanclass="keyword">public</span><spanclass="keyword">static</span><spanclass="keyword">class </span><aclass="code"href="classGoogle_1_1OrTools_1_1Sat_1_1IntVarArrayHelper.html">IntVarArrayHelper</a></div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span>  {</div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span>  [Obsolete(<spanclass="stringlit
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a10642ec498d4efb6017bc2973760aae7"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a10642ec498d4efb6017bc2973760aae7">Google.OrTools.Sat.LinearExpr.operator<=</a></div><divclass="ttdeci">static BoundedLinearExpression operator<=(LinearExpr a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00171">IntegerExpressions.cs:171</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1SumArray_html_a2e2153440b41ef5919ff80e5ec37b99f"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html#a2e2153440b41ef5919ff80e5ec37b99f">Google.OrTools.Sat.SumArray.SumArray</a></div><divclass="ttdeci">SumArray(LinearExpr a, LinearExpr b)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00358">IntegerExpressions.cs:358</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst_html_a80e8cbacb4f6231664926f3c29e13482"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1ProductCst.html#a80e8cbacb4f6231664926f3c29e13482">Google.OrTools.Sat.ProductCst.ProductCst</a></div><divclass="ttdeci">ProductCst(LinearExpr e, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00335">IntegerExpressions.cs:335</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_af1789331a98a2bbc81ec5baf1bfd15a6"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#af1789331a98a2bbc81ec5baf1bfd15a6">Google.OrTools.Sat.LinearExpr.GetIndex</a></div><divclass="ttdeci">virtual int GetIndex()</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00076">IntegerExpressions.cs:76</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_aa93c3def611e71e8a319c782e79854a3"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#aa93c3def611e71e8a319c782e79854a3">Google.OrTools.Sat.LinearExpr.operator ></a></div><divclass="ttdeci">static BoundedLinearExpression operator >(LinearExpr a, LinearExpr b)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00196">IntegerExpressions.cs:196</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a52415c1c882980802faa6dd66f99e078"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a52415c1c882980802faa6dd66f99e078">Google.OrTools.Sat.LinearExpr.operator !=</a></div><divclass="ttdeci">static BoundedLinearExpression operator !=(LinearExpr a, LinearExpr b)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00136">IntegerExpressions.cs:136</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a4a76b49edfb6e1a14e90789ddec970ce"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a4a76b49edfb6e1a14e90789ddec970ce">Google.OrTools.Sat.LinearExpr.operator >=</a></div><divclass="ttdeci">static BoundedLinearExpression operator >=(LinearExpr a, LinearExpr b)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00191">IntegerExpressions.cs:191</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_aeb57abcd9d5d38899d0abafc24487574"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#aeb57abcd9d5d38899d0abafc24487574">Google.OrTools.Sat.LinearExpr.operator ></a></div><divclass="ttdeci">static BoundedLinearExpression operator >(LinearExpr a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00161">IntegerExpressions.cs:161</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1BoundedLinearExpression_html_a7f2d59750b2d39da230bb9e11e93de35"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1BoundedLinearExpression.html#a7f2d59750b2d39da230bb9e11e93de35">Google.OrTools.Sat.BoundedLinearExpression.operator >=</a></div><divclass="ttdeci">static BoundedLinearExpression operator >=(BoundedLinearExpression a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00700">IntegerExpressions.cs:700</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a0213f5427800c5309b521d3cf21fe15b"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a0213f5427800c5309b521d3cf21fe15b">Google.OrTools.Sat.LinearExpr.operator >=</a></div><divclass="ttdeci">static BoundedLinearExpression operator >=(LinearExpr a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00151">IntegerExpressions.cs:151</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_af3d4a66983eda1c4d684c750f4672316"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#af3d4a66983eda1c4d684c750f4672316">Google.OrTools.Sat.LinearExpr.operator==</a></div><divclass="ttdeci">static BoundedLinearExpression operator==(LinearExpr a, LinearExpr b)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00131">IntegerExpressions.cs:131</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a5c88b580b05c96a2be9d9bab2e25ea93"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a5c88b580b05c96a2be9d9bab2e25ea93">Google.OrTools.Sat.LinearExpr.operator -</a></div><divclass="ttdeci">static LinearExpr operator -(LinearExpr a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00106">IntegerExpressions.cs:106</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1SumArray_html_a10c249069c746b85c36d6adf0edb5647"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html#a10c249069c746b85c36d6adf0edb5647">Google.OrTools.Sat.SumArray.SumArray</a></div><divclass="ttdeci">SumArray(IEnumerable< IntVar > vars, IEnumerable< long > coeffs)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00394">IntegerExpressions.cs:394</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1BoundedLinearExpression_html_a0ec988aa85e606c2d3ed72e12c641323"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1BoundedLinearExpression.html#a0ec988aa85e606c2d3ed72e12c641323">Google.OrTools.Sat.BoundedLinearExpression.operator<=</a></div><divclass="ttdeci">static BoundedLinearExpression operator<=(BoundedLinearExpression a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00678">IntegerExpressions.cs:678</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a8489c7725013f1fe12ee7d86c3384485"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a8489c7725013f1fe12ee7d86c3384485">Google.OrTools.Sat.LinearExpr.operator *</a></div><divclass="ttdeci">static LinearExpr operator *(LinearExpr a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00116">IntegerExpressions.cs:116</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1NotBooleanVariable_html_a2195686f06cfa86e3b8ed3c01f0e7de7"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1NotBooleanVariable.html#a2195686f06cfa86e3b8ed3c01f0e7de7">Google.OrTools.Sat.NotBooleanVariable.GetIndex</a></div><divclass="ttdeci">override int GetIndex()</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00574">IntegerExpressions.cs:574</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1IntegerVariableProto_html_a7fc097bdc2902f827b16bdc0c9db8e15"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1IntegerVariableProto.html#a7fc097bdc2902f827b16bdc0c9db8e15">Google.OrTools.Sat.IntegerVariableProto.Domain</a></div><divclass="ttdeci">pbc::RepeatedField< long > Domain</div><divclass="ttdoc">The variable domain given as a sorted list of n disjoint intervals [min, max] and encoded as [min_0,...</div><divclass="ttdef"><b>Definition:</b><ahref="CpModel_8pb_8cs_source.html#l00293">CpModel.pb.cs:293</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a5d80a2e18eabf94e6af0ef7c7e37f0a5"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a5d80a2e18eabf94e6af0ef7c7e37f0a5">Google.OrTools.Sat.LinearExpr.operator -</a></div><divclass="ttdeci">static LinearExpr operator -(LinearExpr a, LinearExpr b)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00101">IntegerExpressions.cs:101</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a1f5cb0921dd6709fb8a839b076d15880"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a1f5cb0921dd6709fb8a839b076d15880">Google.OrTools.Sat.LinearExpr.Prod</a></div><divclass="ttdeci">static LinearExpr Prod(LinearExpr e, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00211">IntegerExpressions.cs:211</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a20844439cfb83f8e8cdcf9e5f63a5981"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a20844439cfb83f8e8cdcf9e5f63a5981">Google.OrTools.Sat.LinearExpr.operator !=</a></div><divclass="ttdeci">static BoundedLinearExpression operator !=(LinearExpr a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00146">IntegerExpressions.cs:146</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1BoundedLinearExpression_html_abc16df648bd2b96227683d94c7dcb157"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1BoundedLinearExpression.html#abc16df648bd2b96227683d94c7dcb157">Google.OrTools.Sat.BoundedLinearExpression.operator ></a></div><divclass="ttdeci">static BoundedLinearExpression operator >(BoundedLinearExpression a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00711">IntegerExpressions.cs:711</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a6bbec6e37bb2106542b0574311d3b1cf"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a6bbec6e37bb2106542b0574311d3b1cf">Google.OrTools.Sat.LinearExpr.GetVarValueMap</a></div><divclass="ttdeci">static long GetVarValueMap(LinearExpr e, long initial_coeff, Dictionary< IntVar, long > dict)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00228">IntegerExpressions.cs:228</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr_html_a63df98ae539bfc46235c1cd165a2cc6a"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1LinearExpr.html#a63df98ae539bfc46235c1cd165a2cc6a">Google.OrTools.Sat.LinearExpr.operator<</a></div><divclass="ttdeci">static BoundedLinearExpression operator<(LinearExpr a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00181">IntegerExpressions.cs:181</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1BoundedLinearExpression_html_a0b12a101c52898efe569f0d491950667"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1BoundedLinearExpression.html#a0b12a101c52898efe569f0d491950667">Google.OrTools.Sat.BoundedLinearExpression.operator<</a></div><divclass="ttdeci">static BoundedLinearExpression operator<(BoundedLinearExpression a, long v)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00689">IntegerExpressions.cs:689</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1SumArray_html_a2de65f2184fda73ddd5abb28d438d8de"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html#a2de65f2184fda73ddd5abb28d438d8de">Google.OrTools.Sat.SumArray.SumArray</a></div><divclass="ttdeci">SumArray(IEnumerable< IntVar > vars, IEnumerable< int > coeffs)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00421">IntegerExpressions.cs:421</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1IntVar_html_aac2ada0d21886e9321ecaa97b579da18"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1IntVar.html#aac2ada0d21886e9321ecaa97b579da18">Google.OrTools.Sat.IntVar.GetIndex</a></div><divclass="ttdeci">override int GetIndex()</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00509">IntegerExpressions.cs:509</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1SumArray_html_a52f4617b0aeaa071c4fb5b01e397d37b"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1SumArray.html#a52f4617b0aeaa071c4fb5b01e397d37b">Google.OrTools.Sat.SumArray.SumArray</a></div><divclass="ttdeci">SumArray(LinearExpr a, long b)</div><divclass="ttdef"><b>Definition:</b><ahref="IntegerExpressions_8cs_source.html#l00366">IntegerExpressions.cs:366</a></div></div>
<divclass="ttc"id="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto_html_a3ed73e84166eba9045912d9feda2c268"><divclass="ttname"><ahref="classGoogle_1_1OrTools_1_1Sat_1_1CpModelProto.html#a3ed73e84166eba9045912d9feda2c268">Google.OrTools.Sat.CpModelProto.Variables</a></div><divclass="ttdeci">pbc::RepeatedField< global::Google.OrTools.Sat.IntegerVariableProto > Variables</div><divclass="ttdoc">The associated Protos should be referred by their index in these fields.</div><divclass="ttdef"><b>Definition:</b><ahref="CpModel_8pb_8cs_source.html#l05260">CpModel.pb.cs:5260</a></div></div>