ConstraintItem function

Constraint Items

Constraint Items

Describe Minizinc constraints on decision variables.

Super class

rminizinc::Item -> ConstraintItem

Public fields

  • .e: the constraint expression

  • .delete_flag: used to delete items

Active bindings

  • .e: the constraint expression

  • .delete_flag: used to delete items

Methods

Public methods

Method new()

Creates a new instance of Constraint class.

Usage

ConstraintItem$new(e = NULL, mzn_str = NULL)

Arguments

  • e: The expression for the constraint (used if e is NULL)

  • mzn_str: string representation of Constraint item

Method getExp()

get the constraint expression

Usage

ConstraintItem$getExp()

Method setExp()

set the constraint expression

Usage

ConstraintItem$setExp(e)

Arguments

  • e: expression

Method c_str()

serialize to MiniZinc syntax

Usage

ConstraintItem$c_str()

Method getDeleteFlag()

delete flag for internal use

Usage

ConstraintItem$getDeleteFlag()

Method delete()

delete the constraint item

Usage

ConstraintItem$delete()

Method clone()

The objects of this class are cloneable with this method.

Usage

ConstraintItem$clone(deep = FALSE)

Arguments

  • deep: Whether to make a deep clone.

  • Maintainer: Akshit Achara
  • License: Mozilla Public License Version 2.0
  • Last published: 2021-10-15