Hey,
I’m working on a method which should accept discrete search spaces. My first use case contains for instance enumerated types (which might stand for install technology of “type A” or “type B”) and Boolean types (like “install photovoltaic panels on this building or not”).
I would like to implement a method able to deal with that. It is obviously better to rely on the usual OpenMole framework, that is Factors, which enable writing nice things like:
Seq(
param1 in (0.0, 99.0),
param2 in (5, 500),
param3 in (“1”,“2”,“3”)
),
However, I cannot write the equivalent for a Boolean factor, as a Boolean factor has nothing which will be implicitely decoded as Bounds (if my understanding is good)
val paramB = Val[Boolean]
Seq(
param1 in (0.0, 99.0),
param2 in (5, 500),
param3 in (“1”,“2”,“3”),
paramB
),
Do you have an idea on how to implemnt that ?
Tks