14#ifndef MINOTAURPROBSTRUCTURE_H
15#define MINOTAURPROBSTRUCTURE_H
39typedef std::pair<ConstVariablePtr, ConstConstraintVectorPtr> VarConsPair;
40typedef std::map<ConstVariablePtr, ConstConstraintVectorPtr> VarCons;
41typedef VarCons * VarConsPtr;
42typedef VarCons::iterator VarConsIterator;
43typedef VarCons::const_iterator VarConsConstIterator;
83 ConstProbStructStatsPtr
getStats()
const {
return stats_;};
89 ConstConstraintVectorPtr
getGUBs()
const {
return list_;};
97 ConstConstraintVectorPtr list_;
Get information about a constraint in a given Problem.
Define the Environment class.
Declare the base class Modification.
Declare important 'types' used in Minotaur.
Define the Variable class.
The Constraint class is used to manage a constraint.
Definition: Constraint.h:61
Definition: Environment.h:28
Definition: ProbStructure.h:53
UInt getNumGUB() const
Get total number of GUBs.
Definition: ProbStructure.h:74
ProbStructure()
Default constructor.
Definition: ProbStructure.cpp:17
ConstConstraintVectorPtr getVarGUBs(ConstVariablePtr var) const
Get a pointer to the vector that contains GUBs for a given variable.
Definition: ProbStructure.cpp:195
void addConstraint(ConstConstraintPtr cons)
Add a constraint to the lists.
Definition: ProbStructure.cpp:141
~ProbStructure()
Destructor.
Definition: ProbStructure.cpp:37
ConstConstraintVectorPtr getGUBs() const
Get a pointer to the vector that contains GUBs.
Definition: ProbStructure.h:89
void generateLists()
Generate the lists for GUBs and GUBs corresponding to variables.
Definition: ProbStructure.cpp:47
UInt getNumVarGUB(ConstVariablePtr var) const
Get total number of GUBs for a given variable.
Definition: ProbStructure.cpp:180
UInt getNumConsChecked() const
Get total number of constraints checked.
Definition: ProbStructure.h:80
ConstProbStructStatsPtr getStats() const
Get the statistics about GUB identification.
Definition: ProbStructure.h:83
bool evalConstraint(ConstConstraintPtr cons)
Checks if a variable is a GUB constraint.
Definition: ProbStructure.cpp:79
Definition: Variable.h:31
Definition: ActiveNodeStore.h:20
unsigned int UInt
Unsigned integer.
Definition: Types.h:30
Definition: ProbStructure.h:28