No BSD License
-
DSP(varargin)
-
FValue=SP_tlosscost1(InValue)
this function return the transformer's (input argument) loss
-
FValue=SP_tlosscost1(InValue)
this function return the transformer's (input argument) loss
-
SP_2kva(InVal)
this function convert the input to a correspounding kVA.
-
SP_create(NVARS,FitnessFcn,op...
this function creates the first population used by Genetic Algorithm
-
SP_crossover(parents,options,...
this function is dedicated for crossover operation used by MATLAB ga
-
SP_fitness(x,FinalTLDistances...
here, the fitness function is created. the sum of distances from loads to
-
SP_instcost(substation)
this function dedicates the primary installation cost
-
SP_main()
this program is designed for optimal substation placement
-
SP_mutation(parents ,options,...
this function is dedicated for crossover operation used by MATLAB ga
-
SP_stepup(CurVal,X_Cord,Y_Cor...
this function step-up the transformers size until it can feed the total
-
DSP_help.m
-
SP_initialize.m
-
View all files
|
|
| SP_mutation(parents ,options,NVARS, ...
|
% this function is dedicated for crossover operation used by MATLAB ga
% function.
function mutationChildren = SP_mutation(parents ,options,NVARS, ...
FitnessFcn, state, thisScore,thisPopulation,mutationRate)
mutationChildren = cell(length(parents),1);% Normally zeros(length(parents),NVARS);
for i=1:length(parents)
parent = thisPopulation{parents(i)}; % Normally thisPopulation(parents(i),:)
p = ceil(length(parent) * rand(1,2));
child = parent;
child(p(1)) = parent(p(2));
child(p(2)) = parent(p(1));
mutationChildren{i} = child; % Normally mutationChildren(i,:)
end
|
|
Contact us at files@mathworks.com