필터 지우기
필터 지우기

i am using simulated annealing optimization toolbox matlab and i want to display current function value,best function value and best iteration so far at each iteration of my program.

조회 수: 1 (최근 30일)
I want all these parameter to display on command window.

답변 (1개)

Alan Weiss
Alan Weiss 2017년 6월 14일
Write an output function that returns optimvalues.bestfval (the best function value found so far), optimvalues.fval (the current function value), and you will have to create a persistent variable bestiter that maintains the value of the best iteration. See, for example,
edit saplotbestf
Alan Weiss
MATLAB mathematical toolbox documentation

카테고리

Help CenterFile Exchange에서 Simulated Annealing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by