Nonsmooth optimization using Mordukhovich's subdifferential