Closed tfachmann closed 2 years ago
generateInitialPoints assume that the number of posible discrete values is larger than the number of points used for initialization. In that example:
par.n_init_samples = 20;
so nPoints
should be at least 20.
If you can evaluate all the posible points from the first iteration, what is the point of running an optimization?
I am not getting the
DiscreteModel
to run without a segmentation fault. (continuous model works fine)It might be connected to the discrete parameter space. The error can be reproduced by changing the number of discrete points (line 80) in
examples/bo_disc.cpp
:The first output of
valgrind
:Compiler used: gcc / g++ 4.8.5