Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::UpperBoundedLinearExpression Struct Reference

A LinearExpression with an upper bound. More...

#include <variable_and_expressions.h>

Public Member Functions

 UpperBoundedLinearExpression (LinearExpression expression, double upper_bound)
 

Public Attributes

LinearExpression expression
 
double upper_bound
 

Detailed Description

A LinearExpression with an upper bound.

Definition at line 510 of file variable_and_expressions.h.

Constructor & Destructor Documentation

◆ UpperBoundedLinearExpression()

operations_research::math_opt::UpperBoundedLinearExpression::UpperBoundedLinearExpression ( LinearExpression expression,
double upper_bound )
inline

Users are not expected to use this constructor. Instead they should build this object using overloads of the >= and <= operators. For example, x + y / <= 3.

Definition at line 1766 of file variable_and_expressions.h.

Member Data Documentation

◆ expression

LinearExpression operations_research::math_opt::UpperBoundedLinearExpression::expression

Definition at line 516 of file variable_and_expressions.h.

◆ upper_bound

double operations_research::math_opt::UpperBoundedLinearExpression::upper_bound

Definition at line 517 of file variable_and_expressions.h.


The documentation for this struct was generated from the following file: