Description Super class Public fields Active bindings Methods
Describe Minizinc constraints on decision variables.
rminizinc::Item -> ConstraintItem
.ethe constraint expression
.delete_flagused to delete items
.ethe constraint expression
.delete_flagused to delete items
new()Creates a new instance of Constraint class.
ConstraintItem$new(e = NULL, mzn_str = NULL)
eThe expression for the constraint (used if e is NULL)
mzn_strstring representation of Constraint item
getExp()get the constraint expression
ConstraintItem$getExp()
setExp()set the constraint expression
ConstraintItem$setExp(e)
eexpression
c_str()serialize to MiniZinc syntax
ConstraintItem$c_str()
getDeleteFlag()delete flag for internal use
ConstraintItem$getDeleteFlag()
delete()delete the constraint item
ConstraintItem$delete()
clone()The objects of this class are cloneable with this method.
ConstraintItem$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.