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_stepup(CurVal,X_Cord,Y_Cord)
|
% this function step-up the transformers size until it can feed the total
% loads connected to it.
function NextVal = SP_stepup(CurVal,X_Cord,Y_Cord)
global KWTransformersTypes TransTypes CurrentTr_x CurrentTr_y
global FinalTrans_x FinalTrans_y UtilizationFactor PowerFactor
Tag = find(KWTransformersTypes == CurVal);
if (Tag ~= TransTypes)
if (isempty(find(CurrentTr_x==X_Cord)) & isempty(find(CurrentTr_y==Y_Cord))) %check if a new candidate!?
NextVal = KWTransformersTypes(1,Tag+1);
elseif (CurVal == KWTransformersTypes(1,5)) % if a 315kVA transformer
NextVal = CurVal;
else
NextVal = KWTransformersTypes(1,Tag+1);
end;
else
NextVal = CurVal;
end;
|
|
Contact us at files@mathworks.com