Beispiel #1
0
 public Simulator(Scenario scenario, int seed)
 {
     Scenario = scenario;
     Status = new Status(this);
     RS = new Random(seed);
     // schedule the initial event
     ScheduleEvent(new Arrival(this), Scenario.Generate_InterArrivalTime(RS));
 }       
Beispiel #2
0
 public static Scenario GetExample(params int[] machineCounts)
 {
     var scenario = new Scenario();
     scenario.JobArrivalRate_Hourly = 4.0;
     scenario.SetMachineTypes(machineCounts);
     scenario.AddJobType(0.3, new double[] { 0.6, 0.85, 0.5, 0, 0.5 }, new int[] { 2, 0, 1, 4 });
     scenario.AddJobType(0.5, new double[] { 0.8, 0, 0.75, 1.1, 0 }, new int[] { 3, 0, 2 });
     scenario.AddJobType(0.2, new double[] { 0.7, 1.2, 1, 0.9, 0.25 }, new int[] { 1, 4, 0, 3, 2 });
     return scenario;
 }