Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <knapsack_solver.h>
Public Member Functions | |
KnapsackSearchNode (const KnapsackSearchNode *parent, const KnapsackAssignment &assignment) | |
--— KnapsackSearchNode --— | |
KnapsackSearchNode (const KnapsackSearchNode &)=delete | |
This type is neither copyable nor movable. | |
KnapsackSearchNode & | operator= (const KnapsackSearchNode &)=delete |
int | depth () const |
const KnapsackSearchNode * | parent () const |
const KnapsackAssignment & | assignment () const |
int64_t | current_profit () const |
void | set_current_profit (int64_t profit) |
int64_t | profit_upper_bound () const |
void | set_profit_upper_bound (int64_t 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 KnapsackAssignment). 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 345 of file knapsack_solver.h.
operations_research::KnapsackSearchNode::KnapsackSearchNode | ( | const KnapsackSearchNode * | parent, |
const KnapsackAssignment & | assignment ) |
--— KnapsackSearchNode --—
Definition at line 110 of file knapsack_solver.cc.
|
delete |
This type is neither copyable nor movable.
|
inline |
Definition at line 358 of file knapsack_solver.h.
|
inline |
Definition at line 360 of file knapsack_solver.h.
|
inline |
Definition at line 356 of file knapsack_solver.h.
|
inline |
Definition at line 366 of file knapsack_solver.h.
|
delete |
|
inline |
Definition at line 357 of file knapsack_solver.h.
|
inline |
Definition at line 363 of file knapsack_solver.h.
|
inline |
Definition at line 361 of file knapsack_solver.h.
|
inline |
Definition at line 367 of file knapsack_solver.h.
|
inline |
Definition at line 364 of file knapsack_solver.h.