Commit 8b7ca228 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Ioannis Papagiannopoulos

several examples updated

parent f8351b9e
...@@ -3,13 +3,13 @@ from dream.simulation.Globals import runSimulation ...@@ -3,13 +3,13 @@ from dream.simulation.Globals import runSimulation
#define the objects of the model #define the objects of the model
Frame.capacity=4 Frame.capacity=4
Sp=Source('SP','Parts', interarrivalTime={'distributionType':'Fixed','mean':0.5}, entity='Dream.Part') Sp=Source('SP','Parts', interArrivalTime={'Fixed':{'mean':0.5}}, entity='Dream.Part')
Sf=Source('SF','Frames', interarrivalTime={'distributionType':'Fixed','mean':2}, entity='Dream.Frame') Sf=Source('SF','Frames', interArrivalTime={'Fixed':{'mean':2}}, entity='Dream.Frame')
M=Machine('M','Machine', processingTime={'distributionType':'Fixed','mean':0.25}) M=Machine('M','Machine', processingTime={'Fixed':{'mean':0.25}})
A=Assembly('A','Assembly', processingTime={'distributionType':'Fixed','mean':2}) A=Assembly('A','Assembly', processingTime={'Fixed':{'mean':2}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
F=Failure(victim=M, distribution={'distributionType':'Fixed','MTTF':60,'MTTR':5}) F=Failure(victim=M, distribution={'TTF':{'Fixed':{'mean':60.0}},'TTR':{'Fixed':{'mean':5.0}}})
#define predecessors and successors for the objects #define predecessors and successors for the objects
Sp.defineRouting([A]) Sp.defineRouting([A])
......
...@@ -26,7 +26,7 @@ def balanceQueue(buffer, refillLevel=1): ...@@ -26,7 +26,7 @@ def balanceQueue(buffer, refillLevel=1):
#define the objects of the model #define the objects of the model
Q=Queue('Q1','Queue', capacity=float('inf')) Q=Queue('Q1','Queue', capacity=float('inf'))
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':6}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':6}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
EV=EventGenerator('EV', 'EntityCreator', start=0, stop=float('inf'), interval=20,method=balanceQueue, EV=EventGenerator('EV', 'EntityCreator', start=0, stop=float('inf'), interval=20,method=balanceQueue,
argumentDict={'buffer':Q, 'refillLevel':5}) argumentDict={'buffer':Q, 'refillLevel':5})
......
...@@ -26,7 +26,7 @@ def changeMachinePredecessor(machine, possiblePredecessors): ...@@ -26,7 +26,7 @@ def changeMachinePredecessor(machine, possiblePredecessors):
#define the objects of the model #define the objects of the model
Q1=Queue('Q1','Queue1', capacity=float('inf')) Q1=Queue('Q1','Queue1', capacity=float('inf'))
Q2=Queue('Q2','Queue2', capacity=float('inf')) Q2=Queue('Q2','Queue2', capacity=float('inf'))
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':3}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':3}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
P1=Part('P1', 'Part1', currentStation=Q1) P1=Part('P1', 'Part1', currentStation=Q1)
entityList=[] entityList=[]
......
...@@ -3,14 +3,14 @@ from dream.simulation.imports import Machine, Source, Exit, Batch, BatchDecompos ...@@ -3,14 +3,14 @@ from dream.simulation.imports import Machine, Source, Exit, Batch, BatchDecompos
from dream.simulation.Globals import runSimulation from dream.simulation.Globals import runSimulation
# define the objects of the model # define the objects of the model
S=BatchSource('S','Source',interarrivalTime={'distributionType':'Fixed','mean':1.5}, entity='Dream.Batch', batchNumberOfUnits=100) S=BatchSource('S','Source',interArrivalTime={'Fixed':{'mean':1.5}}, entity='Dream.Batch', batchNumberOfUnits=100)
Q=Queue('Q','StartQueue',capacity=100000) Q=Queue('Q','StartQueue',capacity=100000)
BD=BatchDecomposition('BC', 'BatchDecomposition', numberOfSubBatches=4, processingTime={'distributionType':'Fixed','mean':1}) BD=BatchDecomposition('BC', 'BatchDecomposition', numberOfSubBatches=4, processingTime={'Fixed':{'mean':1}})
M1=Machine('M1','Machine1',processingTime={'distributionType':'Fixed','mean':0.5}) M1=Machine('M1','Machine1',processingTime={'Fixed':{'mean':0.5}})
Q1=LineClearance('Q1','Queue1',capacity=2) Q1=LineClearance('Q1','Queue1',capacity=2)
M2=Machine('M2','Machine2',processingTime={'distributionType':'Fixed','mean':4}) M2=Machine('M2','Machine2',processingTime={'Fixed':{'mean':4}})
BRA=BatchReassembly('BRA', 'BatchReassembly', numberOfSubBatches=4, processingTime={'distributionType':'Fixed','mean':0}) BRA=BatchReassembly('BRA', 'BatchReassembly', numberOfSubBatches=4, processingTime={'Fixed':{'mean':0}})
M3=Machine('M3','Machine3',processingTime={'distributionType':'Fixed','mean':1}) M3=Machine('M3','Machine3',processingTime={'Fixed':{'mean':1}})
E=Exit('E','Exit') E=Exit('E','Exit')
# define the predecessors and successors for the objects # define the predecessors and successors for the objects
......
...@@ -2,10 +2,10 @@ from dream.simulation.imports import Machine, BatchSource, Exit, Batch, BatchDec ...@@ -2,10 +2,10 @@ from dream.simulation.imports import Machine, BatchSource, Exit, Batch, BatchDec
from dream.simulation.Globals import runSimulation from dream.simulation.Globals import runSimulation
# define the objects of the model # define the objects of the model
S=BatchSource('S','Source',interarrivalTime={'distributionType':'Fixed','mean':0.5}, entity='Dream.Batch', batchNumberOfUnits=4) S=BatchSource('S','Source',interArrivalTime={'Fixed':{'mean':0.5}}, entity='Dream.Batch', batchNumberOfUnits=4)
Q=Queue('Q','StartQueue',capacity=100000) Q=Queue('Q','StartQueue',capacity=100000)
BD=BatchDecomposition('BC', 'BatchDecomposition', numberOfSubBatches=4, processingTime={'distributionType':'Fixed','mean':1}) BD=BatchDecomposition('BC', 'BatchDecomposition', numberOfSubBatches=4, processingTime={'Fixed':{'mean':1}})
M=Machine('M','Machine',processingTime={'distributionType':'Fixed','mean':0.5}) M=Machine('M','Machine',processingTime={'Fixed':{'mean':0.5}})
E=Exit('E','Exit') E=Exit('E','Exit')
# define the predecessors and successors for the objects # define the predecessors and successors for the objects
......
...@@ -12,11 +12,11 @@ E=ExitJobShop('E','Exit') ...@@ -12,11 +12,11 @@ E=ExitJobShop('E','Exit')
#define the route of the Job in the system #define the route of the Job in the system
route=[{"stationIdsList": ["Q1"]}, route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "1"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':1}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
#define the Jobs #define the Jobs
J=Job('J1','Job1',route=route) J=Job('J1','Job1',route=route)
......
...@@ -12,11 +12,11 @@ E=ExitJobShop('E','Exit') ...@@ -12,11 +12,11 @@ E=ExitJobShop('E','Exit')
#define the route of the Job in the system #define the route of the Job in the system
route=[{"stationIdsList": ["Q1"]}, route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "1"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':1}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
#define the Jobs #define the Jobs
J=Job('J1','Job1',route=route) J=Job('J1','Job1',route=route)
......
...@@ -20,23 +20,23 @@ M3.defineRouting(predecessorList=[Q3]) ...@@ -20,23 +20,23 @@ M3.defineRouting(predecessorList=[Q3])
#define the routes of the Jobs in the system #define the routes of the Jobs in the system
J1Route=[{"stationIdsList": ["Q1"]}, J1Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "1"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':1}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
J2Route=[{"stationIdsList": ["Q1"]}, J2Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "4"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':4}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "6"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':6}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
J3Route=[{"stationIdsList": ["Q1"]}, J3Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "10"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':10}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
#define the Jobs #define the Jobs
......
...@@ -20,23 +20,23 @@ M3.defineRouting(predecessorList=[Q3]) ...@@ -20,23 +20,23 @@ M3.defineRouting(predecessorList=[Q3])
#define the routes of the Jobs in the system #define the routes of the Jobs in the system
J1Route=[{"stationIdsList": ["Q1"]}, J1Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "1"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':1}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
J2Route=[{"stationIdsList": ["Q1"]}, J2Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "4"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':4}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "6"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':6}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
J3Route=[{"stationIdsList": ["Q1"]}, J3Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "10"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':10}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
#define the Jobs #define the Jobs
......
...@@ -20,23 +20,23 @@ M3.defineRouting(predecessorList=[Q3]) ...@@ -20,23 +20,23 @@ M3.defineRouting(predecessorList=[Q3])
#define the routes of the Jobs in the system #define the routes of the Jobs in the system
J1Route=[{"stationIdsList": ["Q1"]}, J1Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "1"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':1}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
J2Route=[{"stationIdsList": ["Q1"]}, J2Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "4"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':4}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "6"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':6}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
J3Route=[{"stationIdsList": ["Q1"]}, J3Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "10"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':10}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
#define the Jobs #define the Jobs
......
...@@ -20,23 +20,23 @@ M3.defineRouting(predecessorList=[Q3]) ...@@ -20,23 +20,23 @@ M3.defineRouting(predecessorList=[Q3])
#define the routes of the Jobs in the system #define the routes of the Jobs in the system
J1Route=[{"stationIdsList": ["Q1"]}, J1Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "1"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':1}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
J2Route=[{"stationIdsList": ["Q1"]}, J2Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "2"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':2}}},
{"stationIdsList": ["Q2"]}, {"stationIdsList": ["Q2"]},
{"stationIdsList": ["M2"],"processingTime":{"distributionType": "Fixed","mean": "4"}}, {"stationIdsList": ["M2"],"processingTime":{'Fixed':{'mean':4}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "6"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':6}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
J3Route=[{"stationIdsList": ["Q1"]}, J3Route=[{"stationIdsList": ["Q1"]},
{"stationIdsList": ["M1"],"processingTime":{"distributionType": "Fixed","mean": "10"}}, {"stationIdsList": ["M1"],"processingTime":{'Fixed':{'mean':10}}},
{"stationIdsList": ["Q3"]}, {"stationIdsList": ["Q3"]},
{"stationIdsList": ["M3"],"processingTime":{"distributionType": "Fixed","mean": "3"}}, {"stationIdsList": ["M3"],"processingTime":{'Fixed':{'mean':3}}},
{"stationIdsList": ["E"],}] {"stationIdsList": ["E"],}]
#define the Jobs #define the Jobs
......
...@@ -3,7 +3,7 @@ from dream.simulation.Globals import runSimulation ...@@ -3,7 +3,7 @@ from dream.simulation.Globals import runSimulation
#define the objects of the model #define the objects of the model
NS=NonStarvingEntry('NS1','Entry',entityData={'_class':'Dream.Part'}) NS=NonStarvingEntry('NS1','Entry',entityData={'_class':'Dream.Part'})
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':1}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':1}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
#define predecessors and successors for the objects #define predecessors and successors for the objects
......
...@@ -3,7 +3,7 @@ from dream.simulation.Globals import runSimulation ...@@ -3,7 +3,7 @@ from dream.simulation.Globals import runSimulation
#define the objects of the model #define the objects of the model
NS=NonStarvingEntry('NS1','Entry',entityData={'_class':'Dream.Batch','numberOfUnits':100}) NS=NonStarvingEntry('NS1','Entry',entityData={'_class':'Dream.Batch','numberOfUnits':100})
M=BatchScrapMachine('M1','Machine', processingTime={'distributionType':'Fixed','mean':0.02}) M=BatchScrapMachine('M1','Machine', processingTime={'Fixed':{'mean':0.02}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
#define predecessors and successors for the objects #define predecessors and successors for the objects
......
...@@ -2,14 +2,14 @@ from dream.simulation.imports import Machine, BatchSource, Exit, Batch, BatchDec ...@@ -2,14 +2,14 @@ from dream.simulation.imports import Machine, BatchSource, Exit, Batch, BatchDec
from dream.simulation.Globals import runSimulation from dream.simulation.Globals import runSimulation
# define the objects of the model # define the objects of the model
S=BatchSource('S','Source',interarrivalTime={'distributionType':'Fixed','mean':1.5}, entity='Dream.Batch', batchNumberOfUnits=100) S=BatchSource('S','Source',interArrivalTime={'Fixed':{'mean':1.5}}, entity='Dream.Batch', batchNumberOfUnits=100)
Q=Queue('Q','StartQueue',capacity=100000) Q=Queue('Q','StartQueue',capacity=100000)
BD=BatchDecomposition('BC', 'BatchDecomposition', numberOfSubBatches=4, processingTime={'distributionType':'Fixed','mean':1}) BD=BatchDecomposition('BC', 'BatchDecomposition', numberOfSubBatches=4, processingTime={'Fixed':{'mean':1}})
M1=Machine('M1','Machine1',processingTime={'distributionType':'Fixed','mean':0.5}) M1=Machine('M1','Machine1',processingTime={'Fixed':{'mean':0.5}})
Q1=Queue('Q1','Queue1',capacity=2) Q1=Queue('Q1','Queue1',capacity=2)
M2=Machine('M2','Machine2',processingTime={'distributionType':'Fixed','mean':1}) M2=Machine('M2','Machine2',processingTime={'Fixed':{'mean':1}})
BRA=BatchReassembly('BRA', 'BatchReassembly', numberOfSubBatches=4, processingTime={'distributionType':'Fixed','mean':0}) BRA=BatchReassembly('BRA', 'BatchReassembly', numberOfSubBatches=4, processingTime={'Fixed':{'mean':0}})
M3=Machine('M3','Machine3',processingTime={'distributionType':'Fixed','mean':1}) M3=Machine('M3','Machine3',processingTime={'Fixed':{'mean':1}})
E=Exit('E','Exit') E=Exit('E','Exit')
# define the predecessors and successors for the objects # define the predecessors and successors for the objects
......
...@@ -2,8 +2,8 @@ from dream.simulation.imports import Machine, Source, Exit, Part, ShiftScheduler ...@@ -2,8 +2,8 @@ from dream.simulation.imports import Machine, Source, Exit, Part, ShiftScheduler
from dream.simulation.Globals import runSimulation from dream.simulation.Globals import runSimulation
#define the objects of the model #define the objects of the model
S=Source('S1','Source',interarrivalTime={'distributionType':'Fixed','mean':0.5}, entity='Dream.Part') S=Source('S1','Source',interArrivalTime={'Fixed':{'mean':0.5}}, entity='Dream.Part')
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':3}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':3}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
SS=ShiftScheduler(victim=M, shiftPattern=[[0,5],[10,15]]) SS=ShiftScheduler(victim=M, shiftPattern=[[0,5],[10,15]])
......
...@@ -2,8 +2,8 @@ from dream.simulation.imports import Machine, Source, Exit, Part, ShiftScheduler ...@@ -2,8 +2,8 @@ from dream.simulation.imports import Machine, Source, Exit, Part, ShiftScheduler
from dream.simulation.Globals import runSimulation from dream.simulation.Globals import runSimulation
#define the objects of the model #define the objects of the model
S=Source('S1','Source',interarrivalTime={'distributionType':'Fixed','mean':0.5}, entity='Dream.Part') S=Source('S1','Source',interArrivalTime={'Fixed':{'mean':0.5}}, entity='Dream.Part')
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':3}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':3}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
# create a repeated shift pattern # create a repeated shift pattern
......
...@@ -2,9 +2,9 @@ from dream.simulation.imports import Machine, Source, Exit, Part, ShiftScheduler ...@@ -2,9 +2,9 @@ from dream.simulation.imports import Machine, Source, Exit, Part, ShiftScheduler
from dream.simulation.Globals import runSimulation from dream.simulation.Globals import runSimulation
#define the objects of the model #define the objects of the model
S=Source('S1','Source',interarrivalTime={'distributionType':'Fixed','mean':0.5}, entity='Dream.Part') S=Source('S1','Source',interArrivalTime={'Fixed':{'mean':0.5}}, entity='Dream.Part')
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':3}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':3}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
SS=ShiftScheduler(victim=M, shiftPattern=[[0,5],[10,15]], endUnfinished=True) SS=ShiftScheduler(victim=M, shiftPattern=[[0,5],[10,15]], endUnfinished=True)
......
...@@ -2,8 +2,8 @@ from dream.simulation.imports import Machine, Source, Exit, Part, ShiftScheduler ...@@ -2,8 +2,8 @@ from dream.simulation.imports import Machine, Source, Exit, Part, ShiftScheduler
from dream.simulation.Globals import runSimulation from dream.simulation.Globals import runSimulation
#define the objects of the model #define the objects of the model
S=Source('S1','Source',interarrivalTime={'distributionType':'Fixed','mean':0.5}, entity='Dream.Part') S=Source('S1','Source',interArrivalTime={'Fixed':{'mean':0.5}}, entity='Dream.Part')
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':3}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':3}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
SS=ShiftScheduler(victim=M, shiftPattern=[[0,5],[10,15]],receiveBeforeEndThreshold=3) SS=ShiftScheduler(victim=M, shiftPattern=[[0,5],[10,15]],receiveBeforeEndThreshold=3)
......
...@@ -3,7 +3,7 @@ from dream.simulation.Globals import runSimulation, G ...@@ -3,7 +3,7 @@ from dream.simulation.Globals import runSimulation, G
#define the objects of the model #define the objects of the model
Q=Queue('Q1','Queue', capacity=1) Q=Queue('Q1','Queue', capacity=1)
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':0.25}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':0.25}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
P1=Part('P1', 'Part1', currentStation=Q) P1=Part('P1', 'Part1', currentStation=Q)
......
...@@ -3,7 +3,7 @@ from dream.simulation.Globals import runSimulation, G ...@@ -3,7 +3,7 @@ from dream.simulation.Globals import runSimulation, G
#define the objects of the model #define the objects of the model
Q=Queue('Q1','Queue', capacity=1) Q=Queue('Q1','Queue', capacity=1)
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':0.25}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':0.25}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
P1=Part('P1', 'Part1', currentStation=Q) P1=Part('P1', 'Part1', currentStation=Q)
P2=Part('P2', 'Part2', currentStation=M) P2=Part('P2', 'Part2', currentStation=M)
......
...@@ -3,10 +3,10 @@ from dream.simulation.Globals import runSimulation, G ...@@ -3,10 +3,10 @@ from dream.simulation.Globals import runSimulation, G
#define the objects of the model #define the objects of the model
Q=Queue('Q1','Queue', capacity=1) Q=Queue('Q1','Queue', capacity=1)
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':0.25}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':0.25}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
P1=Part('P1', 'Part1', currentStation=Q) P1=Part('P1', 'Part1', currentStation=Q)
P2=Part('P2', 'Part2', currentStation=M, remainingProcessingTime={'distributionType':'Fixed','mean':0.1}) P2=Part('P2', 'Part2', currentStation=M, remainingProcessingTime={'Fixed':{'mean':0.1}})
#define predecessors and successors for the objects #define predecessors and successors for the objects
Q.defineRouting(successorList=[M]) Q.defineRouting(successorList=[M])
......
...@@ -2,9 +2,9 @@ from dream.simulation.imports import Source, Queue, Machine, Exit ...@@ -2,9 +2,9 @@ from dream.simulation.imports import Source, Queue, Machine, Exit
from dream.simulation.Globals import runSimulation from dream.simulation.Globals import runSimulation
#define the objects of the model #define the objects of the model
S=Source('S1','Source',interarrivalTime={'distributionType':'Fixed','mean':0.5}, entity='Dream.Part') S=Source('S1','Source',interArrivalTime={'Fixed':{'mean':0.5}}, entity='Dream.Part')
Q=Queue('Q1','Queue', capacity=1) Q=Queue('Q1','Queue', capacity=1)
M=Machine('M1','Machine', processingTime={'distributionType':'Fixed','mean':0.25}) M=Machine('M1','Machine', processingTime={'Fixed':{'mean':0.25}})
E=Exit('E1','Exit') E=Exit('E1','Exit')
#define predecessors and successors for the objects #define predecessors and successors for the objects
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment