public double findClosestValue(int nums, double sumBudgets,
			List<PriceBean> beans, List<SelectedPrice> result) {
		int numberSize = 0;
		for (int i = 0; i < beans.size(); i++) {
			if (beans.get(i).getName() > sumBudgets) {
				numberSize = i;
				break;
			}
		}
		int[] numbers = new int[numberSize];
		double[] prices = new double[numberSize];
		double closetValue = 0;
		for (int i = 0; i < numberSize; i++) {
			numbers[i] = beans.get(i).getCount();
			prices[i] = beans.get(i).getName();
		}
		closetValue = multiKnapsack(sumBudgets, nums, numbers, prices, result);
		return closetValue;
	}