필터 지우기
필터 지우기

Return values from simulannealbnd other than fval and x

조회 수: 1 (최근 30일)
Saifullah Khalid
Saifullah Khalid 2017년 6월 27일
댓글: Saifullah Khalid 2017년 6월 27일
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
Walter Roberson
Walter Roberson 2017년 6월 27일
Why not record the w result of the fmincon?
Saifullah Khalid
Saifullah Khalid 2017년 6월 27일
Thanks, I was able to address issue by saving intermediate parameters

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 6월 27일

카테고리

Help CenterFile Exchange에서 Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by