📄 objfun.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Function: S_MSE= objfun(FVr_temp, S_struct)
% Author: Rainer Storn
% Description: Implements the cost function to be minimized.
% Parameters: FVr_temp (I) Paramter vector
% S_Struct (I) Contains a variety of parameters.
% For details see Rundeopt.m
% Return value: S_MSE.I_nc (O) Number of constraints
% S_MSE.FVr_ca (O) Constraint values. 0 means the constraints
% are met. Values > 0 measure the distance
% to a particular constraint.
% S_MSE.I_no (O) Number of objectives.
% S_MSE.FVr_oa (O) Objective function values.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function S_MSE= objfun(FVr_temp, S_struct)
%---Peaks function----------------------------------------------
F_cost = peaks(FVr_temp(1),FVr_temp(2));
%----strategy to put everything into a cost function------------
S_MSE.I_nc = 0;%no constraints
S_MSE.FVr_ca = 0;%no constraint array
S_MSE.I_no = 1;%number of objectives (costs)S_MSE.FVr_oa(1) = F_cost;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -