Include a galapagos optimisation in an If statement


as the topic already states I want to do an galapagos optimization of my structure if the tested statement is true and otherwise do nothing. I don’t know how to do that. Any suggestions?

(Luis Fraguada) #2

Are you trying to maximize, minimize the fitness? In cases where I have conditions which I do not want Galapagos to consider I impose a penalty. So if I’m trying to maximize the fitness, and a condition is not one I want, I pass a bad fitness value, like 0 or multiply the calculated fitness by a large negative number. If I am trying to minimize the fitness, I would do the opposite, pass a large fitness value for example.