--— KnapsackSearchNode --— KnapsackSearchNode is a class used to describe a decision in the decision search tree. More...
#include <knapsack_solver.h>
Public Member Functions | |
| KnapsackSearchNode (const KnapsackSearchNode *const parent, const KnapsackAssignment &assignment) | |
| int | depth () const |
| const KnapsackSearchNode *const | parent () const |
| const KnapsackAssignment & | assignment () const |
| int64 | current_profit () const |
| void | set_current_profit (int64 profit) |
| int64 | profit_upper_bound () const |
| void | set_profit_upper_bound (int64 profit) |
| int | next_item_id () const |
| void | set_next_item_id (int id) |
--— KnapsackSearchNode --— KnapsackSearchNode is a class used to describe a decision in the decision search tree.
The node is defined by a pointer to the parent search node and an assignment (see KnapsackAssignement). As the current state is not explicitly stored in a search node, one should go through the search tree to incrementally build a partial solution from a previous search node.
Definition at line 259 of file knapsack_solver.h.
| operations_research::KnapsackSearchNode::KnapsackSearchNode | ( | const KnapsackSearchNode *const | parent, |
| const KnapsackAssignment & | assignment | ||
| ) |
|
inline |
Definition at line 265 of file knapsack_solver.h.
|
inline |
Definition at line 267 of file knapsack_solver.h.
|
inline |
Definition at line 263 of file knapsack_solver.h.
|
inline |
Definition at line 273 of file knapsack_solver.h.
|
inline |
Definition at line 264 of file knapsack_solver.h.
|
inline |
Definition at line 270 of file knapsack_solver.h.
|
inline |
Definition at line 268 of file knapsack_solver.h.
|
inline |
Definition at line 274 of file knapsack_solver.h.
|
inline |
Definition at line 271 of file knapsack_solver.h.