diff --git a/ObjFun_fun.m b/ObjFun_fun.m deleted file mode 100644 index 0216858..0000000 --- a/ObjFun_fun.m +++ /dev/null @@ -1,12 +0,0 @@ -function [ObjFun] = ObjFun_fun(X, Data) -n = length(Data.Z(:,1)); -Z = zeros(n,1); -for k = 1:1:n - Z(k,1) = Data.Function(X, Data.X(k,:)); -end -SSE = 0; -for k = 1:1:n - SSE = SSE + (Z(k,1) - Data.Z(k,1))^2; -end -ObjFun = SSE; -end \ No newline at end of file