Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <variable_and_expressions.h>
Public Member Functions | |
QuadraticTerm ()=delete | |
QuadraticTerm (Variable first_variable, Variable second_variable, double coefficient) | |
double | coefficient () const |
Variable | first_variable () const |
Variable | second_variable () const |
QuadraticTermKey | GetKey () const |
This is useful for working with IdMaps. | |
QuadraticTerm & | operator*= (double value) |
QuadraticTerm & | operator/= (double value) |
Friends | |
QuadraticTerm | operator- (QuadraticTerm term) |
------------------------— Subtraction (-) ------------------------------— | |
QuadraticTerm | operator* (double lhs, QuadraticTerm rhs) |
-------------------------— Multiplication (*) --------------------------— | |
QuadraticTerm | operator* (QuadraticTerm lhs, double rhs) |
QuadraticTerm | operator/ (QuadraticTerm lhs, double rhs) |
----------------------------— Division (/) -----------------------------— | |
Represents a quadratic term in a sum: coefficient * variable_1 * variable_2. Invariant:
Definition at line 691 of file variable_and_expressions.h.
|
delete |
|
inline |
QuadraticTerm (no arithmetic)
Definition at line 2122 of file variable_and_expressions.h.
|
inline |
Definition at line 2131 of file variable_and_expressions.h.
|
inline |
Definition at line 2132 of file variable_and_expressions.h.
|
inline |
This is useful for working with IdMaps.
Definition at line 2135 of file variable_and_expressions.h.
|
inline |
Definition at line 2712 of file variable_and_expressions.h.
|
inline |
Definition at line 2732 of file variable_and_expressions.h.
|
inline |
Definition at line 2133 of file variable_and_expressions.h.
|
friend |
-------------------------— Multiplication (*) --------------------------—
Definition at line 2474 of file variable_and_expressions.h.
|
friend |
Definition at line 2569 of file variable_and_expressions.h.
|
friend |
------------------------— Subtraction (-) ------------------------------—
We declare those operator overloads that result in a QuadraticTerm, stated in lexicographic ordering based on lhs type, rhs type):
Definition at line 2347 of file variable_and_expressions.h.
|
friend |
----------------------------— Division (/) -----------------------------—
Definition at line 2582 of file variable_and_expressions.h.