Minotaur 0.4.1
Docs for developers
|
#include <KnapsackList.h>
Public Member Functions | |
KnapsackList (ProblemPtr p) | |
void | generateList () |
void | evalConstraint (ConstraintConstIterator it) |
void | addConstraint (ConstraintConstIterator it) |
size_t | getNumKnaps () const |
UInt | getNumConsChecked () const |
ConstraintIterator | getListBegin () |
ConstraintIterator | getListEnd () |
The KnapsackList class generates the list of knapsack constraint pointers for a given problem.
void KnapsackList::generateList | ( | ) |
For each constraint, the type of function is checked if it is "Linear". If it is, ConstConstraintPtr is added to the knapsack constraint list.