Optimization algorithm within a loop

Hello everyone,

I have been reading through various blog posts on the topic of triggering optimization algorithms automatically for the use in loops. Although there seem to be some interest in this topic I couldn’t find an answer to my question. Is there a way to automatically trigger an optimization algorithm to use it in a loop? Any suggestions or guidance would be greatly appreciated. Thank you in advance.

Yes. Set the conditions you want for a trigger event, then use a stream gate to direct data into a loop, anemone, whatever, and run your optimization. I use Anemone when I am unable to actually calculate something and need what is called an old school ‘graphical solution’. works pretty well, although it can be tricky. I also run a complicated script using data dams and breakpoints, so that I can review progress, look for errors, make changes, etc, rather than trying to do everything ‘autromatically’ in one go.

Not sure if i understand what you mean. Do you mean that you trigger the loop or do you mean that you keep the optimization running and only give it data during the loop? In my case i have a design that will be optimized by node shifting and when it has an “optimal design” it needs to go to the next seed to create a new randomized design.

It depends, try it the first way (triggering),see how that works. What are your results so far? Post code and people can comment on it.

Thanks for your reply. Working on the script atm, trying the approach of keeping the optimization algorithm running while the script is looping. My first question was mostly to get some general direction.