13#ifndef MINOTAURLINEARCUT_H
14#define MINOTAURLINEARCUT_H
53 void write(std::ostream &out)
const;
73 typedef std::vector< LinearCutPtr > LinearCutVector;
74 typedef CutVector::iterator LinearCutIterator;
75 typedef CutVector::const_iterator LinearCutConstIterator;
Declare the Cut class of valid inequalities.
Declare important 'types' used in Minotaur.
The Constraint class is used to manage a constraint.
Definition: Constraint.h:61
Store function, bounds and other information about a cut.
Definition: Cut.h:52
Definition: Function.h:37
Definition: LinearCut.h:25
void undoToProblem(ProblemPtr)
Remove this cut from the problem.
Definition: LinearCut.cpp:61
void write(std::ostream &out) const
Write this cut to the outstream.
Definition: LinearCut.cpp:66
double getViolation(const double *)
By how much does a given point x violate this cut.
Definition: LinearCut.h:38
double getUb()
Get ub of the inequality.
Definition: LinearCut.h:41
FunctionPtr f_
Function or the lhs.
Definition: LinearCut.h:61
void applyToProblem(ProblemPtr)
Add this cut to problem.
Definition: LinearCut.cpp:55
~LinearCut()
Destroy.
Definition: LinearCut.cpp:49
LinearFunctionPtr lf_
Linear function or the lhs.
Definition: LinearCut.h:67
ConstraintPtr cons_
Pointer to the constraint that is added to the problem.
Definition: LinearCut.h:58
double lb_
lb.
Definition: LinearCut.h:64
double getLb()
Get lb of the inequality.
Definition: LinearCut.h:44
LinearCut()
Default Constructor.
Definition: LinearCut.cpp:25
double ub_
ub.
Definition: LinearCut.h:70
The base class linear function is of the form c'x.
Definition: LinearFunction.h:31
Definition: ActiveNodeStore.h:20