Interactive Evolutionary Computation in PythonHuman, simulated and AI evaluators. The easyiec toolbox

Preface

Many things are optimized by judgement rather than by a formula. A control engineer looks at a step response and sees at once that it rings too long; a brewer reads a temperature profile and knows that the beer will taste of butter; a designer sees that two colours fight. Writing such judgements down as an objective function is hard, often impossible, and the attempt usually yields a function that is optimized beautifully and wanted by nobody. Interactive evolutionary computation (IEC) takes the opposite route: an evolutionary algorithm proposes candidates, a person looks at them and chooses, and the choices replace the fitness function [1].

The origin of the book. Twenty years ago our group at the University of Veszprém, today the University of Pannonia, brought IEC to process engineering. János Madár, János Abonyi and Ferenc Szeifert developed the EASY-IEC toolbox for MATLAB, an evolution strategy driven by clicks on a gallery of figures, and used it to tune controllers and to design fermentation temperature profiles [2]; an interactive particle swarm optimizer followed [3]. The toolbox was small, practical and widely downloaded, but it shared the limitation of all IEC systems of its time: a person can judge only a few hundred candidates before tiring, and every experiment with a new algorithm needed new volunteers.

Why now. Two things have changed. Vision–language models can now look at a gallery of images and choose among them, at a cost of fractions of a cent and without tiring. They are, however, imperfect judges: they prefer the first option more often than they should [4, 5], they can be inconsistent, and their taste is not necessarily that of the person they replace. At the same time, the statistics needed to decide whether an AI judge may stand in for people have matured: the alternative annotator test [6], prediction-powered inference [7] and conformal risk control [8]. This book puts the two together. It treats the evaluator — a person, a simulated user, a language model or a panel of them — as a measuring instrument whose quality has to be established before it is trusted, and it shows how a hybrid evaluator lets the AI answer the easy questions and passes the hard ones to a person.

What the package offers. easyiec, the Python successor of the MATLAB toolbox, contains fifteen interactive strategies, from the interactive genetic algorithm and the EASY-IEC evolution strategy to CMA-ES, interactive particle swarms, pairwise differential evolution, MAP-Elites, reference-point NSGA-II, preferential Bayesian optimization, sequential line search and the sequential gallery; seven feedback protocols that all reduce to weighted pairwise preferences; preference models and rank aggregation; simulated users with a known ground truth; AI judges with order debiasing for Claude, OpenAI-compatible, Gemini and local models; panels, verbal steering with fuzzy linguistic hedges and risk-controlled escalation to people; agreement statistics, judge audits, psychometric audits, the alternative annotator test and prediction-powered inference; twenty-five problems from process control, fermentation, image processing, generative art, design, music and text; and some twenty-five visualizations of interactive search.

Who the book is for. The book is written for engineers, data scientists and designers who optimize things that are judged, for researchers in evolutionary computation and human–computer interaction, and for those who want to use language models as evaluators responsibly. It assumes elementary probability and statistics and some Python. Every method is stated in a box and illustrated by an example that runs on a laptop without a network connection; the AI judges are replaced in the examples by a mock model whose taste and biases are known, and the last chapter repeats the key experiments with Claude.

How to run the examples. The package is installed with pip install easyiec. The scripts that produce the figures are in the examples/ directory of the repository, grouped by chapter, and are listed in chapter C. The online documentation renders them as a gallery and as Jupyter notebooks. The code printed in the chapters is extracted from the same scripts, so it runs with the version of the package that the book describes. The benchmark of chapter 10 is produced by tools/benchmark.py, the study of chapter 11 by tools/claude_validation.py.

Acknowledgments. The book builds on the EASY-IEC and IPSO toolboxes of János Madár, János Abonyi, Balázs Balaskó and Ferenc Szeifert. I thank the authors of NumPy, SciPy, Matplotlib and the other open-source libraries on which the package builds. The research summarized in this book was supported by the National Research, Development and Innovation Office of Hungary (NKFIH) through the OTKA 143482 project.

Veszprém, November 2026 János Abonyi