Non-linear arithmetic expressions over integer variables. More...
Public Types | |
enum | ArithNonLinIntExprType { ANLE_ABS, ANLE_MIN, ANLE_MAX, ANLE_MULT, ANLE_DIV, ANLE_MOD, ANLE_SQR, ANLE_SQRT, ANLE_POW, ANLE_NROOT, ANLE_ELMNT, ANLE_ITE } |
The expression type. More... | |
Public Member Functions | |
ArithNonLinIntExpr (ArithNonLinIntExprType t0, int n0) | |
Constructor. More... | |
ArithNonLinIntExpr (ArithNonLinIntExprType t0, int n0, int a0) | |
Constructor. More... | |
ArithNonLinIntExpr (ArithNonLinIntExprType t0, int n0, const BoolExpr &b0) | |
Constructor. More... | |
~ArithNonLinIntExpr (void) | |
Destructor. More... | |
virtual IntVar | post (Home home, IntVar *ret, IntConLevel icl) const |
Post expression. More... | |
virtual void | post (Home home, IntRelType irt, int c, IntConLevel icl) const |
Post expression to be in relation irt with c. More... | |
virtual void | post (Home home, IntRelType irt, int c, BoolVar b, IntConLevel icl) const |
Post reified expression to be in relation irt with c. More... | |
![]() | |
virtual | ~NonLinIntExpr (void) |
Destructor. More... | |
void * | operator new (size_t size) |
Memory management. More... | |
void | operator delete (void *p, size_t) |
Memory management. More... | |
Public Attributes | |
enum Gecode::MiniModel::ArithNonLinIntExpr::ArithNonLinIntExprType | t |
LinIntExpr * | a |
Expressions. More... | |
int | n |
Size of variable array. More... | |
int | aInt |
Integer argument (used in nroot for example) More... | |
BoolExpr | b |
Boolean expression argument (used in ite for example) More... | |
Additional Inherited Members | |
![]() | |
static IntVar | result (Home home, IntVar *x) |
Return fresh variable if x is NULL, x otherwise. More... | |
static IntVar | result (Home home, IntVar *x, IntVar y) |
Constrain x to be equal to y if x is not NULL. More... | |
Non-linear arithmetic expressions over integer variables.
Definition at line 43 of file int-arith.cpp.
The expression type.
Definition at line 46 of file int-arith.cpp.
|
inline |
Constructor.
Definition at line 69 of file int-arith.cpp.
|
inline |
Constructor.
Definition at line 72 of file int-arith.cpp.
|
inline |
Constructor.
Definition at line 75 of file int-arith.cpp.
|
inline |
Destructor.
Definition at line 78 of file int-arith.cpp.
|
inlinevirtual |
|
inlinevirtual |
Post expression to be in relation irt with c.
Implements Gecode::NonLinIntExpr.
Definition at line 274 of file int-arith.cpp.
|
inlinevirtual |
Post reified expression to be in relation irt with c.
Implements Gecode::NonLinIntExpr.
Definition at line 286 of file int-arith.cpp.
enum Gecode::MiniModel::ArithNonLinIntExpr::ArithNonLinIntExprType Gecode::MiniModel::ArithNonLinIntExpr::t |
LinIntExpr* Gecode::MiniModel::ArithNonLinIntExpr::a |
Expressions.
Definition at line 61 of file int-arith.cpp.
int Gecode::MiniModel::ArithNonLinIntExpr::n |
Size of variable array.
Definition at line 63 of file int-arith.cpp.
int Gecode::MiniModel::ArithNonLinIntExpr::aInt |
Integer argument (used in nroot for example)
Definition at line 65 of file int-arith.cpp.
BoolExpr Gecode::MiniModel::ArithNonLinIntExpr::b |
Boolean expression argument (used in ite for example)
Definition at line 67 of file int-arith.cpp.