- loop condition in SimulationMultiple to ensure correct run iterations
This commit is contained in:
2025-02-12 15:16:26 +01:00
parent 057415e443
commit 762a1d1d0a

View File

@@ -116,7 +116,7 @@ public class SimulationMultiple {
var results = new Result.Summary(rng.getSeed(), nodes);
var output = new StringBuilder();
var stop = false;
for (int i = 0; !stop; i++) {
for (int i = 0; !stop && runs >= i; i++) {
var sim = new Simulation(this.net, rng, criterias);
var result = sim.run();
results.add(result);