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

A QuadraticExpression with an upper bound. More...

#include <variable_and_expressions.h>

Public Member Functions

 UpperBoundedQuadraticExpression (QuadraticExpression expression, double upper_bound)
 
 UpperBoundedQuadraticExpression (UpperBoundedLinearExpression ub_expression)
 Users are not expected to explicitly use the following constructor.
 

Public Attributes

QuadraticExpression expression
 
double upper_bound
 

Detailed Description

A QuadraticExpression with an upper bound.

Definition at line 1076 of file variable_and_expressions.h.

Constructor & Destructor Documentation

◆ UpperBoundedQuadraticExpression() [1/2]

operations_research::math_opt::UpperBoundedQuadraticExpression::UpperBoundedQuadraticExpression ( QuadraticExpression 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 2796 of file variable_and_expressions.h.

◆ UpperBoundedQuadraticExpression() [2/2]

operations_research::math_opt::UpperBoundedQuadraticExpression::UpperBoundedQuadraticExpression ( UpperBoundedLinearExpression ub_expression)
inline

Users are not expected to explicitly use the following constructor.

Definition at line 2799 of file variable_and_expressions.h.

Member Data Documentation

◆ expression

QuadraticExpression operations_research::math_opt::UpperBoundedQuadraticExpression::expression

Definition at line 1086 of file variable_and_expressions.h.

◆ upper_bound

double operations_research::math_opt::UpperBoundedQuadraticExpression::upper_bound

Definition at line 1087 of file variable_and_expressions.h.


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