Open MonssafToukal opened 2 years ago
@MonssafToukal Could you provide a simple blackbox example ?
@MonssafToukal Is it the output of the blackbox 1.00000000000003
?
Did you specify that it's a Boolean variable in NOMAD.jl ?
Hey @salomonl and @amontoison I don't think there is something about specifying integer or boolean in the documentation that would be really a great add-on if that's possible with Nomad.jl!
https://bbopt.github.io/NOMAD.jl/dev/nomadProblem/ : see input_types
.
But yes, we should precise that all inputs of a blackbox for Nomad
will be considered as Float64
( for example, x1 = true
=> x1 = 1
). It is a convention of the C++
interface, which makes it easy to implement different types.
Hi @salomonl ! Sorry for the late reply. Indeed, the input_types
for my boolean and my integer variables are respectively "B"and "I" as mentioned in the documentation. I will try to reproduce the error with a simple program.
I sometimes obtain the following error when using integer and boolean inputs. From my perspective, it seems to happen randomly, but I am not sure. I will sometimes rerun
NOMAD.jl
and I won't get an error. Here is a recent stacktrace:To fix the issue, I had to do a
convert(Bool, round(Int64, value))
.Any ideas? I am curious why it seems to happen arbitrarily.