Optimization with a kangaroo 2 component

Hi everyone, I’m trying to optimize an algorithm with octopus. In the optimization process i have to use a component of kangaroo 2 which needs to be reset when values are changed by octopus. is it possible to reset the component in the optimization process?
In detail I’m using the command: remesh by colour

Thanks

Hi @Corrado_Falato

I think that component should work inside an optimization loop if you set it up like this:


remeshloop.gh (7.3 KB)

By providing (true,false) as the input to reset, this should do as many iterations as you have in the Iter input each time, restarting without having to press a button. This results in 2 outputs, and you want the second one.

1 Like