Class DynamicShopExperiment

    • Constructor Detail

      • DynamicShopExperiment

        public DynamicShopExperiment()
    • Method Detail

      • init

        public void init()
        Description copied from class: Experiment
        This method is called to perform any initializations required before the experiment is run.
        Overrides:
        init in class SimulationExperiment
      • createJobSource

        protected JobSource createJobSource()
      • getUtilLevel

        public double getUtilLevel()
      • setUtilLevel

        public void setUtilLevel​(double utilLevel)
        Sets the desired utilization level for all machines. Machine utilization approaches this value in the long term; short term results might differ due to random influences in the arrival process.
      • getDueDateFactor

        public DblSequence getDueDateFactor()
      • setDueDateFactor

        public void setDueDateFactor​(DblSequence dueDateFactor)
        Sets the due date tightness of jobs by specifying a due date factor. The DblSequence is used to calculate a job's due date as a multiple of a job's processing time. If for instance a due date factor of 2 is returned for a certain job then the due date is set to the job's release date plus twice the raw processing time of all operations of this job.
      • getNumMachines

        public int getNumMachines()
      • setNumMachines

        public void setNumMachines​(int numMachines)
        Sets the number of machines on the shop floor.
      • getNumOpsMin

        public int getNumOpsMin()
        Returns the minimum number of operations of a job.
      • setNumOpsMin

        public void setNumOpsMin​(int min)
        Sets the minimum number of operations of a job. Setting this to a value <=0 uses the number of machines, i.e., each job has to visit each machine exactly once.
      • getNumOpsMax

        public int getNumOpsMax()
        Returns the maximum number of operations of a job. Setting this to a value <=0 uses the number of machines, i.e., a job with the maximum number of operations has to visit each machine exactly once.
      • setNumOpsMax

        public void setNumOpsMax​(int max)
        Sets the maximum number of operations of a job.
      • setNumOps

        public void setNumOps​(int min,
                              int max)
      • setScenario

        public void setScenario​(DynamicShopExperiment.Scenario scenario)
        Sets the scenario to use. This can be either JOB_SHOP or FLOW_SHOP.
      • getStopArrivalsAfterNumJobs

        public int getStopArrivalsAfterNumJobs()
      • setStopArrivalsAfterNumJobs

        public void setStopArrivalsAfterNumJobs​(int stopAfterNumJobs)
        The job source is stopped after a certain number of jobs were completed. Jobs are counted in the order they entered the system. If, e.g., stopAfterNumJobs is 2500 the job source is stopped after all of the first 2500 jobs were completed (note: this is is not necessarily the same as the first 2500 jobs completed).
        Parameters:
        stopAfterNumJobs - The number of jobs after which to stop, default: 2500.
      • setWeights

        public void setWeights​(DblSequence weights)
        Sets the weights to be used for each job. The default setting is to assign a weight of 1 for each job when this attribute is null.
        Parameters:
        weights - A DblSequence to determine job weight. Default: each job gets a weight of 1.
      • setProcTimes

        public void setProcTimes​(DblSequence procTimes)
        Determines the processing times for each operation. This is a mandatory setting.