最速下降法的matlab程序输入,输出解释

来源:百度知道 编辑:UC知道 时间:2024/06/28 22:52:58
function [p0,y0,err,P]=grads(F,G,P0,maxl,delta,epsilon,show)
% -F is the object function input as string 'F'
% -G=(-1/norm)(grad F)*grad F;the search direction
% input as a string 'G'
% -P0 is the initial strating point
% -maxl is the maximum number of interctions
% -delta is the tolerance for the hmin in the single
% parameter minuization in the search direction
% -epsilon is the tolerance for the error in y0
% -show;if show==1 the iterations are display
%Output-P0 is the point of minium
% -y0 is the function value F(P0)
% -err is error bound for y0
% -P is a vector containing the iterations
那个高手帮我翻译下
程序太长,放不上去

怎么全都是注释
-------------------------------------------------------------
不太了解这个算法,还有一些单词不认识(interction是不是iteration?),翻译的不好,凑合着看吧。

F为目标函数,是字符串类型
G是搜索方向,表达式是G=(-1/norm)(grad F)*grad F,其中norm可能是法线方向,grad是梯度 grad F 是F的梯度。G也是字符串类型。
P0是初始点
maxl是最大迭代次数
delta 是搜索方向(单一参数最小化的)偏差
epsilon 是y0方向的允许误差
如果show等于1,图形显示迭代过程。
输出值P0是最低点
y0是p0函数值函数F
err是y0的误差边界
p是向量(包含迭代?)