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" >
2020-01-27 13:48:26 +01:00
< span id = "sfml" > Google OR-Tools 7.5< / span >
2019-07-15 17:42:24 -07:00
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< div id = "content" style = "width: 100%; overflow: hidden;" >
< div style = "margin-left: 15px; margin-top: 5px; float: left; color: #145A32;" >
2019-08-12 09:16:03 -07:00
< h2 > C++ Reference< / h2 >
2019-08-07 18:01:08 -07:00
< ul >
< li > < a href = "../cpp_algorithms/annotated.html" > Algorithms< / a > < / li >
2019-08-12 09:16:03 -07:00
< li > < a href = "../cpp_sat/annotated.html" > CP-SAT< / a > < / li >
2019-08-07 18:01:08 -07:00
< li > < a href = "../cpp_graph/annotated.html" > Graph< / a > < / li >
< li > < a href = "../cpp_routing/annotated.html" > Routing< / a > < / li >
< li > < a href = "../cpp_linear/annotated.html" > Linear solver< / a > < / li >
< / ul >
< / div >
2019-07-15 17:42:24 -07:00
< div id = "content" >
2019-08-07 18:01:08 -07:00
< div align = "center" >
< h1 style = "color: #145A32;" > C++ Reference: Linear solver< / h1 >
< / div >
2020-01-27 13:48:26 +01:00
<!-- Generated by Doxygen 1.8.18 -->
2019-07-15 17:42:24 -07:00
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< 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 >
2019-08-07 18:01:08 -07:00
< div id = "nav-path" class = "navpath" >
< 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_1LinearExpr.html" > LinearExpr< / a > < / li > < / ul >
2019-07-15 17:42:24 -07:00
< / div >
2019-08-07 18:01:08 -07:00
< / div > <!-- top -->
2019-07-15 17:42:24 -07:00
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "#pub-static-methods" > Static Public Member Functions< / a > |
< a href = "classoperations__research_1_1LinearExpr-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
2019-08-07 18:01:08 -07:00
< div class = "title" > LinearExpr< / div > < / div >
2019-07-15 17:42:24 -07:00
< / div > <!-- header -->
< div class = "contents" >
2019-08-12 23:15:11 -07:00
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > < 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 > models a quantity that is linear in the decision variables (< a class = "el" href = "classoperations__research_1_1MPVariable.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_1LinearExpr.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_1MPSolver.html" title = "This mathematical programming (MP) solver class is the main class though which users build and solve ..." > MPSolver< / a > "solver" to:< / p > < ul >
< li > < p class = "startli" > Set as the objective of your optimization problem, e.g.< / p >
< 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 >
< p class = "startli" > solver.Solve(); linear_expr.SolutionValue();< / p >
< / li >
< / ul >
< p > < 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 > is allowed to delete variables with coefficient zero from the map, but is not obligated to do so. < / p >
2019-08-07 18:01:08 -07:00
2019-08-12 23:15:11 -07: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" >
2019-08-07 18:01:08 -07:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a708e7b52aae1fa3c440ef7ced3f06cd9" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#a708e7b52aae1fa3c440ef7ced3f06cd9" > LinearExpr< / a > ()< / td > < / tr >
< tr class = "separator:a708e7b52aae1fa3c440ef7ced3f06cd9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7b163def8264a8ab405bb6069340d2c6" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#a7b163def8264a8ab405bb6069340d2c6" > LinearExpr< / a > (double constant)< / td > < / tr >
2019-11-14 13:52:51 -08:00
< tr class = "memdesc:a7b163def8264a8ab405bb6069340d2c6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Possible implicit conversions are intentional. < a href = "classoperations__research_1_1LinearExpr.html#a7b163def8264a8ab405bb6069340d2c6" > More...< / a > < br / > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "separator:a7b163def8264a8ab405bb6069340d2c6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > LinearExpr< / a > (const < a class = "el" href = "classoperations__research_1_1MPVariable.html" > MPVariable< / a > *var)< / td > < / tr >
< tr class = "separator:ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af45a590e01bfd8bf93c5f41a296f7b9a" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#af45a590e01bfd8bf93c5f41a296f7b9a" > operator+=< / a > (const < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > & rhs)< / td > < / tr >
< tr class = "separator:af45a590e01bfd8bf93c5f41a296f7b9a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad5070ceea6bb6c91e5ead49dd67696e4" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#ad5070ceea6bb6c91e5ead49dd67696e4" > operator-=< / a > (const < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > & rhs)< / td > < / tr >
< tr class = "separator:ad5070ceea6bb6c91e5ead49dd67696e4" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-11-14 13:52:51 -08:00
< tr class = "memitem:a5a3e5b8fa7c10e4b347e9757ba54360c" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#a5a3e5b8fa7c10e4b347e9757ba54360c" > operator*=< / a > (double rhs)< / td > < / tr >
< tr class = "separator:a5a3e5b8fa7c10e4b347e9757ba54360c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "memitem:ad77266a8988cfa2f5dcb9d25276cd4dc" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#ad77266a8988cfa2f5dcb9d25276cd4dc" > operator/=< / a > (double rhs)< / td > < / tr >
< tr class = "separator:ad77266a8988cfa2f5dcb9d25276cd4dc" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a32985ab0882c48b374e1d26e0fdf9ce6" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#a32985ab0882c48b374e1d26e0fdf9ce6" > operator-< / a > () const< / td > < / tr >
< tr class = "separator:a32985ab0882c48b374e1d26e0fdf9ce6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< 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_1LinearExpr.html#a96ffc785b7b2135c7980c985883ffdd3" > offset< / a > () const< / td > < / tr >
< tr class = "separator:a96ffc785b7b2135c7980c985883ffdd3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a665001590f89bb9446d0030e2ef8047b" > < td class = "memItemLeft" align = "right" valign = "top" > const absl::flat_hash_map< const < a class = "el" href = "classoperations__research_1_1MPVariable.html" > MPVariable< / a > *, double > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#a665001590f89bb9446d0030e2ef8047b" > terms< / a > () const< / td > < / tr >
< tr class = "separator:a665001590f89bb9446d0030e2ef8047b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< 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_1LinearExpr.html#a1953d5ae154875095008836cd15ab348" > SolutionValue< / a > () const< / td > < / tr >
2019-11-14 13:52:51 -08: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_1LinearExpr.html#a1953d5ae154875095008836cd15ab348" > More...< / a > < br / > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "separator:a1953d5ae154875095008836cd15ab348" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< 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_1LinearExpr.html#a19c380b03cea21d7ac7325136a131ff0" > ToString< / a > () const< / td > < / tr >
2019-11-14 13:52:51 -08:00
< tr class = "memdesc:a19c380b03cea21d7ac7325136a131ff0" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > A human readable representation of this. < a href = "classoperations__research_1_1LinearExpr.html#a19c380b03cea21d7ac7325136a131ff0" > More...< / a > < br / > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "separator:a19c380b03cea21d7ac7325136a131ff0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-static-methods" > < / a >
Static Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a11dac3cad352ecca7e70e1c82b93a419" > < td class = "memItemLeft" align = "right" valign = "top" > static < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html#a11dac3cad352ecca7e70e1c82b93a419" > NotVar< / a > (< a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > var)< / td > < / tr >
2019-11-14 13:52:51 -08:00
< tr class = "memdesc:a11dac3cad352ecca7e70e1c82b93a419" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns 1-var. < a href = "classoperations__research_1_1LinearExpr.html#a11dac3cad352ecca7e70e1c82b93a419" > More...< / a > < br / > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "separator:a11dac3cad352ecca7e70e1c82b93a419" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
2019-08-12 23:15:11 -07:00
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2019-08-07 18:01:08 -07:00
< a id = "a708e7b52aae1fa3c440ef7ced3f06cd9" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a708e7b52aae1fa3c440ef7ced3f06cd9" > ◆ < / a > < / span > LinearExpr() < span class = "overload" > [1/3]< / span > < / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > < / td >
2019-07-15 17:42:24 -07:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a7b163def8264a8ab405bb6069340d2c6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a7b163def8264a8ab405bb6069340d2c6" > ◆ < / a > < / span > LinearExpr() < span class = "overload" > [2/3]< / span > < / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > < / td >
2019-07-15 17:42:24 -07: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 >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab2ca0acd2e70df1dbf8ec0d516bc7fcc" > ◆ < / a > < / span > LinearExpr() < span class = "overload" > [3/3]< / span > < / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > < / td >
2019-07-15 17:42:24 -07:00
< td > (< / td >
< td class = "paramtype" > const < a class = "el" href = "classoperations__research_1_1MPVariable.html" > MPVariable< / a > *  < / td >
< td class = "paramname" > < em > var< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2019-08-07 18:01:08 -07:00
< a id = "a11dac3cad352ecca7e70e1c82b93a419" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a11dac3cad352ecca7e70e1c82b93a419" > ◆ < / a > < / span > NotVar()< / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > static < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > NotVar < / td >
2019-07-15 17:42:24 -07:00
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a >   < / td >
< 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 >
< 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 >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a96ffc785b7b2135c7980c985883ffdd3" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a96ffc785b7b2135c7980c985883ffdd3" > ◆ < / a > < / span > offset()< / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > double offset < / td >
2019-07-15 17:42:24 -07: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" >
2020-01-27 13:48:26 +01:00
< 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 >
2019-07-15 17:42:24 -07:00
< / div >
< / div >
2019-11-14 13:52:51 -08:00
< a id = "a5a3e5b8fa7c10e4b347e9757ba54360c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a5a3e5b8fa7c10e4b347e9757ba54360c" > ◆ < / a > < / span > operator*=()< / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-11-14 13:52:51 -08:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > & operator*= < / td >
2019-07-15 17:42:24 -07: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" >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "af45a590e01bfd8bf93c5f41a296f7b9a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#af45a590e01bfd8bf93c5f41a296f7b9a" > ◆ < / a > < / span > operator+=()< / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > & operator+= < / td >
2019-07-15 17:42:24 -07:00
< td > (< / td >
< td class = "paramtype" > const < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > &   < / td >
< td class = "paramname" > < em > rhs< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a32985ab0882c48b374e1d26e0fdf9ce6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a32985ab0882c48b374e1d26e0fdf9ce6" > ◆ < / a > < / span > operator-()< / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > operator- < / td >
2019-07-15 17:42:24 -07:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "ad5070ceea6bb6c91e5ead49dd67696e4" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ad5070ceea6bb6c91e5ead49dd67696e4" > ◆ < / a > < / span > operator-=()< / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > & operator-= < / td >
2019-07-15 17:42:24 -07:00
< td > (< / td >
< td class = "paramtype" > const < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > &   < / td >
< td class = "paramname" > < em > rhs< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "ad77266a8988cfa2f5dcb9d25276cd4dc" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ad77266a8988cfa2f5dcb9d25276cd4dc" > ◆ < / a > < / span > operator/=()< / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1LinearExpr.html" > LinearExpr< / a > & operator/= < / td >
2019-07-15 17:42:24 -07: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" >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a1953d5ae154875095008836cd15ab348" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a1953d5ae154875095008836cd15ab348" > ◆ < / a > < / span > SolutionValue()< / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > double SolutionValue < / td >
2019-07-15 17:42:24 -07:00
< 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 >
2019-08-07 18:01:08 -07:00
< p > It must be called only after calling < a class = "el" href = "classoperations__research_1_1MPSolver.html#a9f55f5e7a62b45961982063ebc1e9945" title = "Solves the problem using default parameter values." > MPSolver::Solve< / a > . < / p >
2019-07-15 17:42:24 -07:00
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a665001590f89bb9446d0030e2ef8047b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a665001590f89bb9446d0030e2ef8047b" > ◆ < / a > < / span > terms()< / h2 >
2019-07-15 17:42:24 -07:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > const absl::flat_hash_map< const < a class = "el" href = "classoperations__research_1_1MPVariable.html" > MPVariable< / a > *, double> & terms < / td >
2019-07-15 17:42:24 -07: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" >
2020-01-27 13:48:26 +01:00
< 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 >
2019-08-07 18:01:08 -07:00
< / div >
< / div >
< a id = "a19c380b03cea21d7ac7325136a131ff0" > < / a >
< 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 >
< p > Variables will be printed in order of lowest index first. < / 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 -->
2019-08-07 18:01:08 -07:00
< / div >
2019-07-15 17:42:24 -07:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >