![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
A linear expression that containing variables and constants. More...
#include <model_builder_helper.h>
Public Member Functions | |
virtual | ~LinearExpr ()=default |
virtual void | Visit (ExprVisitor &, double)=0 |
virtual std::string | ToString () const =0 |
virtual std::string | DebugString () const =0 |
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) |
Static Public Member Functions | |
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 linear expression that containing variables and constants.
Definition at line 50 of file model_builder_helper.h.
|
virtualdefault |
std::shared_ptr< LinearExpr > operations_research::mb::LinearExpr::Add | ( | std::shared_ptr< LinearExpr > | expr | ) |
Definition at line 808 of file model_builder_helper.cc.
std::shared_ptr< LinearExpr > operations_research::mb::LinearExpr::AddFloat | ( | double | cst | ) |
Definition at line 815 of file model_builder_helper.cc.
|
static |
Definition at line 793 of file model_builder_helper.cc.
|
static |
Definition at line 799 of file model_builder_helper.cc.
|
static |
Definition at line 804 of file model_builder_helper.cc.
|
pure virtual |
std::shared_ptr< BoundedLinearExpression > operations_research::mb::LinearExpr::Eq | ( | std::shared_ptr< LinearExpr > | rhs | ) |
Definition at line 1131 of file model_builder_helper.cc.
std::shared_ptr< BoundedLinearExpression > operations_research::mb::LinearExpr::EqCst | ( | double | rhs | ) |
Definition at line 1137 of file model_builder_helper.cc.
std::shared_ptr< BoundedLinearExpression > operations_research::mb::LinearExpr::Ge | ( | std::shared_ptr< LinearExpr > | rhs | ) |
Definition at line 1153 of file model_builder_helper.cc.
std::shared_ptr< BoundedLinearExpression > operations_research::mb::LinearExpr::GeCst | ( | double | rhs | ) |
Definition at line 1159 of file model_builder_helper.cc.
std::shared_ptr< BoundedLinearExpression > operations_research::mb::LinearExpr::Le | ( | std::shared_ptr< LinearExpr > | rhs | ) |
Definition at line 1142 of file model_builder_helper.cc.
std::shared_ptr< BoundedLinearExpression > operations_research::mb::LinearExpr::LeCst | ( | double | rhs | ) |
Definition at line 1148 of file model_builder_helper.cc.
std::shared_ptr< LinearExpr > operations_research::mb::LinearExpr::MulFloat | ( | double | cst | ) |
Definition at line 837 of file model_builder_helper.cc.
std::shared_ptr< LinearExpr > operations_research::mb::LinearExpr::Neg | ( | ) |
Definition at line 843 of file model_builder_helper.cc.
std::shared_ptr< LinearExpr > operations_research::mb::LinearExpr::RSubFloat | ( | double | cst | ) |
Definition at line 833 of file model_builder_helper.cc.
std::shared_ptr< LinearExpr > operations_research::mb::LinearExpr::Sub | ( | std::shared_ptr< LinearExpr > | expr | ) |
Definition at line 820 of file model_builder_helper.cc.
std::shared_ptr< LinearExpr > operations_research::mb::LinearExpr::SubFloat | ( | double | cst | ) |
Definition at line 828 of file model_builder_helper.cc.
|
static |
Expressions.
Definition at line 788 of file model_builder_helper.cc.
|
pure virtual |
|
pure virtual |