Borrar filtros
Borrar filtros

Defining a stopping criterion for fmincon

3 visualizaciones (últimos 30 días)
Matthew Hunt
Matthew Hunt el 4 de Mzo. de 2020
Respondida: Sai Bhargav Avula el 26 de Mzo. de 2020
I am looking at an optimisation problem with the following objective function:
Here, is some data and and is a function which I want to find the values of X for which I is a minimum. Now I thought I would have to set the following:
options = optimset('TolFun',1e-3);
problem = createOptimProblem('fmincon','x0',X_old,'objective',fun,'lb',LB,'ub',UB,'options',options);
Is this the right thing to do?

Respuesta aceptada

Sai Bhargav Avula
Sai Bhargav Avula el 26 de Mzo. de 2020
Hi,
Yes, you can use optimset. You can directly use fmincon istead of createOptimProblem(but both work the same).
Hope this helps!

Más respuestas (0)

Categorías

Más información sobre Get Started with Optimization Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by