24 #ifndef COIN_NOTEST_DUPLICATE
25 #define COIN_NOTEST_DUPLICATE
29 #ifndef COIN_NOTEST_DUPLICATE
30 #define COIN_DEFAULT_VALUE_FOR_DUPLICATE true
32 #define COIN_DEFAULT_VALUE_FOR_DUPLICATE false
81 virtual void print()
const {}
86 / **@name Times used */
89 inline void setTimesUsed(
int t );
91 inline void incrementTimesUsed();
93 inline int timesUsed()
const;
96 / **@name Times tested */
99 inline void setTimesTested(
int t );
101 inline void incrementTimesTested();
103 inline int timesTested()
const;
178 virtual double violated(
const double *solution)
const = 0;
220 void OsiCut::setTimesUsed(
int t ) { timesUsed_=t; }
221 void OsiCut::incrementTimesUsed() { timesUsed_++; }
222 int OsiCut::timesUsed()
const {
return timesUsed_; }
224 void OsiCut::setTimesTested(
int t ) { timesTested_=t; }
225 void OsiCut::incrementTimesTested() { timesTested_++; }
226 int OsiCut::timesTested()
const{
return timesTested_; }
238 return !((*this) == rhs);
virtual ~OsiCut()
Destructor.
void setEffectiveness(double e)
Set effectiveness.
OsiCut & operator=(const OsiCut &rhs)
Assignment operator.
virtual bool operator==(const OsiCut &rhs) const
equal. 2 cuts are equal if there effectiveness are equal
double effectiveness() const
Get effectiveness.
void setNotGloballyValid()
virtual bool operator>(const OsiCut &rhs) const
less than. True if this.effectiveness > rhs.effectiveness
double effectiveness_
Effectiveness.
Abstract Base Class for describing an interface to a solver.
void setGloballyValidAsInteger(int trueFalse)
Set globallyValid as integer (nonzero true)
virtual bool infeasible(const OsiSolverInterface &si) const =0
Returns true if the cut is infeasible "with respect to itself" and cannot be satisfied.
virtual bool operator<(const OsiCut &rhs) const
less than. True if this.effectiveness < rhs.effectiveness
virtual void print() const
Print cuts in collection.
virtual bool consistent() const =0
Returns true if the cut is consistent with respect to itself, without considering any data in the mod...
bool globallyValid() const
Get globallyValid.
virtual bool operator!=(const OsiCut &rhs) const
not equal
int globallyValid_
If cut has global validity i.e. can be used anywhere in tree.
OsiCut()
Default Constructor.
int globallyValidAsInteger() const
Get globallyValid.
virtual double violated(const double *solution) const =0
Returns infeasibility of the cut with respect to solution passed in i.e.