![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
A class to hold linear_expr * a = b. More...
A class to hold linear_expr * a = b.
Definition at line 186 of file model_builder_helper.h.
#include <model_builder_helper.h>
Public Member Functions | |
AffineExpr (std::shared_ptr< LinearExpr > expr, double coeff, double offset) | |
~AffineExpr () override=default | |
void | Visit (ExprVisitor &lin, double c) override |
std::string | ToString () const override |
std::string | DebugString () const override |
std::shared_ptr< LinearExpr > | expression () const |
double | coefficient () const |
double | offset () const |
std::shared_ptr< LinearExpr > | AddFloat (double cst) override |
std::shared_ptr< LinearExpr > | SubFloat (double cst) override |
std::shared_ptr< LinearExpr > | RSubFloat (double cst) override |
std::shared_ptr< LinearExpr > | MulFloat (double cst) override |
std::shared_ptr< LinearExpr > | Neg () override |
Public Member Functions inherited from operations_research::mb::LinearExpr | |
virtual | ~LinearExpr ()=default |
std::shared_ptr< LinearExpr > | Add (std::shared_ptr< LinearExpr > expr) |
std::shared_ptr< LinearExpr > | Sub (std::shared_ptr< LinearExpr > expr) |
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 Public Member Functions inherited from operations_research::mb::LinearExpr | |
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) |
operations_research::mb::AffineExpr::AffineExpr | ( | std::shared_ptr< LinearExpr > | expr, |
double | coeff, | ||
double | offset ) |
Definition at line 1137 of file model_builder_helper.cc.
|
overridedefault |
|
overridevirtual |
Reimplemented from operations_research::mb::LinearExpr.
Definition at line 1146 of file model_builder_helper.cc.
|
inline |
Definition at line 197 of file model_builder_helper.h.
|
overridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 1188 of file model_builder_helper.cc.
|
inline |
Definition at line 196 of file model_builder_helper.h.
|
overridevirtual |
Reimplemented from operations_research::mb::LinearExpr.
Definition at line 1160 of file model_builder_helper.cc.
|
overridevirtual |
Reimplemented from operations_research::mb::LinearExpr.
Definition at line 1166 of file model_builder_helper.cc.
|
inline |
Definition at line 198 of file model_builder_helper.h.
|
overridevirtual |
Reimplemented from operations_research::mb::LinearExpr.
Definition at line 1156 of file model_builder_helper.cc.
|
overridevirtual |
Reimplemented from operations_research::mb::LinearExpr.
Definition at line 1151 of file model_builder_helper.cc.
|
overridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 1170 of file model_builder_helper.cc.
|
overridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 1141 of file model_builder_helper.cc.