Choose samples from statistical distribution for fmincon optimization

5 visualizaciones (últimos 30 días)
Hi everyone,
I have a problem with several variables. Each of these variables (both opimized and non optimized) has statistical distribution. How could I set fmincon to select optimization samples randomly from their statistical distribution?

Respuesta aceptada

Jeff Miller
Jeff Miller el 16 de Oct. de 2019
It is probably a better idea to select the samples randomly and then have fmincon optimize for the given sample.
If you must take samples randomly during the minimization process, you can do that inside the user-defined 'fun' that fmincon tries to minimize. But this almost always causes problems: fmincon gets very confused when the values returned by 'fun' vary somewhat non-systematically due to the random sampling in fun.
Another option is to sample systematically rather than randomly inside fun. For example, sample each variable in evenly-spaced probability steps within its statistical distribution.
  3 comentarios
Jeff Miller
Jeff Miller el 16 de Oct. de 2019
Sorry I cannot be more helpful, but I really have no idea what problem you are trying to solve. For example, what function are you trying to minimize? And why do you need to take random samples during the minimization process?
You should probably ask a new question and provide a lot more explanation of what you are trying to do. Maybe someone will recognize the problem and be able to help.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display 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