![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
A class to hold linear_expr * a = b. More...
#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) |
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 () |
![]() | |
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 linear_expr * a = b.
Definition at line 232 of file model_builder_helper.h.
operations_research::mb::AffineExpr::AffineExpr | ( | std::shared_ptr< LinearExpr > | expr, |
double | coeff, | ||
double | offset ) |
Definition at line 1076 of file model_builder_helper.cc.
|
overridedefault |
std::shared_ptr< LinearExpr > operations_research::mb::AffineExpr::AddFloat | ( | double | cst | ) |
Definition at line 1085 of file model_builder_helper.cc.
|
inline |
Definition at line 243 of file model_builder_helper.h.
|
overridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 1127 of file model_builder_helper.cc.
|
inline |
Definition at line 242 of file model_builder_helper.h.
std::shared_ptr< LinearExpr > operations_research::mb::AffineExpr::MulFloat | ( | double | cst | ) |
Definition at line 1099 of file model_builder_helper.cc.
std::shared_ptr< LinearExpr > operations_research::mb::AffineExpr::Neg | ( | ) |
Definition at line 1105 of file model_builder_helper.cc.
|
inline |
Definition at line 244 of file model_builder_helper.h.
std::shared_ptr< LinearExpr > operations_research::mb::AffineExpr::RSubFloat | ( | double | cst | ) |
Definition at line 1095 of file model_builder_helper.cc.
std::shared_ptr< LinearExpr > operations_research::mb::AffineExpr::SubFloat | ( | double | cst | ) |
Definition at line 1090 of file model_builder_helper.cc.
|
overridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 1109 of file model_builder_helper.cc.
|
overridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 1080 of file model_builder_helper.cc.