![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 228 of file model_builder_helper.h.
#include <model_builder_helper.h>
Public Member Functions | |
| Variable (ModelBuilderHelper *helper, int index) | |
| Variable (ModelBuilderHelper *helper, double lb, double ub, bool is_integral) | |
| Variable (ModelBuilderHelper *helper, double lb, double ub, bool is_integral, const std::string &name) | |
| Variable (ModelBuilderHelper *helper, int64_t lb, int64_t ub, bool is_integral) | |
| Variable (ModelBuilderHelper *helper, int64_t lb, int64_t ub, bool is_integral, const std::string &name) | |
| ~Variable () override | |
| ModelBuilderHelper * | helper () const |
| int | index () const |
| std::string | name () const |
| void | SetName (const std::string &name) |
| double | lower_bounds () const |
| void | SetLowerBound (double lb) |
| double | upper_bound () const |
| void | SetUpperBound (double ub) |
| bool | is_integral () const |
| void | SetIsIntegral (bool is_integral) |
| double | objective_coefficient () const |
| void | SetObjectiveCoefficient (double coeff) |
| void | Visit (ExprVisitor &lin, double c) override |
| std::string | ToString () const override |
| std::string | DebugString () const override |
| bool | operator< (const Variable &other) const |
| Public Member Functions inherited from operations_research::mb::LinearExpr | |
| virtual | ~LinearExpr ()=default |
| std::shared_ptr< LinearExpr > | Add (std::shared_ptr< LinearExpr > expr) |
| virtual std::shared_ptr< LinearExpr > | AddFloat (double cst) |
| std::shared_ptr< LinearExpr > | Sub (std::shared_ptr< LinearExpr > expr) |
| virtual std::shared_ptr< LinearExpr > | SubFloat (double cst) |
| virtual std::shared_ptr< LinearExpr > | RSubFloat (double cst) |
| virtual std::shared_ptr< LinearExpr > | MulFloat (double cst) |
| virtual 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) |
Protected Attributes | |
| ModelBuilderHelper * | helper_ |
| int | index_ |
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) |
| 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::Variable::Variable | ( | ModelBuilderHelper * | helper, |
| int | index ) |
Definition at line 1217 of file model_builder_helper.cc.
| operations_research::mb::Variable::Variable | ( | ModelBuilderHelper * | helper, |
| double | lb, | ||
| double | ub, | ||
| bool | is_integral ) |
Definition at line 1220 of file model_builder_helper.cc.
| operations_research::mb::Variable::Variable | ( | ModelBuilderHelper * | helper, |
| double | lb, | ||
| double | ub, | ||
| bool | is_integral, | ||
| const std::string & | name ) |
Definition at line 1229 of file model_builder_helper.cc.
| operations_research::mb::Variable::Variable | ( | ModelBuilderHelper * | helper, |
| int64_t | lb, | ||
| int64_t | ub, | ||
| bool | is_integral ) |
Definition at line 1239 of file model_builder_helper.cc.
| operations_research::mb::Variable::Variable | ( | ModelBuilderHelper * | helper, |
| int64_t | lb, | ||
| int64_t | ub, | ||
| bool | is_integral, | ||
| const std::string & | name ) |
Definition at line 1248 of file model_builder_helper.cc.
|
inlineoverride |
Definition at line 238 of file model_builder_helper.h.
|
overridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 1266 of file model_builder_helper.cc.
|
inline |
Definition at line 240 of file model_builder_helper.h.
|
inline |
Definition at line 241 of file model_builder_helper.h.
| bool operations_research::mb::Variable::is_integral | ( | ) | const |
Definition at line 1296 of file model_builder_helper.cc.
| double operations_research::mb::Variable::lower_bounds | ( | ) | const |
Definition at line 1284 of file model_builder_helper.cc.
| std::string operations_research::mb::Variable::name | ( | ) | const |
Definition at line 1274 of file model_builder_helper.cc.
| double operations_research::mb::Variable::objective_coefficient | ( | ) | const |
Definition at line 1302 of file model_builder_helper.cc.
|
inline |
Definition at line 263 of file model_builder_helper.h.
| void operations_research::mb::Variable::SetIsIntegral | ( | bool | is_integral | ) |
Definition at line 1298 of file model_builder_helper.cc.
| void operations_research::mb::Variable::SetLowerBound | ( | double | lb | ) |
Definition at line 1286 of file model_builder_helper.cc.
| void operations_research::mb::Variable::SetName | ( | const std::string & | name | ) |
Definition at line 1280 of file model_builder_helper.cc.
| void operations_research::mb::Variable::SetObjectiveCoefficient | ( | double | coeff | ) |
Definition at line 1306 of file model_builder_helper.cc.
| void operations_research::mb::Variable::SetUpperBound | ( | double | ub | ) |
Definition at line 1292 of file model_builder_helper.cc.
|
overridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 1258 of file model_builder_helper.cc.
| double operations_research::mb::Variable::upper_bound | ( | ) | const |
Definition at line 1290 of file model_builder_helper.cc.
|
inlineoverridevirtual |
Implements operations_research::mb::LinearExpr.
Definition at line 253 of file model_builder_helper.h.
|
protected |
Definition at line 266 of file model_builder_helper.h.
|
protected |
Definition at line 267 of file model_builder_helper.h.