removed extra parameter on getMostCostEffectiveSolution2