| TypeInst {rminizinc} | R Documentation |
TypeInst
Description
Create type instantiation with indices, etc.
Super class
rminizinc::Expression -> TypeInst
Public fields
.indExprthe index expression
.domainthe domain of possible values to be taken
.typethe type information
Active bindings
.indExprthe index expression
.domainthe domain of possible values to be taken
.typethe type information
Methods
Public methods
Inherited methods
Method new()
constructor
Usage
TypeInst$new(type, indexExprVec = NULL, domain = NULL)
Arguments
typetype of declaration
indexExprVecexpression list of indices
domainthe domain of decision variables
Method getDomain()
get the variable domain
Usage
TypeInst$getDomain()
Method setDomain()
set the variable domain
Usage
TypeInst$setDomain(dom)
Arguments
domdomain expression to be set
Method ranges()
return the index expression vector
Usage
TypeInst$ranges()
Method isArray()
check if it's an array
Usage
TypeInst$isArray()
Method type()
return the type information
Usage
TypeInst$type()
Method clone()
The objects of this class are cloneable with this method.
Usage
TypeInst$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
TypeInst$new(type = Type$new(base_type = "int", kind = "par" ,dim = 1),
domain = Set$new(IntSetVal$new(2,5)))
[Package rminizinc version 0.0.8 Index]