OR-Tools  8.1
expressions.cc File Reference

Go to the source code of this file.

Classes

class  PiecewiseLinearExpr
 

Namespaces

 operations_research
 The vehicle routing library lets one model and solve generic vehicle routing problems ranging from the Traveling Salesman Problem to more complex problems such as the Capacitated Vehicle Routing Problem with Time Windows.
 

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 > &values, const std::vector< IntVar * > &vars)
 
Constraint * SetIsGreaterOrEqual (IntVar *const var, const std::vector< int64 > &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 2461 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 cst_
protected

Definition at line 2712 of file expressions.cc.

◆ iterator_

IntVarIterator* const iterator_
protected

Definition at line 2181 of file expressions.cc.

◆ limit_

const int64 limit_
protected

Definition at line 5447 of file expressions.cc.

◆ pow_

const int64 pow_
protected

Definition at line 5446 of file expressions.cc.

◆ solver_

Solver* const solver_
protected

Definition at line 274 of file expressions.cc.