Minotaur 0.4.1
Docs for developers
Public Member Functions | List of all members
Minotaur::KnapsackList Class Reference

#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 ()
 

Detailed Description

The KnapsackList class generates the list of knapsack constraint pointers for a given problem.

Member Function Documentation

◆ generateList()

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.


The documentation for this class was generated from the following files:

Minotaur source code documented by Doxygen 1.9.4 on Thu Apr 24 2025