The manual suggests using an while (asset(loop()) - while (algo(loop())) structure for optimizing params per component. Try adding the "algo" loop.