Google OR-Tools v9.14
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...

Detailed Description

A QuadraticExpression with upper and lower bounds.

Definition at line 1049 of file variable_and_expressions.h.

#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

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 2717 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 2723 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [3/7]

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

Definition at line 2729 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [4/7]

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

Definition at line 2734 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [5/7]

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

Definition at line 2739 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [6/7]

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

Definition at line 2744 of file variable_and_expressions.h.

◆ BoundedQuadraticExpression() [7/7]

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

Definition at line 2749 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 2755 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 2759 of file variable_and_expressions.h.

Member Data Documentation

◆ expression

QuadraticExpression operations_research::math_opt::BoundedQuadraticExpression::expression

Definition at line 1077 of file variable_and_expressions.h.

◆ lower_bound

double operations_research::math_opt::BoundedQuadraticExpression::lower_bound

Definition at line 1078 of file variable_and_expressions.h.

◆ upper_bound

double operations_research::math_opt::BoundedQuadraticExpression::upper_bound

Definition at line 1079 of file variable_and_expressions.h.


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