powered by
Create an integer in MiniZinc
rminizinc::Expression -> Int
rminizinc::Expression
Int
.value
object of class expression
Int$new()
Int$getIntVal()
Int$setIntVal()
Int$c_str()
Int$clone()
new()
constructor
Int$new(val)
val
the value of the integer
getIntVal()
get the IntVal value
setIntVal()
set the IntVal value
Int$setIntVal(val)
value to be set
c_str()
get the MiniZinc representation
clone()
The objects of this class are cloneable with this method.
Int$clone(deep = FALSE)
deep
Whether to make a deep clone.
# NOT RUN { newInt = Int$new(10) newInt$c_str() newInt$setIntVal(newInt$getIntVal() + 20) newInt$c_str() # }
Run the code above in your browser using DataLab