brute_force_knapsack: Knapsack brute Problem

Description Usage Arguments Value Examples

View source: R/knapsack_brute.R

Description

knapsack brute force, the function goes through all the possible answers.

Usage

1

Arguments

x

An object with the class “data frame”, the weight of the data in the first column and price in the second column.

W

Maximal capacity of the knapsack.

parallel

Parallelize programming using mclapply and foreach, default is FALSE.

Value

A list of the greatest combined value and the elements.

Examples

1
2
3

harjew/lab6G3 documentation built on Nov. 4, 2019, 1:28 p.m.