2019-07-15 17:42:24 -07:00
<!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"/> -->
< link rel = "stylesheet" type = "text/css" href = "ortools.css" title = "default" media = "screen,print" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< / head >
< body >
< div id = "banner-container" >
< div id = "banner" >
< span id = "sfml" > OR-Tools 7.2< / span >
< / div >
< / div >
< link rel = "icon" href = "https://developers.google.com/optimization/images/orLogo.png" >
< div id = "content" >
<!-- Generated by Doxygen 1.8.15 -->
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< / ul >
< / 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& dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classoperations__research_1_1LinearRange.html','');});
/* @license-end */
< / script >
< div id = "doc-content" >
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classoperations__research_1_1LinearRange-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > operations_research::LinearRange Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > An expression of the form: < / p >
< div class = "fragment" > < div class = "line" > < a class = "code" href = "classoperations__research_1_1LinearRange.html#ac9dc29ebeaf4a37d108c0094ca89eb9d" > lower_bound< / a > < = sum_{i in S} a_i*x_i < = < a class = "code" href = "classoperations__research_1_1LinearRange.html#a527995fddd9d1781d996ff6f50e48041" > upper_bound< / a > . < / div > < / div > <!-- fragment --> < p > The sum is represented as a < a class = "el" href = "classoperations__research_1_1LinearExpr.html" title = "LinearExpr models a quantity that is linear in the decision variables (MPVariable) of an optimization..." > LinearExpr< / a > with offset 0.< / p >
2019-07-16 10:13:02 -07:00
< p > Must be added to model with < / p > < div class = "fragment" > < div class = "line" > MPSolver::AddRowConstraint(< span class = "keyword" > const< / span > < a class = "code" href = "classoperations__research_1_1LinearRange.html#a9ce7b1b40dc5135ed9ca27cfedeca64e" > LinearRange< / a > & range,< / div > < div class = "line" > < span class = "keyword" > const< / span > std::string& name);< / div > < / div > <!-- fragment -->
2019-07-15 17:55:13 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8h_source.html#l00180" > 180< / a > of file < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > .< / p >
2019-07-15 17:42:24 -07:00
< / 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:a9ce7b1b40dc5135ed9ca27cfedeca64e" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearRange.html#a9ce7b1b40dc5135ed9ca27cfedeca64e" > LinearRange< / a > ()< / td > < / tr >
< tr class = "separator:a9ce7b1b40dc5135ed9ca27cfedeca64e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a754af83faa8744d01ecbf5091d4633a8" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearRange.html#a754af83faa8744d01ecbf5091d4633a8" > LinearRange< / a > (double < a class = "el" href = "classoperations__research_1_1LinearRange.html#ac9dc29ebeaf4a37d108c0094ca89eb9d" > lower_bound< / a > , const < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > & < a class = "el" href = "classoperations__research_1_1LinearRange.html#aa75204d544c4e4fc91c3ee8a091dd690" > linear_expr< / a > , double < a class = "el" href = "classoperations__research_1_1LinearRange.html#a527995fddd9d1781d996ff6f50e48041" > upper_bound< / a > )< / td > < / tr >
2019-07-16 10:13:02 -07:00
< tr class = "memdesc:a754af83faa8744d01ecbf5091d4633a8" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The bounds of the linear range are updated so that they include the offset from "linear_expr", i.e., we form the range: < a href = "#a754af83faa8744d01ecbf5091d4633a8" > More...< / a > < br / > < / td > < / tr >
2019-07-15 17:42:24 -07:00
< tr class = "separator:a754af83faa8744d01ecbf5091d4633a8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac9dc29ebeaf4a37d108c0094ca89eb9d" > < td class = "memItemLeft" align = "right" valign = "top" > double  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearRange.html#ac9dc29ebeaf4a37d108c0094ca89eb9d" > lower_bound< / a > () const< / td > < / tr >
< tr class = "separator:ac9dc29ebeaf4a37d108c0094ca89eb9d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa75204d544c4e4fc91c3ee8a091dd690" > < td class = "memItemLeft" align = "right" valign = "top" > const < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearRange.html#aa75204d544c4e4fc91c3ee8a091dd690" > linear_expr< / a > () const< / td > < / tr >
< tr class = "separator:aa75204d544c4e4fc91c3ee8a091dd690" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a527995fddd9d1781d996ff6f50e48041" > < td class = "memItemLeft" align = "right" valign = "top" > double  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearRange.html#a527995fddd9d1781d996ff6f50e48041" > upper_bound< / a > () const< / td > < / tr >
< tr class = "separator:a527995fddd9d1781d996ff6f50e48041" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
< a id = "a9ce7b1b40dc5135ed9ca27cfedeca64e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a9ce7b1b40dc5135ed9ca27cfedeca64e" > ◆ < / a > < / span > LinearRange() < 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" > operations_research::LinearRange::LinearRange < / 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" >
2019-07-15 17:55:13 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8h_source.html#l00182" > 182< / a > of file < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > .< / p >
2019-07-15 17:42:24 -07:00
< / div >
< / div >
< a id = "a754af83faa8744d01ecbf5091d4633a8" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a754af83faa8744d01ecbf5091d4633a8" > ◆ < / a > < / span > LinearRange() < span class = "overload" > [2/2]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > operations_research::LinearRange::LinearRange < / td >
< td > (< / td >
< td class = "paramtype" > double  < / td >
< td class = "paramname" > < em > lower_bound< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > &   < / td >
< td class = "paramname" > < em > linear_expr< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > double  < / td >
< td class = "paramname" > < em > upper_bound< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2019-07-16 10:13:02 -07:00
< p > The bounds of the linear range are updated so that they include the offset from "linear_expr", i.e., we form the range: < / p >
< div class = "fragment" > < div class = "line" > < a class = "code" href = "classoperations__research_1_1LinearRange.html#ac9dc29ebeaf4a37d108c0094ca89eb9d" > lower_bound< / a > - offset < = < a class = "code" href = "classoperations__research_1_1LinearRange.html#aa75204d544c4e4fc91c3ee8a091dd690" > linear_expr< / a > - offset < = < a class = "code" href = "classoperations__research_1_1LinearRange.html#a527995fddd9d1781d996ff6f50e48041" > upper_bound< / a > - offset.< / div > < / div > <!-- fragment -->
2019-07-15 17:42:24 -07:00
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "aa75204d544c4e4fc91c3ee8a091dd690" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa75204d544c4e4fc91c3ee8a091dd690" > ◆ < / a > < / span > linear_expr()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > const < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > & operations_research::LinearRange::linear_expr < / 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" >
2019-07-16 10:13:02 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8h_source.html#l00194" > 194< / a > of file < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > .< / p >
2019-07-15 17:42:24 -07:00
< / div >
< / div >
< a id = "ac9dc29ebeaf4a37d108c0094ca89eb9d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac9dc29ebeaf4a37d108c0094ca89eb9d" > ◆ < / a > < / span > lower_bound()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > double operations_research::LinearRange::lower_bound < / 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" >
2019-07-16 10:13:02 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8h_source.html#l00193" > 193< / a > of file < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > .< / p >
2019-07-15 17:42:24 -07:00
< / div >
< / div >
< a id = "a527995fddd9d1781d996ff6f50e48041" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a527995fddd9d1781d996ff6f50e48041" > ◆ < / a > < / span > upper_bound()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > double operations_research::LinearRange::upper_bound < / 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" >
2019-07-16 10:13:02 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8h_source.html#l00195" > 195< / a > of file < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > .< / p >
2019-07-15 17:42:24 -07:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >