Check setting of bayestopt_ in set_prior.m
In master, ls2003.mod
crashes, because set_prior.m
is called, which overwrites bayestopt_
globally. The main culprit is the bottom line:
% Put bayestopt_ in matlab's workspace
assignin('base','bayestopt_',bayestopt_);
I don't understand why we have set_prior.m
returning bayestopt_
as a function output and simultaneously setting it as a global variable. I would propose getting rid of the above statement.