![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
#include <quadratic_constraint.h>
Additional Inherited Members | |
Public Types inherited from operations_research::math_opt::ModelStorageElement< ElementType::kQuadraticConstraint, QuadraticConstraint > | |
using | IdType |
The typed integer used for ids. | |
Protected Member Functions inherited from operations_research::math_opt::ModelStorageElement< ElementType::kQuadraticConstraint, QuadraticConstraint > | |
ModelStorageElement & | operator= (const ModelStorageElement &)=default |
~ModelStorageElement ()=default | |
Protected Member Functions inherited from operations_research::math_opt::ModelStorageItem | |
ModelStorageItem (ModelStorageCPtr storage) | |
ModelStorageItem (const ModelStorageItem &)=default | |
ModelStorageItem & | operator= (const ModelStorageItem &)=default |
ModelStorageItem (ModelStorageItem &&)=default | |
ModelStorageItem & | operator= (ModelStorageItem &&)=default |
~ModelStorageItem ()=default |
A value type that references a quadratic constraint from ModelStorage. Usually this type is passed by copy.
Definition at line 40 of file quadratic_constraint.h.
BoundedQuadraticExpression operations_research::math_opt::QuadraticConstraint::AsBoundedQuadraticExpression | ( | ) | const |
Returns the constraints as a bounded quadratic expression.
The quadratic expression will have a zero offset, even if the constraint was created with a non-zero one. For example:
const QuadraticConstraint c = model.AddQuadraticConstraint(3.2 <= x*x + 1.0 <= 4.2);
///< Here e will contain 3.2 - 1.0 <= x*x <= 4.2 - 1.0. const BoundedQuadraticExpression e = c.AsBoundedQuadraticExpression();
Definition at line 26 of file quadratic_constraint.cc.
|
inline |
Definition at line 105 of file quadratic_constraint.h.
|
inline |
Definition at line 110 of file quadratic_constraint.h.
|
inline |
Returns 0.0 if the variable does not appear in the linear part of the constraint.
Definition at line 115 of file quadratic_constraint.h.
|
inline |
Inline function implementations
Definition at line 90 of file quadratic_constraint.h.
|
default |
Disallow slicing (https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-copy-virtual):
|
inline |
Definition at line 81 of file model_storage_item.h.
|
default |
|
inline |
Definition at line 98 of file quadratic_constraint.h.
|
inline |
All variables that appear in the quadratic constraint with a nonzero coefficient: in the linear terms, the quadratic terms, or both. Order is not defined.
Definition at line 135 of file quadratic_constraint.h.
|
inline |
Returns 0.0 if the variable does not appear in the quadratic part of the constraint.
Definition at line 123 of file quadratic_constraint.h.
|
inline |
Returns a detailed string description of the contents of the constraint (not its name, use << for that instead).
Definition at line 139 of file quadratic_constraint.h.
|
inline |
Definition at line 94 of file quadratic_constraint.h.