- fixed negative sample from distribution for time
This commit is contained in:
2025-01-17 19:47:05 +01:00
parent 7b46054b70
commit d7b968d0a2
3 changed files with 22 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ public class Main {
public static void main(String[] args) {
// Parameters for the simulation
var seed = System.nanoTime();
var total = 1000;
var total = 100000;
var lambda = 1.0 / 4.5;
var mu = 3.2;
var sigma = 0.6;
@@ -22,8 +22,8 @@ public class Main {
sim.addNode(node2);
var maxDepartures = new EndSimulationCriteria.MaxDepartures("Queue", total);
var maxTime = new EndSimulationCriteria.MaxTime(1000.0);
var results = sim.run(maxDepartures, maxTime);
//var maxTime = new EndSimulationCriteria.MaxTime(1000.0);
var results = sim.run(maxDepartures);
// Display the results
for (var entry : results.entrySet()) {