Closed cledna closed 6 years ago
Is there a way to pass int/bool parameter values into Mimi? I'm having to coerce things to ints in the code for non-array parameters.
Yes, you can specify the type of any parameter or variable in @defcomp like this:
@defcomp
@defcomp foo begin x::Bool = Parameter() y::Int = Variable() end
Great, thanks!
Is there a way to pass int/bool parameter values into Mimi? I'm having to coerce things to ints in the code for non-array parameters.