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.
Counterfactual reasoning for functional data, where instances are curves, and for efficiency analysis with
Data Envelopment Analysis, where counterfactuals become transparent, achievable improvement targets.
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.
A column-generation framework that produces sparse counterfactual explanations covering many instances with a
shared, compact set of changes — scaling group explanations to large populations.
@article{lodi2026onemany,
title = {One-for-many counterfactual explanations by column generation},
author = {Lodi, Andrea and Ram{\'\i}rez-Ayerbe, Jasone},
journal = {INFORMS Journal on Optimization},
year = {2026},
note = {Forthcoming. arXiv:2402.09473}
}
A mathematical optimization framework for generating counterfactual explanations at the group level.
Moving beyond individual explanations, we adopt a stakeholder perspective in which counterfactuals are
produced jointly under structural and feasibility constraints, revealing close connections with classical
facility location problems.
@article{carrizosa2024group,
title = {Mathematical optimization modelling for group counterfactual explanations},
author = {Carrizosa, Emilio and Ram{\'\i}rez-Ayerbe, Jasone and Romero Morales, Dolores},
journal = {European Journal of Operational Research},
volume = {319},
number = {2},
pages = {399--412},
year = {2024},
doi = {10.1016/j.ejor.2024.01.002}
}
We extend counterfactual reasoning to Data Envelopment Analysis (DEA), introducing an optimization-based
framework for interpretable target setting in efficiency analysis. Counterfactual targets are computed via
mixed-integer convex optimization, providing transparent and actionable explanations for inefficient units.
@article{bogetoft2024benchmarking,
title = {Counterfactual analysis and target setting in benchmarking},
author = {Bogetoft, Peter and Ram{\'\i}rez-Ayerbe, Jasone and Romero Morales, Dolores},
journal = {European Journal of Operational Research},
volume = {315},
number = {3},
pages = {1083--1095},
year = {2024},
doi = {10.1016/j.ejor.2024.01.005}
}
Collective counterfactual explanations generated for an entire group of individuals at once. We formulate the
problem as a mixed-integer model that minimizes total perturbation cost while guaranteeing a favorable outcome,
allowing shared influential features and outliers to be identified simultaneously.
@article{carrizosa2024collective,
title = {Generating collective counterfactual explanations in score-based classification via mathematical optimization},
author = {Carrizosa, Emilio and Ram{\'\i}rez-Ayerbe, Jasone and Romero Morales, Dolores},
journal = {Expert Systems with Applications},
volume = {238},
pages = {121954},
year = {2024},
doi = {10.1016/j.eswa.2023.121954}
}
A counterfactual analysis framework tailored to functional data, where instances are curves rather than
vectors. The approach yields interpretable, optimization-based explanations that respect the functional
structure of the inputs.
@article{carrizosa2024functional,
title = {A new model for counterfactual analysis for functional data},
author = {Carrizosa, Emilio and Ram{\'\i}rez-Ayerbe, Jasone and Romero Morales, Dolores},
journal = {Advances in Data Analysis and Classification},
volume = {18},
number = {4},
pages = {981--1000},
year = {2024},
doi = {10.1007/s11634-023-00563-5}
}
Explaining decisions arising from contextual optimization problems under endogenous (decision-dependent)
uncertainty, with an application to competitive facility location.
@misc{ramirez2025relative,
title = {Relative explanations for contextual problems with endogenous uncertainty: an application to competitive facility location},
author = {Ram{\'\i}rez-Ayerbe, Jasone and Frejinger, Emma},
year = {2025},
eprint = {2506.19155},
archivePrefix = {arXiv}
}
Mathematical optimization and statistics for explainable and fair machine learning (PID2022-137818OB-I00), Spanish Ministry of Science and Innovation, 2023–2027.
NeEDS — Research and Innovation Staff Exchange Network of European Data Scientists (H2020-822214), Marie Skłodowska-Curie Actions, 2022–2024. Member of the Steering Board as Early Career Researcher.
Mathematical optimization in data science: towards interpretability in classification, regression and dimensionality reduction (US-1381178), Junta de Andalucía, 2022–2023.
Mathematical optimization for data-driven decision-making (PID2019-110886RB-I00), Spanish Ministry of Science and Innovation, 2020–2023.