MiniZinc Model class
This class will take all the objects required to create a MiniZinc model.
.items
: list of items in the model
.items
: list of items in the model
new()
create a new instance of model class
Model$new(items)
items
: all items of the model
getItems()
get all the items
Model$getItems()
setItems()
set all the items
Model$setItems(items)
items
: items to be set
getItem()
get the item using index
Model$getItem(i)
i
: index
setItem()
set the item using index
Model$setItem(i, item)
i
: index
item
: item to be set
addItem()
add item to the model
Model$addItem(item)
item
: item to add
nitems()
get the number of items
Model$nitems()
mzn_string()
get the string representation of the model
Model$mzn_string()
clone()
The objects of this class are cloneable with this method.
Model$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links