aryagraph.sim.scheduling.MonteCarloResult#

class aryagraph.sim.scheduling.MonteCarloResult(makespans: ~numpy.ndarray, mean: float, std: float, percentiles: dict[str, float], criticality: ~aryagraph.core.results.NodeMap, runs: int, workers: int | None, cpm_length: float, seed: int | None, graph: ~typing.Any = None, params: dict = <factory>)[source]#

Bases: object

Distribution of the makespan over many simulated schedules.

Variables:
  • makespans (numpy.ndarray) – (runs,) makespan of every run.

  • mean (float) – Sample mean of makespans.

  • std (float) – Sample standard deviation of makespans (ddof=1; 0 for a single run).

  • percentiles (dict[str, float]) – {"P50": …, "P80": …, "P95": …} (linear interpolation).

  • criticality (aryagraph.core.results.NodeMap) – Share of runs in which each task was critical: zero total float with unlimited workers (every tied critical path counts), membership of the run’s ScheduleResult.critical_path otherwise.

  • cpm_length (float) – Critical-path length of the nominal durations (the deterministic plan).

property stderr: float#

Standard error of mean.

percentile(q: float) → float[source]#

Makespan not exceeded in q percent of the runs.

probability(deadline: float) → float[source]#

Share of runs finishing by deadline.

plot(**kwargs: Any)[source]#

Histogram of makespans with percentile markers; see aryagraph.charts.sim.plot_monte_carlo().