For quasidifferentiable functions a generalized gradient algorithm is proposed. Its behaviour is studied in detail for the special class of continuously subdifferentiable functions. Numerical test results are given both for subdifferentiable and quasidifferentiable functions and compared with results from a paper of Bagirov (2000).