TypeInst
Create type instantiation with indices, etc.
TypeInst$new(type = Type$new(base_type = "int", kind = "par" ,dim = 1), domain = Set$new(IntSetVal$new(2,5)))
rminizinc::Expression
-> TypeInst
.indExpr
: the index expression
.domain
: the domain of possible values to be taken
.type
: the type information
.indExpr
: the index expression
.domain
: the domain of possible values to be taken
.type
: the type information
new()
constructor
TypeInst$new(type, indexExprVec = NULL, domain = NULL)
type
: type of declaration
indexExprVec
: expression list of indices
domain
: the domain of decision variables
getDomain()
get the variable domain
TypeInst$getDomain()
setDomain()
set the variable domain
TypeInst$setDomain(dom)
dom
: domain expression to be set
ranges()
return the index expression vector
TypeInst$ranges()
isArray()
check if it's an array
TypeInst$isArray()
type()
return the type information
TypeInst$type()
clone()
The objects of this class are cloneable with this method.
TypeInst$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links