Bayesian optimisation (coupled?) constraints - Bayesopt

1 回表示 (過去 30 日間)
hamed amini
hamed amini 2017 年 10 月 2 日
回答済み: Alan Weiss 2017 年 10 月 3 日
consider an optimization with two variables x1, x2 with the following bounds:
a<x1<b
a<x2<x1
What is the best approach to implement this using BayesOpt? I am using the following setup, but not sure if it's the most efficient way:
----------------------------------------------
x1 = optimizableVariable('x1',[a,b]);
x2 = optimizableVariable('x2',[a,b]);
bayesopt(fun,[x1, x2],'XConstraintFcn',@xconstraint)
--------------
function tf = xconstraint(X)
tf = X.x1 > X.x2;
end
----------------------------------------------

回答 (1 件)

Alan Weiss
Alan Weiss 2017 年 10 月 3 日
I think that you have set up the problem correctly, and in the most efficient way.
Alan Weiss
MATLAB mathematical toolbox documentation

カテゴリ

Help Center および File ExchangeModel Building and Assessment についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by