osmose.calibration.preflight

Pre-flight sensitivity analysis for OSMOSE calibration.

Validates calibration parameters before optimization runs using Morris screening and optional Sobol analysis to detect negligible parameters, blow-ups, flat objectives, and tight bounds.

Functions

detect_issues(screening[, sobol_result, ...])

Classify preflight screening + Sobol indices into actionable issues.

make_preflight_eval_fn(free_params, ...[, ...])

Create an evaluation function suitable for run_preflight().

run_morris_screening(param_names, ...[, ...])

Run Morris elementary-effects screening.

run_preflight(param_names, param_bounds, ...)

Run two-stage pre-flight sensitivity analysis (Morris + Sobol).

Classes

IssueCategory(*values)

Category of a pre-flight issue.

IssueSeverity(*values)

Severity level of a pre-flight issue.

ParameterScreening(key, mu_star, sigma, ...)

Morris screening result for a single parameter.

PreflightIssue(category, severity, ...)

A single issue detected by the pre-flight analysis.

PreflightResult(screening, sobol, issues, ...)

Aggregated result of a pre-flight analysis run.

Exceptions

PreflightEvalError(*args[, stage])

Raised when >50 % of preflight samples fail to evaluate.