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

319 lines
15 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: SimpleBoundCosts</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_1SimpleBoundCosts.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="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classoperations__research_1_1SimpleBoundCosts-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">SimpleBoundCosts</div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A structure meant to store soft bounds and associated violation constants. </p>
<p>It is 'Simple' because it has one <a class="el" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a> per element, in contrast to 'Multiple'. Design notes:</p><ul>
<li>it is meant to store model information to be shared through pointers, so it disallows copy and assign to avoid accidental duplication.</li>
<li>it keeps soft bounds as an array of structs to help cache, because code that uses such bounds typically use both bound and cost.</li>
<li>soft bounds are named pairs, prevents some mistakes.</li>
<li>using operator[] to access elements is not interesting, because the structure will be accessed through pointers, moreover having to type bound_cost reminds the user of the order if they do a copy assignment of the element. </li>
</ul>
<p class="definition">Definition at line <a class="el" href="routing_8h_source.html#l02249">2249</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><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:a2d9c0c0c671bb710c0f268fef402b698"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1SimpleBoundCosts.html#a2d9c0c0c671bb710c0f268fef402b698">SimpleBoundCosts</a> (int num_bounds, <a class="el" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a> default_bound_cost)</td></tr>
<tr class="separator:a2d9c0c0c671bb710c0f268fef402b698"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19e1b2057c4fd91aab838ee1c159da8b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1SimpleBoundCosts.html#a19e1b2057c4fd91aab838ee1c159da8b">bound_cost</a> (int element)</td></tr>
<tr class="separator:a19e1b2057c4fd91aab838ee1c159da8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf6c218cbb9459db5d7e9318e5667e66"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1SimpleBoundCosts.html#aaf6c218cbb9459db5d7e9318e5667e66">bound_cost</a> (int element) const</td></tr>
<tr class="separator:aaf6c218cbb9459db5d7e9318e5667e66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af40990b9bd3d70d30e8ce7cdda1ad56f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1SimpleBoundCosts.html#af40990b9bd3d70d30e8ce7cdda1ad56f">Size</a> ()</td></tr>
<tr class="separator:af40990b9bd3d70d30e8ce7cdda1ad56f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae267a319d38d3f1d6beb6cb605e70daa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1SimpleBoundCosts.html#ae267a319d38d3f1d6beb6cb605e70daa">SimpleBoundCosts</a> (const <a class="el" href="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</a> &amp;)=delete</td></tr>
<tr class="separator:ae267a319d38d3f1d6beb6cb605e70daa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2133502882dec3ada4aa271a92bffe6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1SimpleBoundCosts.html#af2133502882dec3ada4aa271a92bffe6">operator=</a> (const <a class="el" href="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</a> &amp;)=delete</td></tr>
<tr class="separator:af2133502882dec3ada4aa271a92bffe6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2d9c0c0c671bb710c0f268fef402b698"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d9c0c0c671bb710c0f268fef402b698">&#9670;&nbsp;</a></span>SimpleBoundCosts() <span class="overload">[1/2]</span></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_1SimpleBoundCosts.html">SimpleBoundCosts</a> </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>num_bounds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a>&#160;</td>
<td class="paramname"><em>default_bound_cost</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</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="routing_8h_source.html#l02255">2255</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
</div>
</div>
<a id="ae267a319d38d3f1d6beb6cb605e70daa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae267a319d38d3f1d6beb6cb605e70daa">&#9670;&nbsp;</a></span>SimpleBoundCosts() <span class="overload">[2/2]</span></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_1SimpleBoundCosts.html">SimpleBoundCosts</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</a> &amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a19e1b2057c4fd91aab838ee1c159da8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19e1b2057c4fd91aab838ee1c159da8b">&#9670;&nbsp;</a></span>bound_cost() <span class="overload">[1/2]</span></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="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a>&amp; bound_cost </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>element</em></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="routing_8h_source.html#l02257">2257</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
</div>
</div>
<a id="aaf6c218cbb9459db5d7e9318e5667e66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf6c218cbb9459db5d7e9318e5667e66">&#9670;&nbsp;</a></span>bound_cost() <span class="overload">[2/2]</span></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="structoperations__research_1_1SimpleBoundCosts_1_1BoundCost.html">BoundCost</a> bound_cost </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>element</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="routing_8h_source.html#l02258">2258</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
</div>
</div>
<a id="af2133502882dec3ada4aa271a92bffe6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2133502882dec3ada4aa271a92bffe6">&#9670;&nbsp;</a></span>operator=()</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_1SimpleBoundCosts.html">SimpleBoundCosts</a> operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</a> &amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="af40990b9bd3d70d30e8ce7cdda1ad56f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af40990b9bd3d70d30e8ce7cdda1ad56f">&#9670;&nbsp;</a></span>Size()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Size </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="routing_8h_source.html#l02259">2259</a> of file <a class="el" href="routing_8h_source.html">routing.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="routing_8h_source.html">routing.h</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="classoperations__research_1_1SimpleBoundCosts.html">SimpleBoundCosts</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>