摘要: function [x_opt, f_opt, iter] = steepest_descent() % 定义目标函数 f = @(x) 100*(x(1)^2 - x(2))^2 + (x(1) - 1)^2; % 计算目标函数的梯度 grad_f = @(x) [400*x(1)*(x(1)^2 阅读全文
posted @ 2023-05-24 20:59 庞司令 阅读(9) 评论(0) 推荐(0)