#include <MKC_knapsack.hpp>
Public Member Functions | |
MKC_knapsack_entry () | |
~MKC_knapsack_entry () | |
void | pack (BCP_buffer &buf) |
void | unpack (BCP_buffer &buf) |
Public Attributes | |
int | orig_index |
int | index |
int | color |
double | weight |
double | orig_cost |
double | cost |
double | ratio |
Definition at line 13 of file MKC_knapsack.hpp.
MKC_knapsack_entry::MKC_knapsack_entry | ( | ) | [inline] |
Definition at line 22 of file MKC_knapsack.hpp.
MKC_knapsack_entry::~MKC_knapsack_entry | ( | ) | [inline] |
Definition at line 24 of file MKC_knapsack.hpp.
void MKC_knapsack_entry::pack | ( | BCP_buffer & | buf | ) |
void MKC_knapsack_entry::unpack | ( | BCP_buffer & | buf | ) |
Definition at line 14 of file MKC_knapsack.hpp.
Definition at line 15 of file MKC_knapsack.hpp.
double MKC_knapsack_entry::weight |
Definition at line 17 of file MKC_knapsack.hpp.
Referenced by MKC_ks_entry_weight_ascend(), and MKC_ks_entry_weight_descend().
Definition at line 18 of file MKC_knapsack.hpp.
double MKC_knapsack_entry::cost |
Definition at line 19 of file MKC_knapsack.hpp.
double MKC_knapsack_entry::ratio |