(read/write)


This property sets/gets the value of impedance value associated with the DoShortLines method. Lines with less impedance will be merged out of the circuit, eliminating one or more buses.


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';

DSSReduceCkt = DSSCircuit.ReduceCkt;

DSSLines = DSSCircuit.Lines;

% activates the first line on the list

i = DSSLines.First;

myLine = DSSLines.Name


% set the PDE name for the reduction

DSSReduceCkt.StartPDElement = myLine;

% breaks loops first

DSSReduceCkt.DoLoopBreak();

% merge parallel lines

DSSReduceCkt.DoParallelLines();

% get the Zmag

disp(['Zmag: ', num2str(DSSReduceCkt.Zmag())]);

% reduce short lines

DSSReduceCkt.DoShortLines();


% get the OpenDSS command

myStr = DSSReduceCkt.EditString;