A technique for assessing the dynamic stability and capsize resistance of ships