A class to hold a variable index.  
 More...
A class to hold a variable index. 
Definition at line 228 of file model_builder_helper.h.
#include <model_builder_helper.h>
|  | 
|  | 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 | 
| 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) | 
◆ Variable() [1/5]
◆ Variable() [2/5]
      
        
          | operations_research::mb::Variable::Variable | ( | ModelBuilderHelper * | helper, | 
        
          |  |  | double | lb, | 
        
          |  |  | double | ub, | 
        
          |  |  | bool | is_integral ) | 
      
 
 
◆ Variable() [3/5]
      
        
          | operations_research::mb::Variable::Variable | ( | ModelBuilderHelper * | helper, | 
        
          |  |  | double | lb, | 
        
          |  |  | double | ub, | 
        
          |  |  | bool | is_integral, | 
        
          |  |  | const std::string & | name ) | 
      
 
 
◆ Variable() [4/5]
      
        
          | operations_research::mb::Variable::Variable | ( | ModelBuilderHelper * | helper, | 
        
          |  |  | int64_t | lb, | 
        
          |  |  | int64_t | ub, | 
        
          |  |  | bool | is_integral ) | 
      
 
 
◆ Variable() [5/5]
      
        
          | operations_research::mb::Variable::Variable | ( | ModelBuilderHelper * | helper, | 
        
          |  |  | int64_t | lb, | 
        
          |  |  | int64_t | ub, | 
        
          |  |  | bool | is_integral, | 
        
          |  |  | const std::string & | name ) | 
      
 
 
◆ ~Variable()
  
  | 
        
          | operations_research::mb::Variable::~Variable | ( |  | ) |  |  | inlineoverride | 
 
 
◆ DebugString()
  
  | 
        
          | std::string operations_research::mb::Variable::DebugString | ( |  | ) | const |  | overridevirtual | 
 
 
◆ helper()
◆ index()
  
  | 
        
          | int operations_research::mb::Variable::index | ( |  | ) | const |  | inline | 
 
 
◆ is_integral()
      
        
          | bool operations_research::mb::Variable::is_integral | ( |  | ) | const | 
      
 
 
◆ lower_bounds()
      
        
          | double operations_research::mb::Variable::lower_bounds | ( |  | ) | const | 
      
 
 
◆ name()
      
        
          | std::string operations_research::mb::Variable::name | ( |  | ) | const | 
      
 
 
◆ objective_coefficient()
      
        
          | double operations_research::mb::Variable::objective_coefficient | ( |  | ) | const | 
      
 
 
◆ operator<()
  
  | 
        
          | bool operations_research::mb::Variable::operator< | ( | const Variable & | other | ) | const |  | inline | 
 
 
◆ SetIsIntegral()
      
        
          | void operations_research::mb::Variable::SetIsIntegral | ( | bool | is_integral | ) |  | 
      
 
 
◆ SetLowerBound()
      
        
          | void operations_research::mb::Variable::SetLowerBound | ( | double | lb | ) |  | 
      
 
 
◆ SetName()
      
        
          | void operations_research::mb::Variable::SetName | ( | const std::string & | name | ) |  | 
      
 
 
◆ SetObjectiveCoefficient()
      
        
          | void operations_research::mb::Variable::SetObjectiveCoefficient | ( | double | coeff | ) |  | 
      
 
 
◆ SetUpperBound()
      
        
          | void operations_research::mb::Variable::SetUpperBound | ( | double | ub | ) |  | 
      
 
 
◆ ToString()
  
  | 
        
          | std::string operations_research::mb::Variable::ToString | ( |  | ) | const |  | overridevirtual | 
 
 
◆ upper_bound()
      
        
          | double operations_research::mb::Variable::upper_bound | ( |  | ) | const | 
      
 
 
◆ Visit()
  
  | 
        
          | void operations_research::mb::Variable::Visit | ( | ExprVisitor & | lin, |  
          |  |  | double | c ) |  | inlineoverridevirtual | 
 
 
◆ helper_
◆ index_
  
  | 
        
          | int operations_research::mb::Variable::index_ |  | protected | 
 
 
The documentation for this class was generated from the following files: