Final report for fminunc

조회 수: 3 (최근 30일)
Mohamed Abdalmoaty
Mohamed Abdalmoaty 2017년 3월 21일
댓글: Matt J 2017년 3월 21일
I'm using the optimization function fminunc. I'd like to generate a final report that includes: number of function calls, total time of optimization, (maybe time of each call?) and the path of the optimization variables (the values that they take: starting from the initial point, then for each iteration, until the value that Matlab returns.
How can we do this? The Display option of the optimization toolbox does not show these. I would like to have then stored as a result that I can read and manipulate.
  댓글 수: 1
Matt J
Matt J 2017년 3월 21일
Some of this information is returned in the 4th output argument of fminunc.

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

채택된 답변

Alan Weiss
Alan Weiss 2017년 3월 21일
Create an Output Function to record whatever information you like.
Alan Weiss
MATLAB mathematical toolbox documentation

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by