Optimization of Multi-Attribute Tasks for Underwater Motion of