Description Super class Public fields Active bindings Methods Examples
Create ArrayAccess elements in MiniZinc
rminizinc::Expression -> ArrayAccess
.vthe id/value of array
.argsarguments of the array
.delete_flagused to delete items
.vthe id/value of array
.argsarguments of the array
.delete_flagused to delete items
new()constructor
ArrayAccess$new(v, args)
vthe value/identifier of variable decl
argsthe array indices
getV()get the array access value
ArrayAccess$getV()
setV()set the array access value
ArrayAccess$setV(val)
valnew array access value
nargs()get the number of arguments
ArrayAccess$nargs()
getArgs()get the arguments
ArrayAccess$getArgs()
setArgs()set the arguments
ArrayAccess$setArgs(val)
valnew arguments
c_str()return the MiniZinc representation
ArrayAccess$c_str()
getDeleteFlag()delete flag for internal use
ArrayAccess$getDeleteFlag()
delete()delete the assignment item
ArrayAccess$delete()
clone()The objects of this class are cloneable with this method.
ArrayAccess$clone(deep = FALSE)
deepWhether to make a deep clone.
1 2 3 4 5 | vDecl1 = IntSetDecl(name = "SET", kind = "par")
vDecl2 = IntArrDecl(name = "profit", kind = "par", ndim = 1,
ind = list(vDecl1$getId()))
newArrayAccess = ArrayAccess$new(v = vDecl2$getId(),
args = list(IntDecl(name = "i", kind = "par")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.