% % Written by: % -- % John L. Weatherwax 2009-04-21 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- close all; clc; clear all; addpath('../../BookCode'); global p1 d1; x0 = [0.5,0.5].'; mincg( @(x) c_8_p_4_fn(x), @(x) c_8_p_4_fn_prime(x), @(x) c_8_p_4_line_search_fn(x), x0, 1.e-6 );