LossWeight
(read/write)
This property sets/gets the Weighting factor applied to Loss register values.
Example
% Create DSS object
DSSObject = actxserver('OpenDSSEngine.DSS')
if ~DSSObject.Start(0),
disp('Unable to start openDSS');
return
end;
DSSText = DSSObject.Text;
DSSCircuit = DSSObject.ActiveCircuit;
% Compile a model
DSSText.Command = 'Compile C:\myPath\myModel.dss';
DSSSettings = DSSCircuit.Settings;
% Gets the max voltage pu for emergency conditions
myEmergVmax = DSSSettings.EmergVmaxpu;
% Gets the min voltage pu for emergency conditions
myEmergVmin = DSSSettings.EmergVminpu;
% Gets the array for getting EM registers (Losses)
myEMIdx = DSSSettings.LossRegs;
% Gets the weighting factor for the EM registers (Losses)
myEMW = DSSSettings.LossWeight;