Properly ignore trials where optimal solutions are not found