Borrar filtros
Borrar filtros

Return values from simulannealbnd other than fval and x

1 visualización (últimos 30 días)
Saifullah Khalid
Saifullah Khalid el 27 de Jun. de 2017
Comentada: Saifullah Khalid el 27 de Jun. de 2017
I am optimizing an objective function which depend on profit and risk as shown below. I am using simulannealbnd function to optimize decision variable x. I want to plot profit vs risk. I am unable return the values of profit and risk for best value of decision variable x as I simulannealbnd only returns objective and x variables. I shall appreciate any help in this issue.
objective = w1* profit(x) + w2* risk(x);
  4 comentarios
Walter Roberson
Walter Roberson el 27 de Jun. de 2017
Why not record the w result of the fmincon?
Saifullah Khalid
Saifullah Khalid el 27 de Jun. de 2017
Thanks, I was able to address issue by saving intermediate parameters

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 27 de Jun. de 2017

Categorías

Más información sobre Optimization Toolbox 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