dynamic_knapsack: Dynamic Knapsack

Description Usage Arguments Value

Description

This function can solve the knapsack problem exact by iterating over all possible values of W.

Usage

1

Arguments

x

Data frame that consists of two numeric columns (order is not relevant):

  • "v": values of the objects;

  • "w": weights of the objects.

W

A numeric value, being the knapsack size.

Value

The functoin returns a list containing two named objects:


stasinak/Adv_R6 documentation built on May 14, 2019, 4:03 a.m.