Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
// doxy/ or-tools/ src/ algorithms/ |
Public Member Functions | |
KnapsackItemWithEfficiency (int _id, int64 _profit, int64 _weight, int64 _profit_max) | |
Public Attributes | |
int | id |
int64 | profit |
int64 | weight |
double | efficiency |
This struct is used by Knapsack64ItemsSolver. As this solver deals only with one dimension, that's more efficient to store 'efficiency' than computing it on the fly.
Definition at line 665 of file knapsack_solver.cc.
operations_research::KnapsackItemWithEfficiency::KnapsackItemWithEfficiency | ( | int | _id, | |
int64 | _profit, | |||
int64 | _weight, | |||
int64 | _profit_max | |||
) | [inline] |
Definition at line 666 of file knapsack_solver.cc.
Definition at line 678 of file knapsack_solver.cc.
Definition at line 679 of file knapsack_solver.cc.
Definition at line 680 of file knapsack_solver.cc.
Definition at line 681 of file knapsack_solver.cc.