No BSD License  

Highlights from
Optimal Distribution Substations Placement using Genetic Algorithm

from Optimal Distribution Substations Placement using Genetic Algorithm by Amir Pouya Khansaryan
Finds the optimal location and capacity of distribution substations

FValue=SP_tlosscost1(InValue)
% this function return the transformer's (input argument) loss
function FValue=SP_tlosscost1(InValue)

global KWTransformersTypes ShortCircuitLosses
Tag = find(KWTransformersTypes == InValue);
FValue = ShortCircuitLosses(1,Tag);

Contact us at files@mathworks.com