Control of ships and underwater vehicles design