Commit 84569594 authored by Georgios Dagkakis's avatar Georgios Dagkakis

dump updated for the examples where SimPy3 does not process the events of the simulation end

parent c4fefcad
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
"_class": "Dream.Exit", "_class": "Dream.Exit",
"id": "E1", "id": "E1",
"results": { "results": {
"lifespan": 483.49062278839347, "lifespan": 483.16660764872523,
"takt_time": 1.019108280254777, "takt_time": 1.0191218130311614,
"throughput": 1413 "throughput": 1412
} }
}, },
{ {
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
"_class": "Dream.Exit", "_class": "Dream.Exit",
"id": "E1", "id": "E1",
"results": { "results": {
"lifespan": 5.993741307371349, "lifespan": 5.993736951983299,
"takt_time": 1.0013908205841446, "takt_time": 1.001739735560195,
"throughput": 1438 "throughput": 1437
} }
}, },
{ {
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
"_class": "Dream.Exit", "_class": "Dream.Exit",
"id": "E1", "id": "E1",
"results": { "results": {
"lifespan": 720.687581415545, "lifespan": 720.3751086012163,
"takt_time": 0.6252713851498046, "takt_time": 0.6253258036490009,
"throughput": 2303, "throughput": 2302,
"unitsThroughput": 46060 "unitsThroughput": 46040
} }
}, },
{ {
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
"_class": "Dream.Exit", "_class": "Dream.Exit",
"id": "E1", "id": "E1",
"results": { "results": {
"lifespan": 5.993741307371349, "lifespan": 5.993736951983299,
"takt_time": 1.0013908205841446, "takt_time": 1.001739735560195,
"throughput": 1438 "throughput": 1437
} }
}, },
{ {
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
"_class": "Dream.Exit", "_class": "Dream.Exit",
"id": "E1", "id": "E1",
"results": { "results": {
"lifespan": 15.3125, "lifespan": 15.343423799582464,
"takt_time": 0.5, "takt_time": 0.5005219206680585,
"throughput": 480 "throughput": 479
} }
}, },
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"_class": "Dream.Job", "_class": "Dream.Job",
"id": "C1", "id": "C1",
"results": { "results": {
"completionTime": 3.0, "completionTime": 2.0,
"schedule": [ "schedule": [
{ {
"entranceTime": 0, "entranceTime": 0,
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"stationId": "M2" "stationId": "M2"
}, },
{ {
"entranceTime": 3.0, "entranceTime": 2.0,
"stationId": "E1" "stationId": "E1"
} }
] ]
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"_class": "Dream.Job", "_class": "Dream.Job",
"id": "C2", "id": "C2",
"results": { "results": {
"completionTime": 2.0, "completionTime": 3.0,
"schedule": [ "schedule": [
{ {
"entranceTime": 0, "entranceTime": 0,
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
"stationId": "M4" "stationId": "M4"
}, },
{ {
"entranceTime": 2.0, "entranceTime": 3.0,
"stationId": "E1" "stationId": "E1"
} }
] ]
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
"results": { "results": {
"intervalThroughputList": [ "intervalThroughputList": [
9520, 9520,
9600,
9600 9600
], ],
"lifespan": 454.0, "lifespan": 454.0,
......
...@@ -64,7 +64,7 @@ class SimulationExamples(TestCase): ...@@ -64,7 +64,7 @@ class SimulationExamples(TestCase):
def testDecompositionOfBatches(self): def testDecompositionOfBatches(self):
from dream.simulation.Examples.DecompositionOfBatches import main from dream.simulation.Examples.DecompositionOfBatches import main
result = main() result = main()
self.assertEquals(result['subbatches'], 2303) self.assertEquals(result['subbatches'], 2302)
self.assertTrue(79.96 < result["working_ratio"] < 79.97) self.assertTrue(79.96 < result["working_ratio"] < 79.97)
self.assertEquals(result["blockage_ratio"] , 0.0) self.assertEquals(result["blockage_ratio"] , 0.0)
self.assertTrue(20.03 < result["waiting_ratio"] < 20.04) self.assertTrue(20.03 < result["waiting_ratio"] < 20.04)
......
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