UEweight
(read/write)
This property sets/gets an array of Integers defining the Weighting factor for UE/EEN in AutoAdd functions. Defaults to 1.0. Autoadd mode minimizes (Lossweight * Losses + UEweight * UE). If you wish to ignore UE, set to 0. This applies only when there are EnergyMeter objects. Otherwise, AutoAdd mode minimizes total system losses.
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 UE weights
myUEwgt = DSSSettings.UEweight;