2014年10月23日

一维搜索

摘要: %% 一维搜索方法clc;clear all;close all;x = -2:0.01:2;y = 3*x.^2 - 4.*x + 2;plot(x,y,'r-.','linewidth',2);hold on %% 初始化x0 = 0;%初始值;k = 1;%初始步长;LL = 0.002;%终... 阅读全文

posted @ 2014-10-23 23:16 Kermit.Li 阅读(153) 评论(0) 推荐(0)

导航