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

A QuadraticExpression with upper and lower bounds. More...

#include <variable_and_expressions.h>

Public Member Functions

 BoundedQuadraticExpression (QuadraticExpression expression, double lower_bound, double upper_bound)
 
 BoundedQuadraticExpression (internal::VariablesEquality var_equality)
 Users are not expected to explicitly use the following constructors.
 
 BoundedQuadraticExpression (LowerBoundedLinearExpression lb_expression)
 
 BoundedQuadraticExpression (UpperBoundedLinearExpression ub_expression)
 
 BoundedQuadraticExpression (BoundedLinearExpression bounded_expression)
 
 BoundedQuadraticExpression (LowerBoundedQuadraticExpression lb_expression)
 
 BoundedQuadraticExpression (UpperBoundedQuadraticExpression ub_expression)
 
double lower_bound_minus_offset () const
 
double upper_bound_minus_offset () const
 

Public Attributes

QuadraticExpression expression
 
double lower_bound
 
double upper_bound
 

Detailed Description

A QuadraticExpression with upper and lower bounds.

Definition at line 1091 of file variable_and_expressions.h.

Constructor & Destructor Documentation

◆ BoundedQuadraticExpression() [1/7]

operations_research::math_opt::BoundedQuadraticExpression::BoundedQuadraticExpression ( QuadraticExpression expression,
double lower_bound,
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, 3 <= x * y <= 3.

Definition at line 2804 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [2/7]

operations_research::math_opt::BoundedQuadraticExpression::BoundedQuadraticExpression ( internal::VariablesEquality var_equality)
inline

Users are not expected to explicitly use the following constructors.

Definition at line 2810 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [3/7]

operations_research::math_opt::BoundedQuadraticExpression::BoundedQuadraticExpression ( LowerBoundedLinearExpression lb_expression)
inline

Definition at line 2816 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [4/7]

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

Definition at line 2821 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [5/7]

operations_research::math_opt::BoundedQuadraticExpression::BoundedQuadraticExpression ( BoundedLinearExpression bounded_expression)
inline

Definition at line 2826 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [6/7]

operations_research::math_opt::BoundedQuadraticExpression::BoundedQuadraticExpression ( LowerBoundedQuadraticExpression lb_expression)
inline

Definition at line 2831 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [7/7]

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

Definition at line 2836 of file variable_and_expressions.h.

Member Function Documentation

◆ lower_bound_minus_offset()

double operations_research::math_opt::BoundedQuadraticExpression::lower_bound_minus_offset ( ) const
inline

Returns the actual lower_bound after taking into account the quadratic expression offset.

Definition at line 2842 of file variable_and_expressions.h.

◆ upper_bound_minus_offset()

double operations_research::math_opt::BoundedQuadraticExpression::upper_bound_minus_offset ( ) const
inline

Returns the actual upper_bound after taking into account the quadratic expression offset.

Definition at line 2846 of file variable_and_expressions.h.

Member Data Documentation

◆ expression

QuadraticExpression operations_research::math_opt::BoundedQuadraticExpression::expression

Definition at line 1119 of file variable_and_expressions.h.

◆ lower_bound

double operations_research::math_opt::BoundedQuadraticExpression::lower_bound

Definition at line 1120 of file variable_and_expressions.h.

◆ upper_bound

double operations_research::math_opt::BoundedQuadraticExpression::upper_bound

Definition at line 1121 of file variable_and_expressions.h.


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