16#ifndef MINOTAURVARIABLE_H
17#define MINOTAURVARIABLE_H
76 double getLb()
const {
return lb_; }
79 double getUb()
const {
return ub_; }
93 UInt getNumCons()
const;
104 const std::string
getName()
const;
106 void setItmp(
UInt itmp);
112 void write(std::ostream &out)
const;
135 void setLb_(
double newLb) { lb_ = newLb; }
138 void setName_(std::string newName) { name_ = newName; }
154 void setUb_(
double newUb) { ub_ = newUb; }
215 typedef std::set<std::pair<ConstraintPtr, FunctionType>>::const_iterator
216 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 LogHandler.h:31
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
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
UInt getIndex() const
Definition Variable.h:70
VarState getState() const
Get the state (fixed, deleted, ...).
Definition Variable.h:91
void setId_(UInt n)
Change the id to a new value.
Definition Variable.h:126
void setLb_(double newLb)
Change the lowerbound to a new value.
Definition Variable.h:135
VarSrcType getSrcType() const
Get the type of origin of this variable.
Definition Variable.h:88
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:141
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:73
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:144
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:62
void setUb_(double newUb)
Change the upperbound to a new value.
Definition Variable.h:154
FunctionType getFunType() const
Get the function type of constraints that this variable is in.
Definition Variable.h:85
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:138
double getUb() const
Get upperbound.
Definition Variable.h:79
void setIndex_(UInt n)
Change the index to a new value.
Definition Variable.h:129
VariableType getType() const
Get the type (binary, integer, continuous).
Definition Variable.h:82
void setFunType_(FunctionType ftype)
Change the function type to a new value.
Definition Variable.h:119
virtual ~Variable()
Destroy.
Definition Variable.cpp:65
double getLb() const
Get lowerbound.
Definition Variable.h:76
void setInitVal_(double val)
Change starting value.
Definition Variable.h:132
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