(read/write)


This property sets/gets the Randomization mode for random variables "Gaussian" or "Uniform". It can be One of [Uniform | Gaussian | Lognormal | None ] for Monte Carlo Variables.


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 simulation mode daily

DSSSolution.Mode = 1;

% Set number to perform only 12 hours

DSSSolution.Number = 12; 


% Solve the model

DSSSolution.Solve(); 

% shows the name of the random mode

switch DSSSolution.Random

    case 0
               disp('None')
           case 1
               disp('Gaussian')

    case 2
               disp('Uniform')
           case 3
               disp('LogNormal')

    otherwise
               disp('Control mode not identified')
       end