![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
#include <model_builder_helper.h>
Public Member Functions | |
SumArray (std::vector< std::shared_ptr< LinearExpr > > exprs, double offset) | |
~SumArray () override=default | |
void | Visit (ExprVisitor &lin, double c) override |
std::string | ToString () const override |
std::string | DebugString () const override |
void | AddInPlace (std::shared_ptr< LinearExpr > expr) |
void | AddFloatInPlace (double cst) |
int | num_exprs () const |
double | offset () const |
![]() | |
virtual | ~LinearExpr ()=default |
std::shared_ptr< LinearExpr > | Add (std::shared_ptr< LinearExpr > expr) |
std::shared_ptr< LinearExpr > | AddFloat (double cst) |
std::shared_ptr< LinearExpr > | Sub (std::shared_ptr< LinearExpr > expr) |
std::shared_ptr< LinearExpr > | SubFloat (double cst) |
std::shared_ptr< LinearExpr > | RSubFloat (double cst) |
std::shared_ptr< LinearExpr > | MulFloat (double cst) |
std::shared_ptr< LinearExpr > | Neg () |
std::shared_ptr< BoundedLinearExpression > | Eq (std::shared_ptr< LinearExpr > rhs) |
std::shared_ptr< BoundedLinearExpression > | EqCst (double rhs) |
std::shared_ptr< BoundedLinearExpression > | Ge (std::shared_ptr< LinearExpr > rhs) |
std::shared_ptr< BoundedLinearExpression > | GeCst (double rhs) |
std::shared_ptr< BoundedLinearExpression > | Le (std::shared_ptr< LinearExpr > rhs) |
std::shared_ptr< BoundedLinearExpression > | LeCst (double rhs) |
Additional Inherited Members | |
![]() | |
static std::shared_ptr< LinearExpr > | Term (std::shared_ptr< LinearExpr > expr, double coeff) |
Expressions. | |
static std::shared_ptr< LinearExpr > | Affine (std::shared_ptr< LinearExpr > expr, double coeff, double constant) |
static std::shared_ptr< LinearExpr > | AffineCst (double value, double coeff, double constant) |
static std::shared_ptr< LinearExpr > | Constant (double value) |
A class to hold a sum of linear expressions, and optional integer and double offsets.
Definition at line 150 of file model_builder_helper.h.
|
inlineexplicit |
Definition at line 152 of file model_builder_helper.h.
|
overridedefault |
|
inline |
Definition at line 205 of file model_builder_helper.h.
|
inline |
Definition at line 204 of file model_builder_helper.h.
|
inlineoverridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 190 of file model_builder_helper.h.
|
inline |
Definition at line 206 of file model_builder_helper.h.
|
inline |
Definition at line 207 of file model_builder_helper.h.
|
inlineoverridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 166 of file model_builder_helper.h.
|
inlineoverridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 157 of file model_builder_helper.h.