Description Super class Public fields Active bindings Methods Examples
Create a set in MiniZinc
rminizinc::Expression -> Set
.setValthe value of the set
.isvthe integer range set
.fsvthe float range set
.etempty set
.delete_flagused to delete items
.setValthe value of the set
.isvthe integer range set
.fsvthe float range set
.etempty set
.delete_flagused to delete items
new()constuctor
Set$new(val = NULL, empty_set = FALSE)
valthe set value
empty_setbool to specify is set is empty(FALSE by default)
getSetVec()get the set expression
Set$getSetVec()
setSetVec()set the set expression
Set$setSetVec(val)
vallist of expressions
isEmpty()is the set empty
Set$isEmpty()
makeEmpty()make the set empty
Set$makeEmpty()
getIsv()return the integer set range
Set$getIsv()
setIsv()set the integer set range
Set$setIsv(val)
valinteger set range
getFsv()get the float set range
Set$getFsv()
setFsv()set the float set range
Set$setFsv(val)
valfloat set range
c_str()get the MiniZinc representation
Set$c_str()
getDeleteFlag()delete flag for internal use
Set$getDeleteFlag()
delete()delete the assignment item
Set$delete()
clone()The objects of this class are cloneable with this method.
Set$clone(deep = FALSE)
deepWhether to make a deep clone.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.