From the MATLAB toolbox#

EASY-IEC users wrote a user function that draws one individual into a column of subplots, created a population with popu_init and started the loop with ies_main. easyiec.compat keeps this workflow.

MATLAB (EASY-IEC)

Python (easyiec)

popu = popu_init(LB, UB, nind, initchrom)

popu = easyiec.compat.popu_init(LB, UB, nind, init_chrom)

function userfun(chrom, axhandles)

def userfun(chrom, axes): ... (a list of matplotlib axes)

popu = ies_main(popu, subfigrows, 'userfun')

popu = easyiec.compat.ies_main(popu, subfigrows, userfun)

click once / twice on a subplot

the same in MatplotlibGallery (parent / kept)

Exit button

Stop button, or a budget (generations=...)

the popu structure (chrom, devi, LB, UB)

the same dictionary keys

The same loop runs unattended with any evaluator, for example a metric or a simulated user: ies_main(popu, 1, userfun, evaluator=..., generations=20). New code is better written with Session and EasyIEC, which add logging, budgets, all protocols and every visualization of the package.