function [res] = chap_5_prob_2_original_fns(x) % % problem on epage 167 % computes the raw functions f_1 and f_2 on epage 117 (no normilization and no blending) % % Inputs: % x in N_pop x N_vars of scaled input variables % % Written by: % -- % John L. Weatherwax 2006-08-28 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- [N_pop,N_var] = size(x); x1 = x(:,1); x2 = x(:,2); x3 = x(:,3); x4 = x(:,4); % compute each of the subfunctions f_n: % f_1 = x1 + x2.^2 + x3 + sqrt(x4); f_2 = 1./x1 + 1./(x2.^2) + sqrt(x3) + 1./x4; res = [ f_1, f_2 ];