Specify initial points (both variable and objective function) in surrogateopt function for some data
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I would like to add some initial data (which are from previous run of the objective function) to surrogateopt to reduce the computation time. The objective function have 4 variable. I have 100 previously run data of the objective function.
Below is a simple example of the code:
objconstr = @(x)(x(:,1)^2+x(:,2)^2+x(:,3)^2+x(:,4)^2);
LB = [-2,-6, -3, -5];
UB = -LB;
options = optimoptions('surrogateopt','PlotFcn');
x0=[0 0 0 0;
1 1 1 1;
......
];
%Results of objective function for the x0 values
y0=[1 3 4 5 ....]
[x,fval,exitflag,output] = surrogateopt(objconstr,LB,UB,options)
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surrogate Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!