OR-Tools  9.3
expressions.cc File Reference

Go to the source code of this file.

Classes

class  PiecewiseLinearExpr
 

Namespaces

namespace  operations_research
 Collection of objects used to extend the Constraint Solver library.
 

Macros

#define COND_REV_ALLOC(rev, alloc)   rev ? solver()->RevAlloc(alloc) : alloc;
 

Functions

 ABSL_FLAG (bool, cp_disable_expression_optimization, false, "Disable special optimization when creating expressions.")
 
 ABSL_FLAG (bool, cp_share_int_consts, true, "Share IntConst's with the same value.")
 
void CleanVariableOnFail (IntVar *const var)
 
Constraint * SetIsEqual (IntVar *const var, const std::vector< int64_t > &values, const std::vector< IntVar * > &vars)
 
Constraint * SetIsGreaterOrEqual (IntVar *const var, const std::vector< int64_t > &values, const std::vector< IntVar * > &vars)
 
void RestoreBoolValue (IntVar *const var)
 
void LinkVarExpr (Solver *const s, IntExpr *const expr, IntVar *const var)
 

Macro Definition Documentation

◆ COND_REV_ALLOC

#define COND_REV_ALLOC (   rev,
  alloc 
)    rev ? solver()->RevAlloc(alloc) : alloc;

Definition at line 2469 of file expressions.cc.

Function Documentation

◆ ABSL_FLAG() [1/2]

ABSL_FLAG ( bool  ,
cp_disable_expression_optimization  ,
false  ,
"Disable special optimization when creating expressions."   
)

◆ ABSL_FLAG() [2/2]

ABSL_FLAG ( bool  ,
cp_share_int_consts  ,
true  ,
"Share IntConst's with the same value."   
)

Variable Documentation

◆ cst_

const int64_t cst_
protected

Definition at line 2720 of file expressions.cc.

◆ iterator_

IntVarIterator* const iterator_
protected

Definition at line 2189 of file expressions.cc.

◆ limit_

const int64_t limit_
protected

Definition at line 5479 of file expressions.cc.

◆ pow_

const int64_t pow_
protected

Definition at line 5478 of file expressions.cc.

◆ solver_

Solver* const solver_
protected

Definition at line 279 of file expressions.cc.