Assign values to variables in MiniZinc by creating an assignment item.
rminizinc::Item
-> AssignItem
.decl
associated declaration
.e
value to be assigned
.delete_flag
used to delete items
.decl
associated declaration
.e
value to be assigned
.delete_flag
used to delete items
new()
constructor
AssignItem$new(decl, value)
decl
declaration associated with assignment.
value
expression to be assigned.
id()
get the name of assigned variable
AssignItem$id()
getValue()
get the value
AssignItem$getValue()
setValue()
set the value
AssignItem$setValue(val)
val
value/expression to be set
getDecl()
get the associated declaration
AssignItem$getDecl()
setDecl()
set the associated declaration
AssignItem$setDecl(decl)
decl
declaration to be set
c_str()
get the MiniZinc representation
AssignItem$c_str()
getDeleteFlag()
delete flag for internal use
AssignItem$getDeleteFlag()
delete()
delete the assignment item
AssignItem$delete()
clone()
The objects of this class are cloneable with this method.
AssignItem$clone(deep = FALSE)
deep
Whether to make a deep clone.