Matlab code to find optimal values for x and y

1 visualización (últimos 30 días)
Frey Okee
Frey Okee el 1 de Abr. de 2015
Editada: Walter Roberson el 25 de Jun. de 2021
Can someone help me with Matlab code to find numerical solutions for optimal values of x and y which satisfy the following optimization problem?
where and and

Respuestas (1)

Walter Roberson
Walter Roberson el 25 de Jun. de 2021
Editada: Walter Roberson el 25 de Jun. de 2021
min() cannot be differentiated, and most of the minimizers require (implicit) differentiation. So you need to take one of the following approaches:
  • use ga() from the Global Optimization Toolbox
  • use surrogate optimization
  • use patternsearch()
  • use fminmax() https://www.mathworks.com/help/optim/ug/fminimax.html
  • break the problem into pieces that do not individually use min(), use a normal optimizer such as fmincon() on the pieces, and then merge the pieces together

Categorías

Más información sobre Direct Search en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by