Return user data from bayesopt
조회 수: 3 (최근 30일)
이전 댓글 표시
I am using bayesopt to minimize an objective function. Besides the minimum value of the function, I would like to have addintional information generated inside it when the minimization is completed. A simplified problem would be:
x = optimizableVariable('x',[0,10]);
f_eval = @(x)fun(x);
results = bayesopt(f_eval,x);
function [fitness,userData] = fun(x)
fitness = x.x^2 - 2*x.x + 1;
userData = x.x^3;
end
So I would like to see inside results the value of userData for which x results in a minimum fitness function.
Any idea how to do it?
Thanks!! Pablo
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Model Building and Assessment에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!