|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Result of a knapsack computation. More...
#include <Knapsack.H>
Public Attributes | |
| V | optimal_value = V{} |
| Maximum total value achieved. | |
| Array< size_t > | selected_items |
| Indices (0-based) of items selected for the optimum. | |
Result of a knapsack computation.
Contains the total value achieved and the indices of the items that form the optimal solution.
| V | Value type. |
Definition at line 106 of file Knapsack.H.
Maximum total value achieved.
Definition at line 108 of file Knapsack.H.
Referenced by Aleph::knapsack_bounded().
| Array<size_t> Aleph::Knapsack_Result< V >::selected_items |
Indices (0-based) of items selected for the optimum.
Definition at line 109 of file Knapsack.H.