예제 #1
0
from dream.simulation.imports import Machine, Source, Exit, Part, Frame, Assembly, Failure
from dream.simulation.Globals import runSimulation

#define the objects of the model
Frame.capacity = 4
Sp = Source('SP',
            'Parts',
            interArrivalTime={'Fixed': {
                'mean': 0.5
            }},
            entity='Dream.Part')
Sf = Source('SF',
            'Frames',
            interArrivalTime={'Fixed': {
                'mean': 2
            }},
            entity='Dream.Frame')
M = Machine('M', 'Machine', processingTime={'Fixed': {'mean': 0.25}})
A = Assembly('A', 'Assembly', processingTime={'Fixed': {'mean': 2}})
E = Exit('E1', 'Exit')

F = Failure(victim=M,
            distribution={
                'TTF': {
                    'Fixed': {
                        'mean': 60.0
                    }
                },
                'TTR': {
                    'Fixed': {
                        'mean': 5.0
예제 #2
0
from dream.simulation.imports import Machine, Source, Exit, Part, Repairman, Queue, Failure
from dream.simulation.Globals import runSimulation

#define the objects of the model
R = Repairman('R1', 'Bob')
S = Source('S1',
           'Source',
           interArrivalTime={'Fixed': {
               'mean': 0.5
           }},
           entity='Dream.Part')
M1 = Machine('M1', 'Machine1', processingTime={'Fixed': {'mean': 0.25}})
Q = Queue('Q1', 'Queue')
M2 = Machine('M2', 'Machine2', processingTime={'Fixed': {'mean': 1.5}})
E = Exit('E1', 'Exit')
#create failures
F1 = Failure(victim=M1,
             distribution={
                 'TTF': {
                     'Fixed': {
                         'mean': 60.0
                     }
                 },
                 'TTR': {
                     'Fixed': {
                         'mean': 5.0
                     }
                 }
             },
             repairman=R)
F2 = Failure(victim=M2,
예제 #3
0
from dream.simulation.imports import Machine, Source, Exit, Part, Repairman, Queue, Failure
from dream.simulation.Globals import runSimulation

#define the objects of the model
R = Repairman('R1', 'Bob')
S = Source('S1',
           'Source',
           interarrivalTime={'Exp': {
               'mean': 0.5
           }},
           entity='Dream.Part')
M1 = Machine('M1',
             'Machine1',
             processingTime={
                 'Normal': {
                     'mean': 0.25,
                     'stdev': 0.1,
                     'min': 0.1,
                     'max': 1
                 }
             })
M2 = Machine('M2',
             'Machine2',
             processingTime={
                 'Normal': {
                     'mean': 1.5,
                     'stdev': 0.3,
                     'min': 0.5,
                     'max': 5
                 }
             })