24 December 2021 2 5K Report

The project I am working on requires me to modify the Modle file (ModelName.inp ) after the Nth iteration while the optimization is running. It is possible to use checkpoint hooks during the optimization process in Tosca Structure to run python scripts during the optimization. I have used them to modify other files during the optimization process before.

So far I was able to modify the ModelName.inp file inside the automatically created optimization job folder. But it seems like the optimization process does not realize that the file has been modified. I have tried checkpoint hooks at different times of the iteration. But no success so far. I was thinking that I might be modifying the wrong file. Or is it possible that the ModelName.inp file only gets read at the beginning of the optimization, and therefore can't get modified during the optimization process?

More Niklas Mayr's questions See All
Similar questions and discussions