{% extends "base.html" %} {% block title %}Scenario Comparison | CalMiner{% endblock %} {% block content %} {% include "partials/reports_header.html" %} {% include "partials/reports/options_card.html" %}

Compared Scenarios

Project Details

Name
{{ project.name }}
Location
{{ project.location or "—" }}
Operation Type
{{ project.operation_type | replace("_", " ") | title }}
Scenarios Compared
{{ scenarios | length }}

Comparison Summary

{% if comparison %} {% for key, metric in comparison.items() %} {% endfor %}
Metric Direction Best Performer Worst Performer Average
{{ key | replace("_", " ") | title }} {{ metric.direction | replace("_", " ") | title }} {% if metric.best %} {{ metric.best.name }} ({{ metric.best.value | format_metric(key, project.currency) }}) {% else %} — {% endif %} {% if metric.worst %} {{ metric.worst.name }} ({{ metric.worst.value | format_metric(key, project.currency) }}) {% else %} — {% endif %} {{ metric.average | format_metric(key, project.currency) }}
{% else %}

No deterministic metrics available for comparison.

{% endif %}

Scenario Details

Each scenario includes deterministic metrics and Monte Carlo summaries.

{% for item in scenarios %}

{{ item.scenario.name }}

{{ item.scenario.status | title }} · Currency: {{ item.scenario.currency or project.currency }}

Primary Resource {{ item.scenario.primary_resource or "—" }}
{% include "partials/reports/scenario_actions.html" %}

Deterministic Metrics

NPV {{ item.metrics.npv | currency_display(item.scenario.currency or project.currency) }}
IRR {{ item.metrics.irr | percentage_display }}
Payback Period {{ item.metrics.payback_period | period_display }}
{% if item.metrics.notes %}
    {% for note in item.metrics.notes %}
  • {{ note }}
  • {% endfor %}
{% endif %}

Monte Carlo Summary

{% if item.monte_carlo and item.monte_carlo.available %}

Iterations: {{ item.monte_carlo.iterations }} {% if percentiles %} · Percentiles: {% for percentile in percentiles %} {{ '%g' % percentile }}{% if not loop.last %}, {% endif %} {% endfor %} {% endif %}

{% include "partials/reports/monte_carlo_table.html" %} {% else %}

No Monte Carlo data available for this scenario.

{% if item.monte_carlo and item.monte_carlo.notes %}
    {% for note in item.monte_carlo.notes %}
  • {{ note }}
  • {% endfor %}
{% endif %} {% endif %}
{% endfor %}
{% endblock %}