SIMPLAN

SIMPLAN is available in the Statistics Base Edition.

The SIMPLAN command creates a simulation plan that contains all of the specifications required to run a simulation. The simulation plan is used as input to the SIMRUN command, which runs the simulation.

SIMPLAN CREATE [SOURCE=AUTOFIT** | 'filespec']

[/MODEL 
   FILE='filespec'
   [CUSTOM={YES }]
           {NO**}

[/TARGETOPTS
   TARGET=fieldSpec [fieldSpec [...] ]
   [COMMENT='string']
   [OUTPUT=YES** | NO]
   [TARGETFILTER = {NO**}
                   {YES }([MIN={value[({INCLUSIVE**})]}] [MAX={value[({INCLUSIVE**})]}] )
                                       {EXCLUSIVE  }                  {EXCLUSIVE  }      
                               {LO**                  }       {HI**                  }
                                                      

/SIMINPUT 
   INPUT=fieldSpec [fieldSpec [...] ]
   [OUTPUT=YES** | NO]
   [TYPE= {MANUAL   }([LOCK={YES**}] [SAVEASFITTED={YES }])   
                            {NO   }                {NO**}             
                                                                      
          {AUTOFIT**}({[DEFAULT**]                                         }
                      {[CATEGORICAL]                                       }
                      {[BINOM] [NEGBIN] [POISSON]                          }
                      {[BETA] [EXP] [GAMMA] [LNORMAL] [NORMAL] [TRIANGULAR]}
                       [UNIFORM] [WEIBULL]
                     )
   [DISTRIBUTION= {BERNOULLI(PROB=value...)                                                            } 
                  {BETA(SHAPE1=value... SHAPE2=value...)                                               }
                  {BINOM(N=value... PROB=value...)                                                     }
                  {CATEGORICAL(CATS=valuelist PROBS=valuelist [;valuelist [;...]] [CONTINGENCY={YES }])}
                                                                                               {NO**}
                  {EMPIRICAL[(SOURCE=AUTOFIT** | 'filespec')]                                          }
                  {EXP(SCALE=value...)                                                                 }
                  {GAMMA(SHAPE=value... SCALE=value...)                                                }
                  {LNORMAL(A=value... B=value...)                                                      }
                  {NEGBIN([TYPE={FAILURES**}] THRESHOLD=value... PROB=value...)                        }
                                {TRIALS    }                                                  
                  {NORMAL(MEAN=value... STDDEV=value...)                                               }
                  {POISSON(MEAN=value...)                                                              }
                  {TRIANGULAR(MIN=value... MAX=value... MODE=value...)                                 }
                  {UNIFORM(MIN=value... MAX=value...)                                                  }
                  {USER_RANGES(MIN=valuelist MAX=valuelist PROBS=valuelist [;valuelist [;...]])        }
                  {WEIBULL(A=value... B=value... [C=value...])                                         }
   [MINVAL=number]
   [MAXVAL=number]

[/FIXEDINPUT
   INPUT=fieldSpec [fieldSpec [...] ]
   [VALUE=value]
   [ITERATIONS={VALUES(valuelist)                   } ]
               {RANGE(MIN=value MAX=value N=integer)}
   [LOCK=YES | NO**]

[/CORRELATIONS 
  VARORDER= varlist
  CORRMATRIX= 1; value, 1; ... [value, value, ... , 1]
  [LOCK=YES | NO**]

[/CONTINGENCY
  MULTIWAY={YES } 
           {NO**}

[/AUTOFIT
  [NCASES={integer}]
          {ALL**  }
  [FIT= AD** | KS]
  [MAXITERATIONS={100**  }] 
                 {integer}
  [BINS={100**  }]
        {integer}

[/STOPCRITERIA
  [MAXCASES={100000**}]
            {integer }
  [TARGET=fieldName]
  [TYPE={MEAN}(THRESH=value UNIT={PERCENT} [CILEVEL={95** }])
                                 {VALUE  }          {value}
        {TAIL}(UNIT={PERCENTILE} THRESH=value [SIDE={RIGHT**}]  FREQUENCY=integer)
                    {VALUE     }                    {LEFT   }       

[/MISSING CLASSMISSING = {EXCLUDE**}
                         {INCLUDE  }

[/VALUELABELS
  VARIABLES = varlist
  VALUES = value 'label' [value 'label' [...]]

/PLAN 
 FILE='filespec'
 [DISPLAY=YES** | NO]

SIMPLAN CREATE reads the active dataset and causes execution of any pending transformations.

Display an existing plan

SIMPLAN VIEW
/PLAN FILE='filespec'

SIMPLAN VIEW causes execution of any pending transformations.

** Default if the subcommand or keyword is omitted.

Syntax for the SIMPLAN command can be generated from the Simulation Builder or the Run Simulation dialog.

Release History

Release 21.0

  • Command introduced.

Release 22.0

  • LOCK keyword introduced on FIXEDINPUT subcommand.
  • CONTINGENCY subcommand added.
  • CONTINGENCY keyword added to specifications for CATEGORICAL distribution on SIMINPUT subcommand.
  • Added global SOURCE keyword and deprecated SOURCE keyword for DISTRIBUTION=EMPIRICAL.
  • MISSING subcommand added.
  • VALUELABELS subcommand added.

Example

SIMPLAN CREATE
/MODEL FILE='/models/mymodel.xml'
/SIMINPUT INPUT=labor materials
/PLAN FILE='/simulations/myplan.splan'.

SIMPLAN VIEW
/PLAN FILE='/simulations/myplan.splan'.