Definition at line 592 of file knapsack_solver.h.
◆ KnapsackGenericSolver()
| operations_research::KnapsackGenericSolver::KnapsackGenericSolver |
( |
const std::string & |
solver_name | ) |
|
|
explicit |
◆ ~KnapsackGenericSolver()
| operations_research::KnapsackGenericSolver::~KnapsackGenericSolver |
( |
| ) |
|
|
override |
◆ best_solution()
| bool operations_research::KnapsackGenericSolver::best_solution |
( |
int |
item_id | ) |
const |
|
inlineoverridevirtual |
◆ GetLowerAndUpperBoundWhenItem()
| void operations_research::KnapsackGenericSolver::GetLowerAndUpperBoundWhenItem |
( |
int |
item_id, |
|
|
bool |
is_item_in, |
|
|
int64 * |
lower_bound, |
|
|
int64 * |
upper_bound |
|
) |
| |
|
overridevirtual |
◆ GetName()
| virtual std::string operations_research::BaseKnapsackSolver::GetName |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ GetNumberOfItems()
| int operations_research::KnapsackGenericSolver::GetNumberOfItems |
( |
| ) |
const |
|
inline |
◆ Init()
| void operations_research::KnapsackGenericSolver::Init |
( |
const std::vector< int64 > & |
profits, |
|
|
const std::vector< std::vector< int64 > > & |
weights, |
|
|
const std::vector< int64 > & |
capacities |
|
) |
| |
|
overridevirtual |
◆ set_master_propagator_id()
| void operations_research::KnapsackGenericSolver::set_master_propagator_id |
( |
int |
master_propagator_id | ) |
|
|
inline |
◆ Solve()
| int64 operations_research::KnapsackGenericSolver::Solve |
( |
TimeLimit * |
time_limit, |
|
|
bool * |
is_solution_optimal |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following file: