<ahref="CpSolverSolutionCallback_8java.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aid="l00001"name="l00001"></a><spanclass="lineno"> 1</span><spanclass="comment">// Copyright 2010-2021 Google LLC</span></div>
<divclass="line"><aid="l00002"name="l00002"></a><spanclass="lineno"> 2</span><spanclass="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div>
<divclass="line"><aid="l00003"name="l00003"></a><spanclass="lineno"> 3</span><spanclass="comment">// you may not use this file except in compliance with the License.</span></div>
<divclass="line"><aid="l00004"name="l00004"></a><spanclass="lineno"> 4</span><spanclass="comment">// You may obtain a copy of the License at</span></div>
<divclass="line"><aid="l00008"name="l00008"></a><spanclass="lineno"> 8</span><spanclass="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
<divclass="line"><aid="l00009"name="l00009"></a><spanclass="lineno"> 9</span><spanclass="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div>
<divclass="line"><aid="l00010"name="l00010"></a><spanclass="lineno"> 10</span><spanclass="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<divclass="line"><aid="l00011"name="l00011"></a><spanclass="lineno"> 11</span><spanclass="comment">// See the License for the specific language governing permissions and</span></div>
<divclass="line"><aid="l00012"name="l00012"></a><spanclass="lineno"> 12</span><spanclass="comment">// limitations under the License.</span></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1sat_1_1CpSolverSolutionCallback_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1sat_1_1CpSolverSolutionCallback.html">com.google.ortools.sat.CpSolverSolutionCallback</a></div><divclass="ttdoc">Parent class to create a callback called at each solution.</div><divclass="ttdef"><b>Definition:</b><ahref="CpSolverSolutionCallback_8java_source.html#l00039">CpSolverSolutionCallback.java:39</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1sat_1_1CpSolverSolutionCallback_html_a223d9fe8c0446517983a4cce6e8611ea"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1sat_1_1CpSolverSolutionCallback.html#a223d9fe8c0446517983a4cce6e8611ea">com.google.ortools.sat.CpSolverSolutionCallback.value</a></div><divclass="ttdeci">long value(LinearArgument expr)</div><divclass="ttdoc">Returns the value of the linear expression in the current solution.</div><divclass="ttdef"><b>Definition:</b><ahref="CpSolverSolutionCallback_8java_source.html#l00041">CpSolverSolutionCallback.java:41</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1sat_1_1CpSolverSolutionCallback_html_a4cb3ffdfd02cc63f767833ed23e89c81"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1sat_1_1CpSolverSolutionCallback.html#a4cb3ffdfd02cc63f767833ed23e89c81">com.google.ortools.sat.CpSolverSolutionCallback.onSolutionCallback</a></div><divclass="ttdeci">void onSolutionCallback()</div><divclass="ttdoc">Callback method to override.</div><divclass="ttdef"><b>Definition:</b><ahref="CpSolverSolutionCallback_8java_source.html#l00057">CpSolverSolutionCallback.java:57</a></div></div>
<divclass="ttc"id="aclasscom_1_1google_1_1ortools_1_1sat_1_1CpSolverSolutionCallback_html_af090e0f2ac5bdfda82b62d7541e5fe86"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1sat_1_1CpSolverSolutionCallback.html#af090e0f2ac5bdfda82b62d7541e5fe86">com.google.ortools.sat.CpSolverSolutionCallback.booleanValue</a></div><divclass="ttdeci">Boolean booleanValue(Literal literal)</div><divclass="ttdoc">Returns the Boolean value of the literal in the current solution.</div><divclass="ttdef"><b>Definition:</b><ahref="CpSolverSolutionCallback_8java_source.html#l00051">CpSolverSolutionCallback.java:51</a></div></div>
<divclass="ttc"id="ainterfacecom_1_1google_1_1ortools_1_1sat_1_1LinearArgument_html"><divclass="ttname"><ahref="interfacecom_1_1google_1_1ortools_1_1sat_1_1LinearArgument.html">com.google.ortools.sat.LinearArgument</a></div><divclass="ttdoc">A object that can build a LinearExpr object.</div><divclass="ttdef"><b>Definition:</b><ahref="LinearArgument_8java_source.html#l00021">LinearArgument.java:21</a></div></div>
<divclass="ttc"id="ainterfacecom_1_1google_1_1ortools_1_1sat_1_1LinearArgument_html_a68a038d4ae2f7cf74dfa8e8fe21c4feb"><divclass="ttname"><ahref="interfacecom_1_1google_1_1ortools_1_1sat_1_1LinearArgument.html#a68a038d4ae2f7cf74dfa8e8fe21c4feb">com.google.ortools.sat.LinearArgument.build</a></div><divclass="ttdeci">LinearExpr build()</div><divclass="ttdoc">Builds a linear expression.</div></div>
<divclass="ttc"id="ainterfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr_html"><divclass="ttname"><ahref="interfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr.html">com.google.ortools.sat.LinearExpr</a></div><divclass="ttdoc">A linear expression (sum (ai * xi) + b).</div><divclass="ttdef"><b>Definition:</b><ahref="LinearExpr_8java_source.html#l00019">LinearExpr.java:19</a></div></div>
<divclass="ttc"id="ainterfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr_html_a2c77626134edecc47b69efe661ea1904"><divclass="ttname"><ahref="interfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr.html#a2c77626134edecc47b69efe661ea1904">com.google.ortools.sat.LinearExpr.getCoefficient</a></div><divclass="ttdeci">long getCoefficient(int index)</div><divclass="ttdoc">Returns the ith coefficient.</div></div>
<divclass="ttc"id="ainterfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr_html_a59f9cb76db051cd784a42f38220f896d"><divclass="ttname"><ahref="interfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr.html#a59f9cb76db051cd784a42f38220f896d">com.google.ortools.sat.LinearExpr.numElements</a></div><divclass="ttdeci">int numElements()</div><divclass="ttdoc">Returns the number of terms (excluding the constant one) in this expression.</div></div>
<divclass="ttc"id="ainterfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr_html_aa7d6a5c7e69f4efdc6a44b85bbe22f1a"><divclass="ttname"><ahref="interfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr.html#aa7d6a5c7e69f4efdc6a44b85bbe22f1a">com.google.ortools.sat.LinearExpr.getOffset</a></div><divclass="ttdeci">long getOffset()</div><divclass="ttdoc">Returns the constant part of the expression.</div></div>
<divclass="ttc"id="ainterfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr_html_ae9592a449a7c3bdebd04b8ea4f174871"><divclass="ttname"><ahref="interfacecom_1_1google_1_1ortools_1_1sat_1_1LinearExpr.html#ae9592a449a7c3bdebd04b8ea4f174871">com.google.ortools.sat.LinearExpr.getVariableIndex</a></div><divclass="ttdeci">int getVariableIndex(int index)</div><divclass="ttdoc">Returns the index of the ith variable.</div></div>
<divclass="ttc"id="ainterfacecom_1_1google_1_1ortools_1_1sat_1_1Literal_html"><divclass="ttname"><ahref="interfacecom_1_1google_1_1ortools_1_1sat_1_1Literal.html">com.google.ortools.sat.Literal</a></div><divclass="ttdoc">Interface to describe a boolean variable or its negation.</div><divclass="ttdef"><b>Definition:</b><ahref="Literal_8java_source.html#l00017">Literal.java:17</a></div></div>