A derivative based algorithm for a particular class of mixed variable optimization problems