I am working on an optimization project where the objective function is calculated based on motion simulation performed using third party applications. This involves complications such as automated CAD modeling and conversion of input files in multiple stages. In other words, a lot of things can go wrong while obtaining the objective function value.
I am primarily using genetic algorithm (ga and gamultiobj). Is there a way to set the objective function value to be something so that the optimizer understand that something went wrong and continue?