idol
A C++ Framework for Optimization
Loading...
Searching...
No Matches
idol::Cuts::KnapsackCover< NodeInfoT >::Strategy::KnapsackStructure::Item Struct Reference
Collaboration diagram for idol::Cuts::KnapsackCover< NodeInfoT >::Strategy::KnapsackStructure::Item:
Collaboration graph

Public Member Functions

 Item (const Var &t_var, int t_weight)
 
 Item (const Item &)=default
 
 Item (Item &&)=default
 
Itemoperator= (const Item &)=default
 
Itemoperator= (Item &&)=default
 

Public Attributes

Var variable
 
int weight
 
double current_value = -1.
 
std::optional< int > cut_coefficient
 

Detailed Description

template<class NodeInfoT = idol::DefaultNodeInfo>
struct idol::Cuts::KnapsackCover< NodeInfoT >::Strategy::KnapsackStructure::Item

Definition at line 89 of file KnapsackCover.h.

Constructor & Destructor Documentation

◆ Item()

template<class NodeInfoT = idol::DefaultNodeInfo>
idol::Cuts::KnapsackCover< NodeInfoT >::Strategy::KnapsackStructure::Item::Item ( const Var t_var,
int  t_weight 
)

Definition at line 239 of file KnapsackCover.h.

Member Data Documentation

◆ current_value

template<class NodeInfoT = idol::DefaultNodeInfo>
double idol::Cuts::KnapsackCover< NodeInfoT >::Strategy::KnapsackStructure::Item::current_value = -1.

Definition at line 92 of file KnapsackCover.h.

◆ cut_coefficient

template<class NodeInfoT = idol::DefaultNodeInfo>
std::optional<int> idol::Cuts::KnapsackCover< NodeInfoT >::Strategy::KnapsackStructure::Item::cut_coefficient

Definition at line 93 of file KnapsackCover.h.

◆ variable

template<class NodeInfoT = idol::DefaultNodeInfo>
Var idol::Cuts::KnapsackCover< NodeInfoT >::Strategy::KnapsackStructure::Item::variable

Definition at line 90 of file KnapsackCover.h.

◆ weight

template<class NodeInfoT = idol::DefaultNodeInfo>
int idol::Cuts::KnapsackCover< NodeInfoT >::Strategy::KnapsackStructure::Item::weight

Definition at line 91 of file KnapsackCover.h.