资源简介

遗传算法 实现动力配煤+gui界面 matlab 7.1 调试

资源截图

代码片段和文件信息

coal_pricebest=(coal(currentbest.chrom(1:NumberOfPeople)6))‘;
coal_percentbest=currentbest.chrom(NumberOfPeople+1:CHROMLENGTH)./sum(currentbest.chrom(NumberOfPeople+1:CHROMLENGTH));
coal_average=sum(coal_pricebest.*coal_percentbest);
    
coal_qbadbest=(coal(currentbest.chrom(1:NumberOfPeople)5))‘;
qbadbest=sum(coal_qbadbest.*coal_percentbest)

coal_vadbest=(coal(currentbest.chrom(1:NumberOfPeople)3))‘;
vadbest=sum(coal_vadbest.*coal_percentbest)

coal_sadbest=(coal(currentbest.chrom(1:NumberOfPeople)4))‘;
sadbest=sum(coal_sadbest.*coal_percentbest)

coal_aadbest=(coal(currentbest.chrom(1:NumberOfPeople)2))‘;
aadbest=sum(coal_aadbest.*coal_percentbest)

 coal_wadbest=(coal(currentbest.chrom(1:NumberOfPeople)1))‘;
 wadbest=sum(coal_wadbest.*coal_percentbest)

评论

共有 条评论