jijzepttools.modeling.utils.expression

jijzepttools.modeling.utils.expression#

Classes#

Functions#

is_same(→ jijzepttools.modeling.utils.type.Expr)

Compare two expressions and return True if they are the same.

has_element(→ bool)

check if expr exists in array

Module Contents#

is_same(expr1: jijzepttools.modeling.utils.type.Expr, expr2: jijzepttools.modeling.utils.type.Expr) jijzepttools.modeling.utils.type.Expr#

Compare two expressions and return True if they are the same. Unlike jm.is_same, this function can compare different types of expressions while the original one gives an error.

has_element(expr: jijzepttools.modeling.utils.type.Expr, array: List[jijzepttools.modeling.utils.type.Expr]) bool#

check if expr exists in array

Parameters:
  • expr (Expr) – _description_

  • array (tp.List[Expr]) – _description_

Returns:

_description_

Return type:

bool

class ExprHolder#
expr: jijzepttools.modeling.utils.type.Expr#