The primary aim of this paper is to present an algorithm for computing a weak \(m\) -minimizer and an \(m\) -minimizer for a class of set optimization problems. The solution concepts are based on \(m\) -order relation proposed by Karaman et al. (Positivity 22:783–802, 2018). The \(m\) -order relation is initially characterized in terms of support functions. Two scalar optimization problems are formulated to derive optimality conditions for weak \(m\) -minimizers and \(m\) -minimizers. Subsequently, the algorithm presented by Löhne and Schrage (Optimization 64(9):2039–2041, 2015) is modified to develop the algorithm. The paper includes numerical examples to validate the algorithm.