%% This function defines the optimization equation and fitness function |
function y = funobj(X) |
% Curing kinetic equation |
ytemp = exp(p1 + p2.*x + p3.*x.^2 + p4.*x.^3).*…
exp(−1000.*(phi(5) + phi(6).*x + phi(7).*x.^2 + phi(8).*x.^3)./(R*pT)).*(k1 + k2.*x.^m).*(1 − x).^n; |
% Mathematical formulation of the fitness function |
F_Curv = ytemp; |
y = sum((F_Curv-py).^2); |
y = y/Num; |
end |