(read only)


This property returns the Total iterations including control iterations for most recent solution.


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

DSSSolution = DSSCircuit.Solution;


% Set load multiplier 1.1

DSSSolution.LoadMult = 1.1; 

% Set max control iterations to 100

DSSSolution.LoadMult = 100; 

% Set max solution iterations to 20

DSSSolution.MaxIterations = 20; 

% Set min solution iterations to 1

DSSSolution.MinIterations = 1; 


% Solve the model

DSSSolution.Solve(); 

% gets the name of the solution mode used

disp(['Solution mode used: ', DSSSolution.ModeID])

% gets the max number of iterations done

disp(['Max iterations performed: ', num2str(DSSSolution.Totaliterations)])