Files
ortools-clone/docs/cpp/classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem.html
2020-09-01 16:01:06 +02:00

290 lines
13 KiB
HTML

<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: CanonicalBooleanLinearProblem</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="orLogo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OR-Tools
&#160;<span id="projectnumber">8.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<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>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem.html',''); initResizable(); });
/* @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">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">CanonicalBooleanLinearProblem</div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="pb__constraint_8h_source.html#l00141">141</a> of file <a class="el" href="pb__constraint_8h_source.html">pb_constraint.h</a>.</p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a284a9b03285c5c0a835e07aba4f77b6f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem.html#a284a9b03285c5c0a835e07aba4f77b6f">CanonicalBooleanLinearProblem</a> ()</td></tr>
<tr class="separator:a284a9b03285c5c0a835e07aba4f77b6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05c49a95f6af6f8d873c96cae6ab6653"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem.html#a05c49a95f6af6f8d873c96cae6ab6653">AddLinearConstraint</a> (bool use_lower_bound, Coefficient lower_bound, bool use_upper_bound, Coefficient upper_bound, std::vector&lt; <a class="el" href="structoperations__research_1_1sat_1_1LiteralWithCoeff.html">LiteralWithCoeff</a> &gt; *cst)</td></tr>
<tr class="separator:a05c49a95f6af6f8d873c96cae6ab6653"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03666f2e70e42a9560aa9ce7416d2644"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem.html#a03666f2e70e42a9560aa9ce7416d2644">NumConstraints</a> () const</td></tr>
<tr class="separator:a03666f2e70e42a9560aa9ce7416d2644"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7391d0c784872207477f474cf28f65a5"><td class="memItemLeft" align="right" valign="top">const Coefficient&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem.html#a7391d0c784872207477f474cf28f65a5">Rhs</a> (int i) const</td></tr>
<tr class="separator:a7391d0c784872207477f474cf28f65a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95128a258b1f7d9a4058362edfd2158b"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="structoperations__research_1_1sat_1_1LiteralWithCoeff.html">LiteralWithCoeff</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem.html#a95128a258b1f7d9a4058362edfd2158b">Constraint</a> (int i) const</td></tr>
<tr class="separator:a95128a258b1f7d9a4058362edfd2158b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a284a9b03285c5c0a835e07aba4f77b6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a284a9b03285c5c0a835e07aba4f77b6f">&#9670;&nbsp;</a></span>CanonicalBooleanLinearProblem()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem.html">CanonicalBooleanLinearProblem</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="pb__constraint_8h_source.html#l00143">143</a> of file <a class="el" href="pb__constraint_8h_source.html">pb_constraint.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a05c49a95f6af6f8d873c96cae6ab6653"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05c49a95f6af6f8d873c96cae6ab6653">&#9670;&nbsp;</a></span>AddLinearConstraint()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool AddLinearConstraint </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>use_lower_bound</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Coefficient&#160;</td>
<td class="paramname"><em>lower_bound</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>use_upper_bound</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Coefficient&#160;</td>
<td class="paramname"><em>upper_bound</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; <a class="el" href="structoperations__research_1_1sat_1_1LiteralWithCoeff.html">LiteralWithCoeff</a> &gt; *&#160;</td>
<td class="paramname"><em>cst</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="pb__constraint_8cc_source.html#l00200">200</a> of file <a class="el" href="pb__constraint_8cc_source.html">pb_constraint.cc</a>.</p>
</div>
</div>
<a id="a95128a258b1f7d9a4058362edfd2158b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95128a258b1f7d9a4058362edfd2158b">&#9670;&nbsp;</a></span>Constraint()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::vector&lt;<a class="el" href="structoperations__research_1_1sat_1_1LiteralWithCoeff.html">LiteralWithCoeff</a>&gt;&amp; <a class="el" href="classoperations__research_1_1sat_1_1Constraint.html">Constraint</a> </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>i</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="pb__constraint_8h_source.html#l00157">157</a> of file <a class="el" href="pb__constraint_8h_source.html">pb_constraint.h</a>.</p>
</div>
</div>
<a id="a03666f2e70e42a9560aa9ce7416d2644"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03666f2e70e42a9560aa9ce7416d2644">&#9670;&nbsp;</a></span>NumConstraints()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int NumConstraints </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="pb__constraint_8h_source.html#l00155">155</a> of file <a class="el" href="pb__constraint_8h_source.html">pb_constraint.h</a>.</p>
</div>
</div>
<a id="a7391d0c784872207477f474cf28f65a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7391d0c784872207477f474cf28f65a5">&#9670;&nbsp;</a></span>Rhs()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const Coefficient Rhs </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>i</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="pb__constraint_8h_source.html#l00156">156</a> of file <a class="el" href="pb__constraint_8h_source.html">pb_constraint.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="pb__constraint_8h_source.html">pb_constraint.h</a></li>
<li><a class="el" href="pb__constraint_8cc_source.html">pb_constraint.cc</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespaceoperations__research.html">operations_research</a></li><li class="navelem"><a class="el" href="namespaceoperations__research_1_1sat.html">sat</a></li><li class="navelem"><a class="el" href="classoperations__research_1_1sat_1_1CanonicalBooleanLinearProblem.html">CanonicalBooleanLinearProblem</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.18 </li>
</ul>
</div>
</body>
</html>