![]() |
OR-Tools
8.2
|
Definition at line 1029 of file knapsack_solver.cc.
Public Member Functions | |
KnapsackMIPSolver (MPSolver::OptimizationProblemType problem_type, const std::string &solver_name) | |
void | Init (const std::vector< int64 > &profits, const std::vector< std::vector< int64 > > &weights, const std::vector< int64 > &capacities) override |
int64 | Solve (TimeLimit *time_limit, bool *is_solution_optimal) override |
bool | best_solution (int item_id) const override |
virtual void | GetLowerAndUpperBoundWhenItem (int item_id, bool is_item_in, int64 *lower_bound, int64 *upper_bound) |
virtual std::string | GetName () const |
KnapsackMIPSolver | ( | MPSolver::OptimizationProblemType | problem_type, |
const std::string & | solver_name | ||
) |
Definition at line 1055 of file knapsack_solver.cc.
|
inlineoverridevirtual |
Implements BaseKnapsackSolver.
Definition at line 1043 of file knapsack_solver.cc.
|
virtualinherited |
Reimplemented in KnapsackGenericSolver.
Definition at line 1372 of file knapsack_solver.cc.
|
inlinevirtualinherited |
Definition at line 590 of file knapsack_solver.h.
|
overridevirtual |
Implements BaseKnapsackSolver.
Definition at line 1065 of file knapsack_solver.cc.
Implements BaseKnapsackSolver.
Definition at line 1073 of file knapsack_solver.cc.