| ²é¿´: 1631 | »Ø¸´: 0 | ||
zongshenglľ³æ (СÓÐÃûÆø)
|
[ÇóÖú]
ÒÅ´«Ëã·¨ÕûÊý¹æ»®ÖбäÁ¿È¡ÕûµÄÉèÖÃ
|
|
±¾ÈËÔÚÓÃÒÅ´«Ëã·¨Çó½â·ÇÏßÐÔÕûÊý¹æ»®ÎÊÌ⣬¹ØÓÚ±äÁ¿ÕûÊýµÄÔ¼ÊøÇ°Ãæ¿´µ½Ò»¸öÓйصÄÌû×Ó£¬ÎÒ·¢ÏÖÖмäÓдíÎ󣨺ìÉ«²¿·Ö£©£¬µ«ÊDz»ÖªµÀÔõôÐ޸ģ¬ÇëÖ¸µã¡£ Ô´³ÌÐòÈçÏ£º function [x,fval] = gainteger_demo % Fitness function and numver of variables fitnessFcn = @(x) norm(x); numberOfVariables = 15; % If decision variables are bounded provide a bound e.g, LB and UB. LB = -5*ones(1,numberOfVariables); UB = 5*ones(1,numberOfVariables); Bound = [LB;UB]; % If unbounded then Bound = [] % Create an options structure to be passed to GA % Three options namely 'CreationFcn', 'MutationFcn', and % 'PopInitRange' are required part of the problem. options = gaoptimset('CreationFcn',@int_pop,'MutationFcn',@int_mutation, ... 'PopInitRange',Bound,'Display','iter','StallGenL',40,'Generations',150, ... 'PopulationSize',60,'PlotFcns',{@gaplotbestf,@gaplotbestindiv}); [x,fval] = ga(fitnessFcn,numberOfVariables,options); %--------------------------------------------------- % Mutation function to generate childrens satisfying the range and integer % constraints on decision variables. function mutationChildren = int_mutation(parents,options,GenomeLength, ... FitnessFcn,state,thisScore,thisPopulation) shrink = .01; scale = 1; scale = scale - shrink * scale * state.Generation/options.Generations; range = options.PopInitRange; lower = range(1, ;upper = range(2, ;scale = scale * (upper - lower); mutationPop = length(parents); % The use of ROUND function will make sure that childrens are integers. mutationChildren = repmat(lower,mutationPop,1) + ... round(repmat(scale,mutationPop,1) .* rand(mutationPop,GenomeLength)); % End of mutation function %--------------------------------------------------- function Population = int_pop(GenomeLength,FitnessFcn,options) totalpopulation = sum(options.PopulationSize); range = options.PopInitRange; lower= range(1, ;span = range(2, - lower;% The use of ROUND function will make sure that individuals are integers. Population = repmat(lower,totalpopulation,1) + ... round(repmat(span,totalpopulation,1) .* rand(totalpopulation,GenomeLength)); % End of creation function |
» ²ÂÄãϲ»¶
309Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
ÇóÉúÎïѧѧ˶µ÷¼Á¡ª¡ª364·Ö
ÒѾÓÐ3È˻ظ´
277¹¤¿ÆÇóµ÷¼Á
ÒѾÓÐ5È˻ظ´
Ò»Ö¾Ô¸ÎäÀí²ÄÁϹ¤³Ì302µ÷¼Á»·»¯»ò»¯¹¤
ÒѾÓÐ17È˻ظ´
359Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
Ò»Ö¾Ô¸¹þ¶û±õ¹¤Òµ´óѧ085600Ó¢Ò»Êý¶þ337·ÖÇóµ÷¼Á
ÒѾÓÐ11È˻ظ´
0703×Ü·Ö331Çóµ÷¼Á
ÒѾÓÐ8È˻ظ´
¿¼ÑÐÉúÎïѧ¿¼AÇø211£¬³õÊÔ322£¬¿ÆÄ¿Éú»¯ºÍÉúÎï×ۺϣ¬Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
Ò»Ö¾Ô¸±±¾©»¯¹¤085600 310·ÖÇóµ÷¼Á
ÒѾÓÐ9È˻ظ´
Ò»Ö¾Ô¸0817»¯Ñ§¹¤³ÌÓë¼¼Êõ£¬Çóµ÷¼Á
ÒѾÓÐ28È˻ظ´

ÕÒµ½Ò»Ð©Ïà¹ØµÄ¾«»ªÌû×Ó£¬Ï£ÍûÓÐÓÃŶ~
½á¹¹ÓÅ»¯²ÎÊýÉèÖÃ
ÒѾÓÐ6È˻ظ´
ÒÅ´«Ëã·¨ GA
ÒѾÓÐ6È˻ظ´
matlab×îС¶þ³ËÎÊÌâÇóÖú Ôõô¶¨Òå¶à±äÁ¿
ÒѾÓÐ3È˻ظ´
Ò»¸ö¹ØÓÚmatlabµÄÒÅ´«Ëã·¨µÄÎÊÌâ
ÒѾÓÐ3È˻ظ´
·´ÏòÒÅ´«×ÊÁÏÇóÖú
ÒѾÓÐ3È˻ظ´
×ö¹ýľù¾úºÍ³ý²Ý¼ÁµÄÇë°ïæ½â´ðһϣ¬³ý²Ý¼ÁµÄŨ¶ÈÌݶÈÔõôÉèÖÃ
ÒѾÓÐ4È˻ظ´
¡¾·ÖÏí¡¿»ðºü¸ßÊÖÉèÖôó½ÒÃÜ¡¾ÒÑËÑË÷ÎÞÖØ¸´¡¿
ÒѾÓÐ3È˻ظ´
вÄÁÏÊ®¶þÎ广»®ÄÄÀïÄÜÏÂÔØ
ÒѾÓÐ3È˻ظ´
ÇóÖú°éÐÔÒÅ´«µÄÒ»µÀÎÊÌâ
ÒѾÓÐ3È˻ظ´
¡¾ÌÖÂÛ¡¿Öйúʽ¹ÜÀí¾³½ç£º¹æ»®¹ÜÀí
ÒѾÓÐ3È˻ظ´
¡¾ÇóÖú¡¿ÒÅ´«Ëã·¨Çó½âeil51.tspÎÊÌ⣬Àë×îÓŽ⻹ºÜÔ¶¡£Ôõô°ì£¿
ÒѾÓÐ26È˻ظ´
¡¾ÇóÖú¡¿Óйع̶¨Éè¼Æ±äÁ¿µÄÒ»¸öÒÉÎÊ
ÒѾÓÐ3È˻ظ´
¡¾ÇóÖú¡¿ÒÅ´«Ëã·¨
ÒѾÓÐ3È˻ظ´
ʹÓÃNTSYSpc¼ÆËãÒÅ´«ÏàËÆÏµÊýµÄ·½·¨²½Ö裨ÖÐÎıíÊö£©
ÒѾÓÐ4È˻ظ´
¡¾ÇóÖú¡¿ÒÅ´«Ëã·¨ÖÐ intensificationºÍdiversification Á½¸ö´ÊÔõô·Ò룿
ÒѾÓÐ4È˻ظ´
¿ÆÑдÓСľ³æ¿ªÊ¼£¬ÈËÈËΪÎÒ£¬ÎÒΪÈËÈË














;
»Ø¸´´ËÂ¥
µã»÷ÕâÀïËÑË÷¸ü¶àÏà¹Ø×ÊÔ´