The present paper aims at presenting an algorithm for solving a combinatorial problem wherein the optimization of an efficiency function in form of a ratio of two sums is requested. The economic interpretation of this problem with applicability in the value analysis is presented in [1].