C++ Reference
C++ Reference: Algorithms
KnapsackState
Detailed Description
Definition at line 406 of file knapsack_solver.h.
Public Member Functions | |
KnapsackState () | |
void | Init (int number_of_items) |
bool | UpdateState (bool revert, const KnapsackAssignment &assignment) |
int | GetNumberOfItems () const |
bool | is_bound (int id) const |
bool | is_in (int id) const |
Constructor & Destructor Documentation
◆ KnapsackState()
KnapsackState | ( | ) |
Member Function Documentation
◆ GetNumberOfItems()
|
inline |
Definition at line 417 of file knapsack_solver.h.
◆ Init()
void Init | ( | int | number_of_items | ) |
◆ is_bound()
|
inline |
Definition at line 418 of file knapsack_solver.h.
◆ is_in()
|
inline |
Definition at line 419 of file knapsack_solver.h.
◆ UpdateState()
bool UpdateState | ( | bool | revert, |
const KnapsackAssignment & | assignment | ||
) |
The documentation for this class was generated from the following file: