Quaternion Optimization Problems in Engineering