from fminsearch to bayesopt

2 visualizaciones (últimos 30 días)
Barbara Schläpfer
Barbara Schläpfer el 15 de Dic. de 2020
Respondida: Alan Weiss el 15 de Dic. de 2020
Hi
I wrote an optimization for material parameters. So far I used the function fminsearch.
[x_min, fval] = fminsearch(@calculate_cost, [5.5e-02, 11.5729, 0.5492], optimset('MaxFunEvals', 100));
I was wondering if there is an simple way to change it to an bayesopt function?
Thanks

Respuestas (1)

Alan Weiss
Alan Weiss el 15 de Dic. de 2020
You are free to use bayesopt, but you will have to change your objective function. For bayesopt you first have to create optimizable variables, then write the objective function in terms of those variables. See the workflow here.
I am not sure why you are changing solvers, but there are many solvers available in Optimization Toolbox and Global Optimization Toolbox as well. For help choosing a solver, see Optimization Decision Table and Table for Choosing a Solver.
Alan Weiss
MATLAB mathematical toolbox documentation

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by