Description Super class Public fields Active bindings Methods Examples
Create a set in MiniZinc
rminizinc::Expression
-> Set
.setVal
the value of the set
.isv
the integer range set
.fsv
the float range set
.et
empty set
.delete_flag
used to delete items
.setVal
the value of the set
.isv
the integer range set
.fsv
the float range set
.et
empty set
.delete_flag
used to delete items
new()
constuctor
Set$new(val = NULL, empty_set = FALSE)
val
the set value
empty_set
bool to specify is set is empty(FALSE by default)
getSetVec()
get the set expression
Set$getSetVec()
setSetVec()
set the set expression
Set$setSetVec(val)
val
list 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)
val
integer set range
getFsv()
get the float set range
Set$getFsv()
setFsv()
set the float set range
Set$setFsv(val)
val
float 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)
deep
Whether 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.