• 大小: 244KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-02
  • 语言: 其他
  • 标签: matlab  

资源简介

输电线路6节点线路运行费用最低的规划问题,可直接运行,也可以换数据集

资源截图

代码片段和文件信息

% CRTbase.m - Create base vector 
%
% This function creates a vector containing the base of the loci
% in a chromosome.
%
% Syntax: baseVec = crtbase(Lind base)
%
% Input Parameters:
%
% Lind - A scalar or vector containing the lengths
%   of the alleles.  Sum(Lind) is the length of
%   the corresponding chromosome.
%
% base - A scalar or vector containing the base of
%   the loci contained in the Alleles.
%
% Output Parameters:
%
% baseVec - A vector whose elements correspond to the base
%   of the loci of the associated chromosome structure.

% Author: Andrew Chipperfield
% Date: 19-Jan-94

function baseVec = crtbase(Lind base)

[ml LenL] = size(Lind) ;
if nargin < 2 
base = 2 * ones(LenL1) ; % default to base 2
end
[mb LenB] = size(base) ;

% check parameter consistency
if ml > 1 | mb > 1
error( ‘Lind or base is not a vector‘) ;
elseif (LenL > 1 & LenB > 1 & LenL ~= LenB) | (LenL == 1 & LenB > 1 ) 
error( ‘Vector dimensions must agree‘ ) ;
elseif LenB == 1 & LenL > 1
base = base * ones(LenL1) ;

end

baseVec = [] ;
for i = 1:LenL
baseVec = [baseVec base(i)*ones(Lind(i)1)‘];
end


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4186  2012-06-07 10:29  考虑“N-1”规划程序\F.asv

     文件       4393  2012-06-12 09:31  考虑“N-1”规划程序\F.m

     文件       2882  2012-06-06 15:56  考虑“N-1”规划程序\main.asv

     文件       3099  2012-07-27 14:22  考虑“N-1”规划程序\main.m

     文件        991  2012-06-12 11:46  考虑“N-1”规划程序\Net_Branches.m

     文件        869  2012-06-05 22:09  考虑“N-1”规划程序\zlcljs.asv

     文件       1501  2012-06-06 16:25  考虑“N-1”规划程序\zlcljs.m

     目录          0  2012-07-27 16:13  考虑“N-1”规划程序

     文件       4393  2012-06-12 09:31  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\F.m

     文件       3099  2018-12-21 23:24  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\main.m

     文件        991  2012-06-12 11:46  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\Net_Branches.m

     文件       1501  2012-06-06 16:25  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\zlcljs.m

     文件       1168  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\crtbase.m

     文件       2187  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\crtbp.m

     文件       4186  2012-06-07 10:29  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\F.asv

     文件       2882  2012-06-06 15:56  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\main.asv

     文件       4943  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\mutbga.m

     文件       4709  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\ranking.m

     文件       2438  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\recombin.m

     文件       5574  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\reins.m

     文件       1208  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\rep.m

     文件       2401  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\select.m

     文件       1319  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\sus.m

     文件       2795  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\xovmp.m

     文件       1043  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\xovsp.m

     文件        875  2018-12-21 23:27  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\zlcljs.asv

     文件      53484  1998-04-22 11:14  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\gatbx(改进的遗传算法工具箱)\DOC\GATBXA0.PS

     文件     204230  1998-04-22 11:14  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\gatbx(改进的遗传算法工具箱)\DOC\GATBXA1.PS

     文件     200234  1998-04-22 11:14  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\gatbx(改进的遗传算法工具箱)\DOC\GATBXA2.PS

     文件       3217  1998-04-22 10:44  54514359Transmission-Network-Expans1on\考虑“N-1”规划程序\gatbx(改进的遗传算法工具箱)\SRC\BS2RV-.M

............此处省略71个文件信息

评论

共有 条评论