Error when executing bayesopt

I am running bayesopt and have encoutered the following error several times. It happens only when I use the runParallel option. Could anyone help me with that?
Dot indexing is not supported for variables of this type.
Error in BayesianOptimization/fitObjectiveFcnGP (line 2657)
KernelParameters = ObjectiveFcnGP.KernelInformation.KernelParameters;
Error in BayesianOptimization/fitGPModels (line 2600)
this.ObjectiveFcnGP = fitObjectiveFcnGP(this, BullAdjustment, BullAdjustmentN, useFitMethodNone);
Error in BayesianOptimization/chooseNextPoint (line 2295)
this = fitGPModels(this, true, BullAdjustmentN, false);
Error in BayesianOptimization/chooseNextPointParallel (line 2353)
BO2 = chooseNextPoint(BO2);
Error in BayesianOptimization/runParallel (line 2095)
this = chooseNextPointParallel(this);
Error in BayesianOptimization/run (line 1939)
this = runParallel(this);
Error in BayesianOptimization (line 457)
this = run(this);
Error in bayesopt (line 323)
Results = BayesianOptimization(Options);

4 件のコメント

Don Mathis
Don Mathis 2019 年 4 月 11 日
Could you post some executable MATLAB code that illustrates the problem?
Weiqi Zhao
Weiqi Zhao 2020 年 7 月 16 日
Hi Stephen, were you able to solve this issue? I unfortunately got the same error. Thanks!
Walter Roberson
Walter Roberson 2020 年 7 月 16 日
A common cause of this kind of message is if a stage returns an empty array when the code expects it to return a struct or object.
Mohammad Beit Sadi
Mohammad Beit Sadi 2021 年 7 月 22 日
I get the same error and the XAtMinObjective is an empty array. I have rectified the issue by picking XAtMinEstimatedObjective when that happens.
I don't know why XAtMinObjective is an empty array though. Is it because there are multiple X values where the minimum happens?

サインインしてコメントする。

回答 (0 件)

カテゴリ

質問済み:

2019 年 4 月 10 日

コメント済み:

2021 年 7 月 22 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by