16#ifndef MINOTAURVARIABLE_H
17#define MINOTAURVARIABLE_H
75 double getLb()
const {
return lb_; }
78 double getUb()
const {
return ub_; }
92 UInt getNumCons()
const;
103 const std::string
getName()
const;
105 void setItmp(
UInt itmp);
111 void write(std::ostream &out)
const;
134 void setLb_(
double newLb) { lb_ = newLb; }
137 void setName_(std::string newName) { name_ = newName; }
153 void setUb_(
double newUb) { ub_ = newUb; }
214 typedef std::set<std::pair<ConstraintPtr, FunctionType>>::const_iterator
215 ConstraintFunIterator;
Declare important 'types' used in Minotaur.
Definition: AnalyticalCenter.h:27
The Constraint class is used to manage a constraint.
Definition: Constraint.h:61
Definition: Linearizations.h:39
Definition: MultiSolHeur.h:38
Handler for convex constraints, based on quesada-grossmann algorithm.
Definition: OAHandler.h:46
Handler for convex constraints, based on quesada-grossmann algorithm.
Definition: ParQGHandlerAdvance.h:47
Definition: PerspCon.h:81
Handler for convex constraints, based on quesada-grossmann algorithm.
Definition: QGHandlerAdvance.h:53
Handler for convex constraints, based on quesada-grossmann algorithm.
Definition: QGHandler.h:45
Iterator for LinSqrMap
Definition: QuadHandler.h:63
Definition: TransSep.h:40
Definition: Variable.h:31
UInt getIndex() const
Definition: Variable.h:69
VarState getState() const
Get the state (fixed, deleted, ...).
Definition: Variable.h:90
void setId_(UInt n)
Change the id to a new value.
Definition: Variable.h:125
void setLb_(double newLb)
Change the lowerbound to a new value.
Definition: Variable.h:134
VarSrcType getSrcType() const
Get the type of origin of this variable.
Definition: Variable.h:87
void write(std::ostream &out) const
Write the full description of the variable including name, bounds, type etc.
Definition: Variable.cpp:135
ConstrSet::iterator consEnd()
Last iterator of constraints where this variable appears.
Definition: Variable.cpp:83
void setSrcType(VarSrcType stype)
Change the type of the origin of this variable.
Definition: Variable.h:140
void setType_(VariableType vtype)
Change the type to a new value.
Definition: Variable.cpp:121
Variable()
Default constructor.
Definition: Variable.cpp:22
double getInitVal() const
Get starting or initial value.
Definition: Variable.h:72
ConstrSet::iterator consBegin()
First iterator of constraints where this variable appears.
Definition: Variable.cpp:77
void clearConstraints_()
Clear the list of constraints this variable belongs to.
Definition: Variable.cpp:71
const std::string getName() const
Get name of the variable.
Definition: Variable.cpp:89
void setState_(VarState state)
Change the state to a new value.
Definition: Variable.h:143
void writeConstraintMap(std::ostream &out) const
Write the list of constraints in which this variable occurs.
Definition: Variable.cpp:169
UInt getId() const
Get the unique id.
Definition: Variable.h:61
void setUb_(double newUb)
Change the upperbound to a new value.
Definition: Variable.h:153
FunctionType getFunType() const
Get the function type of constraints that this variable is in.
Definition: Variable.h:84
VariablePtr clone(UInt id) const
Create a copy.
Definition: Variable.cpp:54
void inConstraint_(ConstraintPtr c)
Add the constraint to the list of constraints this variable belongs to.
Definition: Variable.cpp:105
void setName_(std::string newName)
Change the name to a new value.
Definition: Variable.h:137
double getUb() const
Get upperbound.
Definition: Variable.h:78
void setIndex_(UInt n)
Change the index to a new value.
Definition: Variable.h:128
VariableType getType() const
Get the type (binary, integer, continuous).
Definition: Variable.h:81
void setFunType_(FunctionType ftype)
Change the function type to a new value.
Definition: Variable.h:118
virtual ~Variable()
Destroy.
Definition: Variable.cpp:65
double getLb() const
Get lowerbound.
Definition: Variable.h:75
void setInitVal_(double val)
Change starting value.
Definition: Variable.h:131
void outOfConstraint_(ConstraintPtr cPtr)
Remove the constraint from the list of constraints this variable belongs to.
Definition: Variable.cpp:111
Definition: ActiveNodeStore.h:20
VarState
Different states a variable can be in.
Definition: Types.h:137
VariableType
Different types of variables.
Definition: Types.h:76
VarSrcType
Where did the variable originate from?
Definition: Types.h:85
unsigned int UInt
Unsigned integer.
Definition: Types.h:30
FunctionType
Different types of functions in Minotaur.
Definition: Types.h:65