C++ Reference
C++ Reference: Algorithms
KnapsackState
Detailed Description
Definition at line 409 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 420 of file knapsack_solver.h.
◆ Init()
| void Init | ( | int | number_of_items | ) |
◆ is_bound()
|
inline |
Definition at line 421 of file knapsack_solver.h.
◆ is_in()
|
inline |
Definition at line 422 of file knapsack_solver.h.
◆ UpdateState()
| bool UpdateState | ( | bool | revert, |
| const KnapsackAssignment & | assignment | ||
| ) |
The documentation for this class was generated from the following file: