Page 195 - DCAP601_SIMULATION_AND_MODELING
P. 195

Unit 11: Design and Evaluation of Simulation Experiments (I)



            2.   Java machine arguments: [Application option, not applied when model runs as applet] Specify  Notes
                 here Java machine arguments you want to apply on launching your model.
            3.   Command-line arguments: [Application option, not applied when model runs as applet] Here
                 you can specify command line arguments you want to pass to your model. You can get the
                 values of  passed argument values in the experiment’s Additional class code using the
                 method String[] getCommandLineArguments()
            4.   Load root object from snapshot: If selected, the experiment will load the model state from
                 the snapshot file specified in the control to the right. The experiment will be started from
                 the time when the model state was saved.
            5.   Imports section: Import statements needed  for correct compilation  of the  experiment
                 class’ code. When Java code is generated, these statements are inserted before definition of
                 the Java class.
            6.   Additional class code: Arbitrary member variables, nested classes, constants and methods
                 are defined here. This code will be inserted into the experiment class definition. You can
                 access these class data members anywhere within this experiment.
            7.   Initial experiment setup: Experiment initialization code. It is executed when the experiment
                 is created (and its UI is created).
            8.   Before each experiment run: The code executed before each simulation run.  This code is
                 run on setup of the model. At this moment the root object of the model is already created,
                 but the model is not started yet. You may perform here some actions with elements of the
                 root active object,


                      Example: assign actual parameter values here.
            9.   Before simulation run: The code executed before simulation run. This code is executed
                 when simulation engine finishes the model execution (Engine.finished() method is called).
                 This code is not executed when you stop your model by clicking the Terminate execution
                 button.
            10.  After simulation run: The code executed after simulation run.
            11.  Random selection mode for simultaneous events: If selected, in case several events are
                 available  at the same time,  AnyLogic can  make nondeterministic choice  with  equal
                 probability for each event. Otherwise, events will be selected in the defined order.
            12.  Differential equations: Method used to solve ordinary differential equations.
            13.  Algebraic equations: Method used to solve algebraic equations.
            14.  Mixed equations: Method used to solve algebraic-differential equations.

            15.  Absolute accuracy: The desired absolute value accuracy for solving equations. Absolute
                 accuracy is used when it is impossible to use relative accuracy – e.g., when the value is
                 close to zero.
            16.  Time accuracy: The desired time accuracy for finding change events (switch points) when
                 solving equations.

            17.  Relative accuracy: The desired relative value accuracy for solving equations with methods
                 that change the integration step (e.g. Newton). Used by default.
            18.  Fixed time step: Fixed time step for methods using the fixed integration step (e.g. RK4).

            19.  Persistent Top-level Presentation Group: If selected, the presentation of the experiment is
                 accessible from the code as presentation.





                                             LOVELY PROFESSIONAL UNIVERSITY                                  189
   190   191   192   193   194   195   196   197   198   199   200