?? fixedpopsize.m
字號:
function [pop,state]=fixedpopsize(pop,state,params)
%FIXEDPOPSIZE Chooses fixed number of GPLAB individuals for next generation.
% FIXEDPOPSIZE(POPULATION,STATE,PARAMS) returns the first STATE.POPSIZE
% individuals from the ordered POPULATION (parents and offspring), for
% the next generation.
%
% Input arguments:
% POPULATION - ordered list of (parents and offspring) individuals (array)
% STATE - the current state of the algorithm (struct)
% PARAMS - the parameters of the algorithm (struct)
% Output arguments:
% POPULATION - individuals surviving into the next generation (array)
% STATE - the updated state of the algorithm (struct)
%
% See also APPLYSURVIVAL, RESOURCES, PIVOTFIXE
%
% Copyright (C) 2003-2007 Sara Silva (sara@dei.uc.pt)
% This file is part of the GPLAB Toolbox
% simply choose the first state.popsize individuals from the already ordered list:
pop=pop(1:state.popsize);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -