function obj_funct = simplex_funct(theta) obj_funct = theta(1)^2 + theta(2)^2;