2020-09-01 16:00:33 +02:00
<!-- 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" / >
2022-01-17 21:42:14 +01:00
< meta name = "generator" content = "Doxygen 1.9.3" / >
2020-09-01 16:00:33 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > OR-Tools: LinearExpr< / 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
2022-03-04 00:11:33 +01:00
  < span id = "projectnumber" > 9.3< / span >
2020-09-01 16:00:33 +02:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2022-01-17 21:42:14 +01:00
<!-- Generated by Doxygen 1.9.3 -->
2020-09-01 16:00:33 +02:00
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
2020-09-01 16:00:33 +02:00
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2020-09-01 16:00:33 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-01-17 21:42:14 +01:00
/* @license-end */
< / script >
2020-09-01 16:00:33 +02:00
< 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" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classoperations__research_1_1_linear_expr.html',''); initResizable(); });
2020-09-01 16:00:33 +02:00
/* @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 > |
< a href = "#pub-static-methods" > Static Public Member Functions< / a > |
2020-10-09 12:00:09 +02:00
< a href = "classoperations__research_1_1_linear_expr-members.html" > List of all members< / a > < / div >
2022-01-17 21:42:14 +01:00
< div class = "headertitle" > < div class = "title" > LinearExpr< / div > < / div >
2020-09-01 16:00:33 +02:00
< / div > <!-- header -->
< div class = "contents" >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
2022-01-17 21:42:14 +01:00
< div class = "textblock" > < p > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" title = "LinearExpr models a quantity that is linear in the decision variables (MPVariable) of an optimization..." > LinearExpr< / a > models a quantity that is linear in the decision variables (< a class = "el" href = "classoperations__research_1_1_m_p_variable.html" title = "The class for variables of a Mathematical Programming (MP) model." > MPVariable< / a > ) of an optimization problem, i.e. < / p >
< p > offset + sum_{i in S} a_i*x_i,< / p >
< p > where the a_i and offset are constants and the x_i are MPVariables. You can use a < a class = "el" href = "classoperations__research_1_1_linear_expr.html" title = "LinearExpr models a quantity that is linear in the decision variables (MPVariable) of an optimization..." > LinearExpr< / a > "linear_expr" with an < a class = "el" href = "classoperations__research_1_1_m_p_solver.html" title = "This mathematical programming (MP) solver class is the main class though which users build and solve ..." > MPSolver< / a > "solver" to:< / p > < ul >
2020-10-09 12:00:09 +02:00
< li > < p class = "startli" > < a class = "el" href = "classoperations__research_1_1_set.html" > Set< / a > as the objective of your optimization problem, e.g.< / p >
2020-09-01 16:00:33 +02:00
< p class = "startli" > solver.MutableObjective()-> MaximizeLinearExpr(linear_expr);< / p >
< / li >
< li > < p class = "startli" > Create a constraint in your optimization, e.g.< / p >
< p class = "startli" > solver.MakeRowConstraint(linear_expr1 < = linear_expr2);< / p >
< / li >
< li > < p class = "startli" > Get the value of the quantity after solving, e.g.< / p >
2022-01-17 21:42:14 +01:00
< p class = "startli" > < a class = "el" href = "namespaceoperations__research_1_1math__opt.html#a5767ee23f380e72488d3c7ebf2d742b1" > solver.Solve()< / a > ; linear_expr.SolutionValue();< / p >
2020-09-01 16:00:33 +02:00
< / li >
< / ul >
2022-01-17 21:42:14 +01:00
< p > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" title = "LinearExpr models a quantity that is linear in the decision variables (MPVariable) of an optimization..." > LinearExpr< / a > is allowed to delete variables with coefficient zero from the map, but is not obligated to do so. < / p >
2020-09-01 16:00:33 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8h_source.html#l00114" > 114< / a > of file < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > .< / p >
< / div > < table class = "memberdecls" >
2022-01-17 21:42:14 +01:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "pub-methods" name = "pub-methods" > < / a >
2020-09-01 16:00:33 +02:00
Public Member Functions< / h2 > < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a708e7b52aae1fa3c440ef7ced3f06cd9" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a708e7b52aae1fa3c440ef7ced3f06cd9" > LinearExpr< / a > ()< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a708e7b52aae1fa3c440ef7ced3f06cd9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memitem:a7b163def8264a8ab405bb6069340d2c6" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a7b163def8264a8ab405bb6069340d2c6" > LinearExpr< / a > (double < a class = "el" href = "variable__and__expressions_8cc.html#a98c17ae8d99a73259ea78de8c4b66254" > constant< / a > )< / td > < / tr >
< tr class = "memdesc:a7b163def8264a8ab405bb6069340d2c6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Possible implicit conversions are intentional. < a href = "classoperations__research_1_1_linear_expr.html#a7b163def8264a8ab405bb6069340d2c6" > More...< / a > < br / > < / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a7b163def8264a8ab405bb6069340d2c6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > LinearExpr< / a > (const < a class = "el" href = "classoperations__research_1_1_m_p_variable.html" > MPVariable< / a > *< a class = "el" href = "sat__solver_8cc.html#a8392bdc4ed570e6a95c7fca35b09f83f" > var< / a > )< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a8bf5a8a9a39766ad2665df3918fa16f5" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a8bf5a8a9a39766ad2665df3918fa16f5" > operator+=< / a > (const < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > & rhs)< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a8bf5a8a9a39766ad2665df3918fa16f5" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a8e15a84c5f3a2689174372cc15e62848" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a8e15a84c5f3a2689174372cc15e62848" > operator-=< / a > (const < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > & rhs)< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a8e15a84c5f3a2689174372cc15e62848" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memitem:a76cff2db2d37cf7bb3853edae5791536" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a76cff2db2d37cf7bb3853edae5791536" > operator*=< / a > (double rhs)< / td > < / tr >
< tr class = "separator:a76cff2db2d37cf7bb3853edae5791536" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a9e9625e3efbde1a73eaf5a49d11487fc" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a9e9625e3efbde1a73eaf5a49d11487fc" > operator/=< / a > (double rhs)< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a9e9625e3efbde1a73eaf5a49d11487fc" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a32985ab0882c48b374e1d26e0fdf9ce6" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a32985ab0882c48b374e1d26e0fdf9ce6" > operator-< / a > () const< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a32985ab0882c48b374e1d26e0fdf9ce6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a96ffc785b7b2135c7980c985883ffdd3" > < td class = "memItemLeft" align = "right" valign = "top" > double  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a96ffc785b7b2135c7980c985883ffdd3" > offset< / a > () const< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a96ffc785b7b2135c7980c985883ffdd3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memitem:afb42f5cebaf659f1a302d5062a576af0" > < td class = "memItemLeft" align = "right" valign = "top" > const absl::flat_hash_map< const < a class = "el" href = "classoperations__research_1_1_m_p_variable.html" > MPVariable< / a > *, double > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#afb42f5cebaf659f1a302d5062a576af0" > terms< / a > () const< / td > < / tr >
< tr class = "separator:afb42f5cebaf659f1a302d5062a576af0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a1953d5ae154875095008836cd15ab348" > < td class = "memItemLeft" align = "right" valign = "top" > double  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a1953d5ae154875095008836cd15ab348" > SolutionValue< / a > () const< / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memdesc:a1953d5ae154875095008836cd15ab348" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Evaluates the value of this expression at the solution found. < a href = "classoperations__research_1_1_linear_expr.html#a1953d5ae154875095008836cd15ab348" > More...< / a > < br / > < / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a1953d5ae154875095008836cd15ab348" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a19c380b03cea21d7ac7325136a131ff0" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#a19c380b03cea21d7ac7325136a131ff0" > ToString< / a > () const< / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memdesc:a19c380b03cea21d7ac7325136a131ff0" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > A human readable representation of this. < a href = "classoperations__research_1_1_linear_expr.html#a19c380b03cea21d7ac7325136a131ff0" > More...< / a > < br / > < / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a19c380b03cea21d7ac7325136a131ff0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
2022-01-17 21:42:14 +01:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "pub-static-methods" name = "pub-static-methods" > < / a >
2020-09-01 16:00:33 +02:00
Static Public Member Functions< / h2 > < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:af7090523fa7dfe3329099051940decfc" > < td class = "memItemLeft" align = "right" valign = "top" > static < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html#af7090523fa7dfe3329099051940decfc" > NotVar< / a > (< a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > < a class = "el" href = "sat__solver_8cc.html#a8392bdc4ed570e6a95c7fca35b09f83f" > var< / a > )< / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memdesc:af7090523fa7dfe3329099051940decfc" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns 1-var. < a href = "classoperations__research_1_1_linear_expr.html#af7090523fa7dfe3329099051940decfc" > More...< / a > < br / > < / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:af7090523fa7dfe3329099051940decfc" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2022-01-17 21:42:14 +01:00
< a id = "a708e7b52aae1fa3c440ef7ced3f06cd9" name = "a708e7b52aae1fa3c440ef7ced3f06cd9" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a708e7b52aae1fa3c440ef7ced3f06cd9" > ◆ < / a > < / span > LinearExpr() < span class = "overload" > [1/3]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00026" > 26< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a7b163def8264a8ab405bb6069340d2c6" name = "a7b163def8264a8ab405bb6069340d2c6" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a7b163def8264a8ab405bb6069340d2c6" > ◆ < / a > < / span > LinearExpr() < span class = "overload" > [2/3]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
< td class = "paramtype" > double  < / td >
< td class = "paramname" > < em > constant< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Possible implicit conversions are intentional. < / p >
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00024" > 24< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "ab2ca0acd2e70df1dbf8ec0d516bc7fcc" name = "ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > ◆ < / a > < / span > LinearExpr() < span class = "overload" > [3/3]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
2020-10-09 12:00:09 +02:00
< td class = "paramtype" > const < a class = "el" href = "classoperations__research_1_1_m_p_variable.html" > MPVariable< / a > *  < / td >
2020-09-01 16:00:33 +02:00
< td class = "paramname" > < em > var< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00028" > 28< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2022-01-17 21:42:14 +01:00
< a id = "af7090523fa7dfe3329099051940decfc" name = "af7090523fa7dfe3329099051940decfc" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#af7090523fa7dfe3329099051940decfc" > ◆ < / a > < / span > NotVar()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > NotVar < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
2020-10-09 12:00:09 +02:00
< td class = "paramtype" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a >   < / td >
2020-09-01 16:00:33 +02:00
< td class = "paramname" > < em > var< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Returns 1-var. < / p >
2022-01-17 21:42:14 +01:00
< p > NOTE(user): if var is binary variable, this corresponds to the logical negation of var. Passing by value is intentional, see the discussion on binary ops. < / p >
2020-09-01 16:00:33 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00069" > 69< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a96ffc785b7b2135c7980c985883ffdd3" name = "a96ffc785b7b2135c7980c985883ffdd3" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a96ffc785b7b2135c7980c985883ffdd3" > ◆ < / a > < / span > offset()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > double offset < / 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 = "linear__expr_8h_source.html#l00142" > 142< / a > of file < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a76cff2db2d37cf7bb3853edae5791536" name = "a76cff2db2d37cf7bb3853edae5791536" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a76cff2db2d37cf7bb3853edae5791536" > ◆ < / a > < / span > operator*=()< / h2 >
2020-09-01 16:00:33 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2022-01-17 21:42:14 +01:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > & operator*= < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
< td class = "paramtype" > double  < / td >
< td class = "paramname" > < em > rhs< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00048" > 48< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a8bf5a8a9a39766ad2665df3918fa16f5" name = "a8bf5a8a9a39766ad2665df3918fa16f5" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a8bf5a8a9a39766ad2665df3918fa16f5" > ◆ < / a > < / span > operator+=()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > & operator+= < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
2020-10-09 12:00:09 +02:00
< td class = "paramtype" > const < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > &   < / td >
2020-09-01 16:00:33 +02:00
< td class = "paramname" > < em > rhs< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00032" > 32< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a32985ab0882c48b374e1d26e0fdf9ce6" name = "a32985ab0882c48b374e1d26e0fdf9ce6" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a32985ab0882c48b374e1d26e0fdf9ce6" > ◆ < / a > < / span > operator-()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > operator- < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00066" > 66< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a8e15a84c5f3a2689174372cc15e62848" name = "a8e15a84c5f3a2689174372cc15e62848" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a8e15a84c5f3a2689174372cc15e62848" > ◆ < / a > < / span > operator-=()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > & operator-= < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
2020-10-09 12:00:09 +02:00
< td class = "paramtype" > const < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > &   < / td >
2020-09-01 16:00:33 +02:00
< td class = "paramname" > < em > rhs< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00040" > 40< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a9e9625e3efbde1a73eaf5a49d11487fc" name = "a9e9625e3efbde1a73eaf5a49d11487fc" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a9e9625e3efbde1a73eaf5a49d11487fc" > ◆ < / a > < / span > operator/=()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > & operator/= < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
< td class = "paramtype" > double  < / td >
< td class = "paramname" > < em > rhs< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00061" > 61< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a1953d5ae154875095008836cd15ab348" name = "a1953d5ae154875095008836cd15ab348" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a1953d5ae154875095008836cd15ab348" > ◆ < / a > < / span > SolutionValue()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > double SolutionValue < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Evaluates the value of this expression at the solution found. < / p >
2022-01-17 21:42:14 +01:00
< p > It must be called only after calling < a class = "el" href = "classoperations__research_1_1_m_p_solver.html#acede9075c58cb2f506c99a9fe6f20303" title = "Solves the problem using the default parameter values." > MPSolver::Solve< / a > . < / p >
2020-09-01 16:00:33 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00075" > 75< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "afb42f5cebaf659f1a302d5062a576af0" name = "afb42f5cebaf659f1a302d5062a576af0" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#afb42f5cebaf659f1a302d5062a576af0" > ◆ < / a > < / span > terms()< / h2 >
2020-09-01 16:00:33 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2022-01-17 21:42:14 +01:00
< td class = "memname" > const absl::flat_hash_map< const < a class = "el" href = "classoperations__research_1_1_m_p_variable.html" > MPVariable< / a > *, double > & terms < / td >
2020-09-01 16:00:33 +02:00
< 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 = "linear__expr_8h_source.html#l00143" > 143< / a > of file < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a19c380b03cea21d7ac7325136a131ff0" name = "a19c380b03cea21d7ac7325136a131ff0" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a19c380b03cea21d7ac7325136a131ff0" > ◆ < / a > < / span > ToString()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > std::string ToString < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > A human readable representation of this. < / p >
2022-01-17 21:42:14 +01:00
< p > Variables will be printed in order of lowest index first. < / p >
2020-09-01 16:00:33 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "linear__expr_8cc_source.html#l00119" > 119< / a > of file < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.cc< / a > .< / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > < a class = "el" href = "linear__expr_8h_source.html" > linear_expr.h< / a > < / li >
< li > < a class = "el" href = "linear__expr_8cc_source.html" > linear_expr.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 >
2020-10-09 12:00:09 +02:00
< li class = "navelem" > < a class = "el" href = "namespaceoperations__research.html" > operations_research< / a > < / li > < li class = "navelem" > < a class = "el" href = "classoperations__research_1_1_linear_expr.html" > LinearExpr< / a > < / li >
2020-09-01 16:00:33 +02:00
< li class = "footer" > Generated by
< a href = "http://www.doxygen.org/index.html" >
2022-01-17 21:42:14 +01:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.9.3 < / li >
2020-09-01 16:00:33 +02:00
< / ul >
< / div >
< / body >
< / html >