Jasone Ramírez-Ayerbe

Research

Mathematical optimization for explainable, data-driven decision making.

When a model says “no”, the most useful explanation is often a counterfactual: what would need to be different for the answer to be “yes”? I formulate these questions as optimization problems, which makes it possible to ask for explanations that are sparse, plausible and actionable, and to compute them for whole groups at once.

ThemesResearch lines

01

Group counterfactual explanations

Moving from one explanation per individual to explanations designed for a group, from the point of view of a stakeholder. Group counterfactuals reveal shared influential features, outliers and biases, and connect to classical OR problems such as facility location. Column generation makes them scale to large populations, and multi-stage counterfactuals turn a single jump into a path of intermediate, reachable steps.

Group counterfactual explanations (EJOR) · Collective counterfactuals (ESWA) · One-for-many by column generation (IJOO) · Multi-stage counterfactuals

02

Counterfactuals beyond classification

Counterfactual reasoning for functional data, where instances are curves, and for efficiency analysis with Data Envelopment Analysis, where counterfactuals become transparent, achievable improvement targets.

Benchmarking and target setting (EJOR) · Functional data (ADAC)

03

Explaining decisions from optimization under uncertainty

Explaining not predictions but decisions: those produced by contextual, data-driven and stochastic optimization models, under exogenous and decision-dependent (endogenous) uncertainty.

Relative explanations, endogenous uncertainty (arXiv)

OutputPublications

My name is in bold. Code to reproduce every paper is open on GitHub; use Cite to copy a BibTeX entry.

No publications match these filters.

2026JournalForthcoming

One-for-many counterfactual explanations by column generation

A. Lodi, J. Ramírez-Ayerbe

INFORMS Journal on Optimization, forthcoming

arXiv ↗ PDF ↗ Code ↗
2024Journal

Mathematical optimization modelling for group counterfactual explanations

E. Carrizosa, J. Ramírez-Ayerbe, D. Romero Morales

European Journal of Operational Research, 319(2):399–412

★ SEIO – BBVA Foundation Award 2024

Article ↗ Code ↗
2024Journal

Counterfactual analysis and target setting in benchmarking

P. Bogetoft, J. Ramírez-Ayerbe, D. Romero Morales

European Journal of Operational Research, 315(3):1083–1095

Article ↗ Code ↗
2024Journal

Generating collective counterfactual explanations in score-based classification via mathematical optimization

E. Carrizosa, J. Ramírez-Ayerbe, D. Romero Morales

Expert Systems with Applications, 238:121954

Article ↗ Code ↗
2024Journal

A new model for counterfactual analysis for functional data

E. Carrizosa, J. Ramírez-Ayerbe, D. Romero Morales

Advances in Data Analysis and Classification, 18(4):981–1000

Article ↗ Code ↗
2025Working paper

Relative explanations for contextual problems with endogenous uncertainty: an application to competitive facility location

J. Ramírez-Ayerbe, E. Frejinger

arXiv:2506.19155

arXiv ↗ PDF ↗ Code ↗
2025Working paper

On multi-stage counterfactual explanations

E. Carrizosa, J. Ramírez-Ayerbe, D. Romero Morales

Technical report

ResearchGate ↗ Code ↗

See also my Google Scholar and ORCID profiles.

FundingResearch projects