Note
Go to the end to download the full example code or to run this example in your browser via Binder.
Many objectives, one person: reference-point NSGA-II#
Controller tuning has several computable objectives (integral error, overshoot, control effort, settling time) whose trade-off only a person can settle. In the interactive NSGA-II the population evolves for a few silent generations under Pareto dominance and crowding (Deb et al., 2002); then the evaluator picks the responses they like, and the picks act as reference points that bias the next silent phase (Deb and Sundar, 2006).
The final inner population in objective space#
Integral error against control effort (total variation of the input). Grey: the silent population; blue: its non-dominated front; circles: the last picks.
last = result.log.records[-1]
picked = [last.query.item(i) for i in last.feedback.chosen(last.query)]
pool = strategy.inner + [p for p in picked if p not in strategy.inner]
ei.viz.plot_pareto(problem, pool, objectives=["iae", "input_tv"], chosen=[p.id for p in picked])

<Axes: xlabel='iae', ylabel='input_tv'>
The step responses the user chose from in the last gallery#
ei.viz.plot_gallery(problem, last.query.items, chosen=last.feedback.chosen(last.query), ncols=8, size=1.4)
plt.show()

Total running time of the script: (0 minutes 12.214 seconds)