Sorry if it is a dumb question but is it normal to get different values despite using the same seed value? Or Am I making a mistake? I am using rng(1234,'twister') as seed value and Bayesian optimization in parallel. Thanks for the help.
Sorry, it is not clearly documented, but when running Bayesian optimization in parallel, results are not reproducible. You can see this from the Parallel Bayesian Algorithm description, where it discusses what happens if too many workers are idle. The algorithm can perform differently depending on the state of the workers, so is not reproducible.