Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::mb::SumArray Class Reference

Detailed Description

Definition at line 148 of file model_builder_helper.h.

#include <model_builder_helper.h>

Inheritance diagram for operations_research::mb::SumArray:
operations_research::mb::LinearExpr

Public Member Functions

 SumArray (std::vector< std::shared_ptr< LinearExpr > > exprs, double offset)
 ~SumArray () override=default
void Visit (ExprVisitor &lin, double c) override
std::string ToString () const override
std::string DebugString () const override
std::shared_ptr< LinearExpr > AddInPlace (std::shared_ptr< LinearExpr > expr)
std::shared_ptr< LinearExpr > AddFloatInPlace (double cst)
int num_exprs () const
double offset () 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)

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)

Constructor & Destructor Documentation

◆ SumArray()

operations_research::mb::SumArray::SumArray ( std::vector< std::shared_ptr< LinearExpr > > exprs,
double offset )
explicit

Definition at line 978 of file model_builder_helper.cc.

◆ ~SumArray()

operations_research::mb::SumArray::~SumArray ( )
overridedefault

Member Function Documentation

◆ AddFloatInPlace()

std::shared_ptr< LinearExpr > operations_research::mb::SumArray::AddFloatInPlace ( double cst)

Definition at line 1035 of file model_builder_helper.cc.

◆ AddInPlace()

std::shared_ptr< LinearExpr > operations_research::mb::SumArray::AddInPlace ( std::shared_ptr< LinearExpr > expr)

Definition at line 1029 of file model_builder_helper.cc.

◆ DebugString()

std::string operations_research::mb::SumArray::DebugString ( ) const
overridevirtual

Implements operations_research::mb::LinearExpr.

Definition at line 1015 of file model_builder_helper.cc.

◆ num_exprs()

int operations_research::mb::SumArray::num_exprs ( ) const

Definition at line 1040 of file model_builder_helper.cc.

◆ offset()

double operations_research::mb::SumArray::offset ( ) const

Definition at line 1042 of file model_builder_helper.cc.

◆ ToString()

std::string operations_research::mb::SumArray::ToString ( ) const
overridevirtual

Implements operations_research::mb::LinearExpr.

Definition at line 991 of file model_builder_helper.cc.

◆ Visit()

void operations_research::mb::SumArray::Visit ( ExprVisitor & lin,
double c )
overridevirtual

Implements operations_research::mb::LinearExpr.

Definition at line 982 of file model_builder_helper.cc.


The documentation for this class was generated from the following files: