ga_f21m.m
来自「其中提到遺傳學的程式碼與應用提供給次淚相向的研究者參考下載」· M 代码 · 共 21 行
M
21 行
function PI=GA_f21m(chro)
% function PI=GA_f21m(chro)
% Before you call this function file, the variable---
% MIN_offset must be declared global and assign value to it.
% Otherwise you will get the error message or empty PI.
% If you want to use this function along, issue the following
% command in the MATLAB command window:
% global MIN_offset
% MIN_offset=25;
% and then call this function as
% PI=GA_f21m([1.1 2.3])
% PenChen Chou, 8-10-2001
% Revised on 4-10-2002
global MIN_offset MUL_factor
x=chro(1); y=chro(2);
PI=x*sin(4*x)+1.1*y*sin(2*y);
attached_part;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?